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