Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
aerospike
as_status.h
Go to the documentation of this file.
1
/*
2
* Copyright 2008-2022 Aerospike, Inc.
3
*
4
* Portions may be licensed to Aerospike, Inc. under one or more contributor
5
* license agreements.
6
*
7
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
8
* use this file except in compliance with the License. You may obtain a copy of
9
* the License at http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
* License for the specific language governing permissions and limitations under
15
* the License.
16
*/
17
#pragma once
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
23
/*******************************************************************************
24
* TYPES
25
******************************************************************************/
26
27
/**
28
* Status codes used as return values as as_error.code values.
29
*/
30
typedef
enum
as_status_e {
31
32
/***************************************************************************
33
* Client Errors
34
**************************************************************************/
35
/**
36
* One or more keys failed in a batch.
37
*/
38
AEROSPIKE_BATCH_FAILED
= -16,
39
40
/**
41
* No response received from server.
42
*/
43
AEROSPIKE_NO_RESPONSE
= -15,
44
45
/**
46
* Max errors limit reached.
47
*/
48
AEROSPIKE_MAX_ERROR_RATE
= -14,
49
50
/**
51
* Abort split batch retry and use normal node retry instead.
52
* Used internally and should not be returned to user.
53
*/
54
AEROSPIKE_USE_NORMAL_RETRY
= -13,
55
56
/**
57
* Max retries limit reached.
58
*/
59
AEROSPIKE_ERR_MAX_RETRIES_EXCEEDED
= -12,
60
61
/**
62
* Async command delay queue is full.
63
*/
64
AEROSPIKE_ERR_ASYNC_QUEUE_FULL
= -11,
65
66
/**
67
* Synchronous connection error.
68
*/
69
AEROSPIKE_ERR_CONNECTION
= -10,
70
71
/**
72
* Node invalid or could not be found.
73
*/
74
AEROSPIKE_ERR_TLS_ERROR
= -9,
75
76
/**
77
* Node invalid or could not be found.
78
*/
79
AEROSPIKE_ERR_INVALID_NODE
= -8,
80
81
/**
82
* Asynchronous connection error.
83
*/
84
AEROSPIKE_ERR_NO_MORE_CONNECTIONS
= -7,
85
86
/**
87
* Asynchronous connection error.
88
*/
89
AEROSPIKE_ERR_ASYNC_CONNECTION
= -6,
90
91
/**
92
* Query or scan was aborted in user's callback.
93
*/
94
AEROSPIKE_ERR_CLIENT_ABORT
= -5,
95
96
/**
97
* Host name could not be found in DNS lookup.
98
*/
99
AEROSPIKE_ERR_INVALID_HOST
= -4,
100
101
/**
102
* No more records available when parsing batch, scan or query records.
103
*/
104
AEROSPIKE_NO_MORE_RECORDS
= -3,
105
106
/**
107
* Invalid client API parameter.
108
*/
109
AEROSPIKE_ERR_PARAM
= -2,
110
111
/**
112
* Generic client API usage error.
113
*/
114
AEROSPIKE_ERR_CLIENT
= -1,
115
116
/**
117
* Deprecated. Generic client error. Keep for legacy reasons.
118
*/
119
AEROSPIKE_ERR
= -1,
120
121
/***************************************************************************
122
* Success
123
**************************************************************************/
124
125
/**
126
* Generic success.
127
*/
128
AEROSPIKE_OK
= 0,
129
130
/***************************************************************************
131
* Server Errors
132
**************************************************************************/
133
134
/**
135
* Generic error returned by server.
136
*/
137
AEROSPIKE_ERR_SERVER
= 1,
138
139
/**
140
* Record does not exist in database. May be returned by read, or write
141
* with policy AS_POLICY_EXISTS_UPDATE.
142
*/
143
AEROSPIKE_ERR_RECORD_NOT_FOUND
= 2,
144
145
/**
146
* Generation of record in database does not satisfy write policy.
147
*/
148
AEROSPIKE_ERR_RECORD_GENERATION
= 3,
149
150
/**
151
* Request protocol invalid, or invalid protocol field.
152
*/
153
AEROSPIKE_ERR_REQUEST_INVALID
= 4,
154
155
/**
156
* Record already exists. May be returned by write with policy
157
* AS_POLICY_EXISTS_CREATE.
158
*/
159
AEROSPIKE_ERR_RECORD_EXISTS
= 5,
160
161
/**
162
* Bin already exists on a create-only operation.
163
*/
164
AEROSPIKE_ERR_BIN_EXISTS
= 6,
165
166
/**
167
* A cluster state change occurred during the request. This may also be
168
* returned by scan operations with the fail_on_cluster_change flag set.
169
*/
170
AEROSPIKE_ERR_CLUSTER_CHANGE
= 7,
171
172
/**
173
* The server node is running out of memory and/or storage device space
174
* reserved for the specified namespace.
175
*/
176
AEROSPIKE_ERR_SERVER_FULL
= 8,
177
178
/**
179
* Request timed out. Can be triggered by client or server.
180
*/
181
AEROSPIKE_ERR_TIMEOUT
= 9,
182
183
/**
184
* Operation not allowed in current configuration.
185
*/
186
AEROSPIKE_ERR_ALWAYS_FORBIDDEN
= 10,
187
188
/**
189
* Partition is unavailable.
190
*/
191
AEROSPIKE_ERR_CLUSTER
= 11,
192
193
/**
194
* Bin modification operation can't be done on an existing bin due to its
195
* value type.
196
*/
197
AEROSPIKE_ERR_BIN_INCOMPATIBLE_TYPE
= 12,
198
199
/**
200
* Record being (re-)written can't fit in a storage write block.
201
*/
202
AEROSPIKE_ERR_RECORD_TOO_BIG
= 13,
203
204
/**
205
* Too may concurrent requests for one record - a "hot-key" situation.
206
*/
207
AEROSPIKE_ERR_RECORD_BUSY
= 14,
208
209
/**
210
* Scan aborted by user.
211
*/
212
AEROSPIKE_ERR_SCAN_ABORTED
= 15,
213
214
/**
215
* Sometimes our doc, or our customers wishes, get ahead of us. We may have
216
* processed something that the server is not ready for (unsupported feature).
217
*/
218
AEROSPIKE_ERR_UNSUPPORTED_FEATURE
= 16,
219
220
/**
221
* Bin not found on update-only operation.
222
*/
223
AEROSPIKE_ERR_BIN_NOT_FOUND
= 17,
224
225
/**
226
* The server node's storage device(s) can't keep up with the write load.
227
*/
228
AEROSPIKE_ERR_DEVICE_OVERLOAD
= 18,
229
230
/**
231
* Record key sent with transaction did not match key stored on server.
232
*/
233
AEROSPIKE_ERR_RECORD_KEY_MISMATCH
= 19,
234
235
/**
236
* Namespace in request not found on server.
237
*/
238
AEROSPIKE_ERR_NAMESPACE_NOT_FOUND
= 20,
239
240
/**
241
* Sent too-long bin name (should be impossible in this client) or exceeded
242
* namespace's bin name quota.
243
*/
244
AEROSPIKE_ERR_BIN_NAME
= 21,
245
246
/**
247
* Operation not allowed at this time.
248
*/
249
AEROSPIKE_ERR_FAIL_FORBIDDEN
= 22,
250
251
/**
252
* Map element not found in UPDATE_ONLY write mode.
253
*/
254
AEROSPIKE_ERR_FAIL_ELEMENT_NOT_FOUND
= 23,
255
256
/**
257
* Map element exists in CREATE_ONLY write mode.
258
*/
259
AEROSPIKE_ERR_FAIL_ELEMENT_EXISTS
= 24,
260
261
/**
262
* Attempt to use an Enterprise feature on a Community server or a server
263
* without the applicable feature key.
264
*/
265
AEROSPIKE_ERR_ENTERPRISE_ONLY
= 25,
266
267
/**
268
* The operation cannot be applied to the current bin value on the server.
269
*/
270
AEROSPIKE_ERR_OP_NOT_APPLICABLE
= 26,
271
272
/**
273
* The transaction was not performed because the filter expression was
274
* false.
275
*/
276
AEROSPIKE_FILTERED_OUT
= 27,
277
278
/**
279
* Write command loses conflict to XDR.
280
*/
281
AEROSPIKE_LOST_CONFLICT
= 28,
282
283
/**
284
* There are no more records left for query.
285
*/
286
AEROSPIKE_QUERY_END
= 50,
287
288
/**
289
* Security functionality not supported by connected server.
290
*/
291
AEROSPIKE_SECURITY_NOT_SUPPORTED
= 51,
292
293
/**
294
* Security functionality not enabled by connected server.
295
*/
296
AEROSPIKE_SECURITY_NOT_ENABLED
= 52,
297
298
/**
299
* Security type not supported by connected server.
300
*/
301
AEROSPIKE_SECURITY_SCHEME_NOT_SUPPORTED
= 53,
302
303
/**
304
* Administration command is invalid.
305
*/
306
AEROSPIKE_INVALID_COMMAND
= 54,
307
308
/**
309
* Administration field is invalid.
310
*/
311
AEROSPIKE_INVALID_FIELD
= 55,
312
313
/**
314
* Security protocol not followed.
315
*/
316
AEROSPIKE_ILLEGAL_STATE
= 56,
317
318
/**
319
* User name is invalid.
320
*/
321
AEROSPIKE_INVALID_USER
= 60,
322
323
/**
324
* User was previously created.
325
*/
326
AEROSPIKE_USER_ALREADY_EXISTS
= 61,
327
328
/**
329
* Password is invalid.
330
*/
331
AEROSPIKE_INVALID_PASSWORD
= 62,
332
333
/**
334
* Password has expired.
335
*/
336
AEROSPIKE_EXPIRED_PASSWORD
= 63,
337
338
/**
339
* Forbidden password (e.g. recently used)
340
*/
341
AEROSPIKE_FORBIDDEN_PASSWORD
= 64,
342
343
/**
344
* Security credential is invalid.
345
*/
346
AEROSPIKE_INVALID_CREDENTIAL
= 65,
347
348
/**
349
* Login session expired.
350
*/
351
AEROSPIKE_EXPIRED_SESSION
= 66,
352
353
/**
354
* Role name is invalid.
355
*/
356
AEROSPIKE_INVALID_ROLE
= 70,
357
358
/**
359
* Role already exists.
360
*/
361
AEROSPIKE_ROLE_ALREADY_EXISTS
= 71,
362
363
/**
364
* Privilege is invalid.
365
*/
366
AEROSPIKE_INVALID_PRIVILEGE
= 72,
367
368
/**
369
* Invalid IP whitelist.
370
*/
371
AEROSPIKE_INVALID_WHITELIST
= 73,
372
373
/**
374
* Quotas not enabled on server.
375
*/
376
AEROSPIKE_QUOTAS_NOT_ENABLED
= 74,
377
378
/**
379
* Invalid quota.
380
*/
381
AEROSPIKE_INVALID_QUOTA
= 75,
382
383
/**
384
* User must be authentication before performing database operations.
385
*/
386
AEROSPIKE_NOT_AUTHENTICATED
= 80,
387
388
/**
389
* User does not possess the required role to perform the database operation.
390
*/
391
AEROSPIKE_ROLE_VIOLATION
= 81,
392
393
/**
394
* Command not allowed because sender IP not whitelisted.
395
*/
396
AEROSPIKE_NOT_WHITELISTED
= 82,
397
398
/**
399
* Quota exceeded.
400
*/
401
AEROSPIKE_QUOTA_EXCEEDED
= 83,
402
403
/**
404
* Generic UDF error.
405
*/
406
AEROSPIKE_ERR_UDF
= 100,
407
408
/**
409
* Batch functionality has been disabled.
410
*/
411
AEROSPIKE_ERR_BATCH_DISABLED
= 150,
412
413
/**
414
* Batch max requests have been exceeded.
415
*/
416
AEROSPIKE_ERR_BATCH_MAX_REQUESTS_EXCEEDED
= 151,
417
418
/**
419
* All batch queues are full.
420
*/
421
AEROSPIKE_ERR_BATCH_QUEUES_FULL
= 152,
422
423
/**
424
* Invalid/Unsupported GeoJSON
425
*/
426
AEROSPIKE_ERR_GEO_INVALID_GEOJSON
= 160,
427
428
/**
429
* Index found.
430
*/
431
AEROSPIKE_ERR_INDEX_FOUND
= 200,
432
433
/**
434
* Index not found
435
*/
436
AEROSPIKE_ERR_INDEX_NOT_FOUND
= 201,
437
438
/**
439
* Index is out of memory
440
*/
441
AEROSPIKE_ERR_INDEX_OOM
= 202,
442
443
/**
444
* Unable to read the index.
445
*/
446
AEROSPIKE_ERR_INDEX_NOT_READABLE
= 203,
447
448
/**
449
* Generic secondary index error.
450
*/
451
AEROSPIKE_ERR_INDEX
= 204,
452
453
/**
454
* Index name is too long.
455
*/
456
AEROSPIKE_ERR_INDEX_NAME_MAXLEN
= 205,
457
458
/**
459
* System already has maximum allowed indices.
460
*/
461
AEROSPIKE_ERR_INDEX_MAXCOUNT
= 206,
462
463
/**
464
* Query was aborted.
465
*/
466
AEROSPIKE_ERR_QUERY_ABORTED
= 210,
467
468
/**
469
* Query processing queue is full.
470
*/
471
AEROSPIKE_ERR_QUERY_QUEUE_FULL
= 211,
472
473
/**
474
* Secondary index query timed out on server.
475
*/
476
AEROSPIKE_ERR_QUERY_TIMEOUT
= 212,
477
478
/**
479
* Generic query error.
480
*/
481
AEROSPIKE_ERR_QUERY
= 213,
482
483
/***************************************************************************
484
* UDF OPERATIONS
485
**************************************************************************/
486
487
/**
488
* UDF does not exist.
489
*/
490
AEROSPIKE_ERR_UDF_NOT_FOUND
= 1301,
491
/**
492
* LUA file does not exist.
493
*/
494
AEROSPIKE_ERR_LUA_FILE_NOT_FOUND
= 1302,
495
496
}
as_status
;
497
498
#ifdef __cplusplus
499
}
// end extern "C"
500
#endif
AEROSPIKE_ROLE_VIOLATION
Definition:
as_status.h:391
AEROSPIKE_ERR_GEO_INVALID_GEOJSON
Definition:
as_status.h:426
AEROSPIKE_ERR_REQUEST_INVALID
Definition:
as_status.h:153
AEROSPIKE_ERR_INDEX_MAXCOUNT
Definition:
as_status.h:461
AEROSPIKE_ERR_INDEX_NOT_READABLE
Definition:
as_status.h:446
AEROSPIKE_ERR_RECORD_GENERATION
Definition:
as_status.h:148
AEROSPIKE_ERR_ASYNC_CONNECTION
Definition:
as_status.h:89
AEROSPIKE_ERR_LUA_FILE_NOT_FOUND
Definition:
as_status.h:494
AEROSPIKE_SECURITY_NOT_SUPPORTED
Definition:
as_status.h:291
AEROSPIKE_ERR_QUERY_QUEUE_FULL
Definition:
as_status.h:471
AEROSPIKE_ERR_SERVER_FULL
Definition:
as_status.h:176
AEROSPIKE_NOT_AUTHENTICATED
Definition:
as_status.h:386
as_status
as_status
Definition:
as_status.h:30
AEROSPIKE_FILTERED_OUT
Definition:
as_status.h:276
AEROSPIKE_FORBIDDEN_PASSWORD
Definition:
as_status.h:341
AEROSPIKE_ERR_PARAM
Definition:
as_status.h:109
AEROSPIKE_ERR_QUERY_TIMEOUT
Definition:
as_status.h:476
AEROSPIKE_ERR_RECORD_TOO_BIG
Definition:
as_status.h:202
AEROSPIKE_ERR_NO_MORE_CONNECTIONS
Definition:
as_status.h:84
AEROSPIKE_ERR_OP_NOT_APPLICABLE
Definition:
as_status.h:270
AEROSPIKE_SECURITY_SCHEME_NOT_SUPPORTED
Definition:
as_status.h:301
AEROSPIKE_NOT_WHITELISTED
Definition:
as_status.h:396
AEROSPIKE_ERR_UNSUPPORTED_FEATURE
Definition:
as_status.h:218
AEROSPIKE_ERR_INVALID_HOST
Definition:
as_status.h:99
AEROSPIKE_ERR_RECORD_NOT_FOUND
Definition:
as_status.h:143
AEROSPIKE_INVALID_FIELD
Definition:
as_status.h:311
AEROSPIKE_ERR_BATCH_QUEUES_FULL
Definition:
as_status.h:421
AEROSPIKE_ERR_BATCH_DISABLED
Definition:
as_status.h:411
AEROSPIKE_ERR_RECORD_BUSY
Definition:
as_status.h:207
AEROSPIKE_ERR_BIN_NOT_FOUND
Definition:
as_status.h:223
AEROSPIKE_INVALID_CREDENTIAL
Definition:
as_status.h:346
AEROSPIKE_OK
Definition:
as_status.h:128
AEROSPIKE_EXPIRED_PASSWORD
Definition:
as_status.h:336
AEROSPIKE_ERR_TLS_ERROR
Definition:
as_status.h:74
AEROSPIKE_INVALID_PASSWORD
Definition:
as_status.h:331
AEROSPIKE_INVALID_PRIVILEGE
Definition:
as_status.h:366
AEROSPIKE_MAX_ERROR_RATE
Definition:
as_status.h:48
AEROSPIKE_INVALID_ROLE
Definition:
as_status.h:356
AEROSPIKE_ERR_INDEX_NAME_MAXLEN
Definition:
as_status.h:456
AEROSPIKE_USE_NORMAL_RETRY
Definition:
as_status.h:54
AEROSPIKE_QUOTAS_NOT_ENABLED
Definition:
as_status.h:376
AEROSPIKE_ERR_DEVICE_OVERLOAD
Definition:
as_status.h:228
AEROSPIKE_ERR_RECORD_EXISTS
Definition:
as_status.h:159
AEROSPIKE_ERR_INDEX_FOUND
Definition:
as_status.h:431
AEROSPIKE_INVALID_WHITELIST
Definition:
as_status.h:371
AEROSPIKE_SECURITY_NOT_ENABLED
Definition:
as_status.h:296
AEROSPIKE_ERR_TIMEOUT
Definition:
as_status.h:181
AEROSPIKE_QUOTA_EXCEEDED
Definition:
as_status.h:401
AEROSPIKE_NO_RESPONSE
Definition:
as_status.h:43
AEROSPIKE_INVALID_USER
Definition:
as_status.h:321
AEROSPIKE_ERR_FAIL_FORBIDDEN
Definition:
as_status.h:249
AEROSPIKE_ERR_CLIENT_ABORT
Definition:
as_status.h:94
AEROSPIKE_ERR_FAIL_ELEMENT_NOT_FOUND
Definition:
as_status.h:254
AEROSPIKE_INVALID_QUOTA
Definition:
as_status.h:381
AEROSPIKE_ERR_BIN_NAME
Definition:
as_status.h:244
AEROSPIKE_ERR_INDEX
Definition:
as_status.h:451
AEROSPIKE_ERR_RECORD_KEY_MISMATCH
Definition:
as_status.h:233
AEROSPIKE_LOST_CONFLICT
Definition:
as_status.h:281
AEROSPIKE_ILLEGAL_STATE
Definition:
as_status.h:316
AEROSPIKE_NO_MORE_RECORDS
Definition:
as_status.h:104
AEROSPIKE_ERR_SCAN_ABORTED
Definition:
as_status.h:212
AEROSPIKE_ERR_FAIL_ELEMENT_EXISTS
Definition:
as_status.h:259
AEROSPIKE_ERR_INDEX_OOM
Definition:
as_status.h:441
AEROSPIKE_ERR_CLUSTER
Definition:
as_status.h:191
AEROSPIKE_EXPIRED_SESSION
Definition:
as_status.h:351
AEROSPIKE_ERR_SERVER
Definition:
as_status.h:137
AEROSPIKE_ROLE_ALREADY_EXISTS
Definition:
as_status.h:361
AEROSPIKE_ERR_UDF_NOT_FOUND
Definition:
as_status.h:490
AEROSPIKE_ERR_QUERY
Definition:
as_status.h:481
AEROSPIKE_ERR
Definition:
as_status.h:119
AEROSPIKE_USER_ALREADY_EXISTS
Definition:
as_status.h:326
AEROSPIKE_ERR_UDF
Definition:
as_status.h:406
AEROSPIKE_ERR_ASYNC_QUEUE_FULL
Definition:
as_status.h:64
AEROSPIKE_ERR_CLUSTER_CHANGE
Definition:
as_status.h:170
AEROSPIKE_ERR_CLIENT
Definition:
as_status.h:114
AEROSPIKE_ERR_INDEX_NOT_FOUND
Definition:
as_status.h:436
AEROSPIKE_ERR_MAX_RETRIES_EXCEEDED
Definition:
as_status.h:59
AEROSPIKE_ERR_BIN_EXISTS
Definition:
as_status.h:164
AEROSPIKE_ERR_BIN_INCOMPATIBLE_TYPE
Definition:
as_status.h:197
AEROSPIKE_ERR_QUERY_ABORTED
Definition:
as_status.h:466
AEROSPIKE_BATCH_FAILED
Definition:
as_status.h:38
AEROSPIKE_ERR_ENTERPRISE_ONLY
Definition:
as_status.h:265
AEROSPIKE_QUERY_END
Definition:
as_status.h:286
AEROSPIKE_ERR_ALWAYS_FORBIDDEN
Definition:
as_status.h:186
AEROSPIKE_ERR_CONNECTION
Definition:
as_status.h:69
AEROSPIKE_INVALID_COMMAND
Definition:
as_status.h:306
AEROSPIKE_ERR_NAMESPACE_NOT_FOUND
Definition:
as_status.h:238
AEROSPIKE_ERR_BATCH_MAX_REQUESTS_EXCEEDED
Definition:
as_status.h:416
AEROSPIKE_ERR_INVALID_NODE
Definition:
as_status.h:79