Zero  0.1.0
w_error_xmacro.h
Go to the documentation of this file.
1 /*
2  * (c) Copyright 2014, Hewlett-Packard Development Company, LP
3  */
4 
17 X(fcINTERNAL,
18 
19 "Internal error")
20 
21 X(fcOS,
22 
23 "Operating system error ")
24 
25 X(fcFULL,
26 
27 "Container is full")
28 
29 X(fcOUTOFMEMORY,
30 
31 "Malloc failed: out of memory ")
32 
33 X(fcMMAPFAILED,
34 
35 "Mmap could not map aligned memory")
36 
37 X(fcNOTIMPLEMENTED,
38 
39 "Feature is not implemented")
40 
41 X(stINTERNAL,
42 
43 "Internal error")
44 
45 X(stOS,
46 
47 "Operating system error ")
48 
49 X(stTIMEOUT,
50 
51 "Timed out waiting for resource")
52 
53 X(stBADPATH,
54 
55 "Path name cannot be stat()ed")
56 
57 X(stBADFD,
58 
59 "Bad file descriptor for I/O operation, seek, or close")
60 
61 X(stINUSE,
62 
63 "Resource in use")
64 
65 X(stSHORTIO,
66 
67 "Short I/O")
68 
69 X(stSHORTSEEK,
70 
71 "Short Seek")
72 
73 X(eINTERNAL,
74 
75 "Internal error")
76 
77 X(eOS,
78 
79 "Operating system error ")
80 
81 X(eNOTIMPLEMENTED,
82 
83 "Feature is not implemented")
84 
85 X(eBADOPTION,
86 
87 "Invalid value for SM option")
88 
89 X(eUSERABORT,
90 
91 "User initiated abort")
92 
93 X(eCRASH,
94 
95 "Server told to crash or shutdown immediately")
96 
97 X(eOUTOFSPACE,
98 
99 "Out of disk space")
100 
101 X(eBADSTID,
102 
103 "Malformed or invalid store ID")
104 
105 X(eNOTFOUND,
106 
107 "Item not found ")
108 
109 X(eFRAMENOTFOUND,
110 
111 "Frame not found in buffer pool ")
112 
113 X(eBADVOL,
114 
115 "Invalid volume ID")
116 
117 X(eVOLTOOLARGE,
118 
119 "Volume is too large for device")
120 
121 X(eDEVTOOLARGE,
122 
123 "Device is too large for OS file interface")
124 
125 X(eDEVICEVOLFULL,
126 
127 "Device cannot hold anymore volumes")
128 
129 X(eDEVNOTMOUNTED,
130 
131 "Device is not mounted")
132 
133 X(eALREADYMOUNTED,
134 
135 "Device already mounted")
136 
137 X(eVOLEXISTS,
138 
139 "Volume already exists")
140 
141 X(eBADFORMAT,
142 
143 "Volume has bad format")
144 
145 X(eNVOL,
146 
147 "Too many volumes")
148 
149 X(eEOF,
150 
151 "End of scan/record reached")
152 
153 X(eDUPLICATE,
154 
155 "Duplicate entries found")
156 
157 X(eBADSTOREFLAGS,
158 
159 "Bad store flags")
160 
161 X(eSTCACHEFULL,
162 
163 "Maximum number of stores already created")
164 
165 X(eNDXNOTEMPTY,
166 
167 "Index is not empty")
168 
169 X(eOUTOFLOGSPACE,
170 
171 "Out of log space ")
172 
173 X(eOUTOFMEMORY,
174 
175 "Malloc failed: out of memory ")
176 
177 X(eRECWONTFIT,
178 
179 "Record will not fit")
180 
181 X(eCANTCOMPRESS,
182 
183 "B-tree page cannot be compressed further")
184 
185 X(eBADSAVEPOINT,
186 
187 "Bad save point ")
188 
189 X(eBADCHECKSUM,
190 
191 "Page checksum does not match")
192 
193 X(eBADARGUMENT,
194 
195 "Bad argument or combination of arguments to function")
196 
197 X(eTWOTHREAD,
198 
199 "Multiple threads not allowed for this operation")
200 
201 X(eTWOUTHREAD,
202 
203 "Multiple update threads not allowed for this operation")
204 
205 X(eNOTRANS,
206 
207 "No active transaction")
208 
209 X(eINTRANS,
210 
211 "In active transaction (not allowed for this operation)")
212 
213 X(eNOABORT,
214 
215 "Logging is turned off -- cannot roll back")
216 
217 X(eISPREPARED,
218 
219 "Transaction thread is prepared -- cannot do this operaton")
220 
221 X(eNOTEXTERN2PC,
222 
223 "Transaction is not participating in external 2-phase commit ")
224 
225 X(eTHREADMAPFULL,
226 
227 "No more bits for thread maps")
228 
229 X(eLOCKTIMEOUT,
230 
231 "Lock timeout")
232 
233 X(eCONDLOCKTIMEOUT,
234 
235 "Conditional lock timeout. Unconditional retry should follow")
236 
237 X(eLATCHQFAIL,
238 
239 "Attempt to acquire/maintain latch in Q mode failed")
240 
241 X(ePARENTLATCHQFAIL,
242 
243 "Attempt to fix page in Q mode failed because parent's Q latch failed")
244 
245 X(eNEEDREALLATCH,
246 
247 "Need parent and child page fixed in SH or EX modes")
248 
249 X(eNOTBLOCKED,
250 
251 "Smthread is not blocked")
252 
253 X(eDEADLOCK,
254 
255 "Deadlock detected")
256 
257 X(eBADCCLEVEL,
258 
259 "Unsupported concurrency control level")
260 
261 X(eRETRY,
262 
263 "Retry the request (used internally)")
264 
265 X(eGOODRETRY,
266 
267 "Retry, but had some progress (used internally)")
268 
269 X(eLOCKRETRY,
270 
271 "Retry related to locks (used internally)")
272 
273 X(eTOOMANYRETRY,
274 
275 "This IS an error and can be thrown to user")
276 
277 X(eCANTWHILEACTIVEXCTS,
278 
279 "Can't do to volume while there are active transactions")
280 
281 X(eLISTTOOLONG,
282 
283 "Too many items in list")
284 
285 X(eLOGVERSIONTOONEW,
286 
287 "Log created with newer incompatible server")
288 
289 X(eLOGVERSIONTOOOLD,
290 
291 "Log created with older incompatible server")
292 
293 X(eBADMASTERCHKPTFORMAT,
294 
295 "Bad format for master checkpoint")
296 
297 X(eLOGSPACEWARN,
298 
299 "Log space warning (not necessarily out)")
300 
301 X(eBADCOMPENSATION,
302 
303 "Log could not apply requested compensation")
304 
305 X(eDUAUDITFAILED,
306 
307 "Audit failed for du statistics")
308 
309 X(ePINACTIVE,
310 
311 "Thread has something pinned")
312 
313 X(eBPFORCEFAILED,
314 
315 "Could not force all the necessary pages from the buffer pool")
316 
317 X(eWRITEORDERLOOP,
318 
319 "Causes a loop in write order dependency")
320 
321 X(eLIL_TOOMANYVOL_XCT,
322 
323 "Accessing too many volumes in one transaction")
324 
325 X(eLIL_TOOMANYST_XCT,
326 
327 "Accessing too many stores in one transaction")
328 
329 X(eBF_DIRECTFIX_SWIZZLED_PTR,
330 
331 "Requested a direct page fix with swizzled pointer")
332 
333 X(eWRONG_PAGE_LSNCHAIN,
334 
335 "Not the right per-page LSN chain to follow")
336 
337 X(eNO_PARENT_SPR,
338 
339 "Parent page needed for Single-Page-Recovery")
340 
341 X(eBACKUPBUSY,
342 
343 "Backup is already being taken")
344 
345 X(eNO_BACKUP_FILE,
346 
347 "Backup file does not exist")
348 
349 X(eBACKUP_SHORTSEEK,
350 
351 "Failed to seek in Backup file")
352 
353 X(eBACKUP_SHORTIO,
354 
355 "Failed to read from Backup file")
356 
357 X(eBFFULL,
358 
359 "Buffer pool is full during Recovery operation")
360 
361 X(eACCESS_CONFLICT,
362 
363 "User transaction is conflicting with Recovery task on a page access")
364 
365 X(eBAD_BACKUPPAGE,
366 
367 "Retrieved page from backup file was incorrect")
368 
369 X(eVOLFAILED,
370 
371 "Volume is failed")
372 
373 /*
374  * CS: The old Shore-MT RC used a simple integer as error code, which allowed
375  * any application to define its own codes. This was done in Shore-Kits to
376  * represent errors in tables, indices, etc.
377  *
378  * Since extending error codes is not possible with the new Zero design, I've
379  * simply copied the Kits error codes below.
380  */
381 X(se_NOT_FOUND,
382 
383 "se_NOT_FOUND")
384 
385 X(se_VOLUME_NOT_FOUND,
386 
387 "se_VOLUME_NOT_FOUND")
388 
389 X(se_INDEX_NOT_FOUND,
390 
391 "se_INDEX_NOT_FOUND")
392 
393 X(se_TABLE_NOT_FOUND,
394 
395 "se_TABLE_NOT_FOUND")
396 
397 X(se_TUPLE_NOT_FOUND,
398 
399 "se_TUPLE_NOT_FOUND")
400 
401 X(se_NO_CURRENT_TUPLE,
402 
403 "se_NO_CURRENT_TUPLE")
404 
405 X(se_CANNOT_INSERT_TUPLE,
406 
407 "se_CANNOT_INSERT_TUPLE")
408 
409 X(se_SCAN_OPEN_ERROR,
410 
411 "se_SCAN_OPEN_ERROR")
412 
413 X(se_INCONSISTENT_INDEX,
414 
415 "se_INCONSISTENT_INDEX")
416 
417 X(se_OPEN_SCAN_ERROR,
418 
419 "se_OPEN_SCAN_ERROR")
420 
421 X(se_LOAD_NOT_EXCLUSIVE,
422 
423 "se_LOAD_NOT_EXCLUSIVE")
424 
425 X(se_ERROR_IN_LOAD,
426 
427 "se_ERROR_IN_LOAD")
428 
429 X(se_ERROR_IN_IDX_LOAD,
430 
431 "se_ERROR_IN_IDX_LOAD")
432 
433 X(se_WRONG_DISK_DATA,
434 
435 "se_WRONG_DISK_DATA")
436 
437 X(se_INVALID_INPUT,
438 
439 "se_INVALID_INPUT")
Operating system error Malloc Mmap could not map aligned memory Internal error Timed out waiting for resource Bad file descriptor for I O or close Short I O Internal error Feature is not implemented User initiated abort Out of disk space Item not found Invalid volume ID Device is too large for OS file interface Device is not mounted Volume already exists Too many volumes Duplicate entries found Maximum number of stores already created Out of log space Record will not fit Bad save point Bad argument or combination of arguments to function Multiple update threads not allowed for this operation In active transaction(not allowed for this operation)") X(eNOABORT
Operating system error Malloc Mmap could not map aligned memory Internal error Timed out waiting for resource Bad file descriptor for I O or close Short I O Internal error Feature is not implemented User initiated abort Out of disk space Item not found Invalid volume ID Device is too large for OS file interface Device is not mounted Volume already exists Too many volumes Duplicate entries found Maximum number of stores already created Out of log space Record will not fit Bad save point Bad argument or combination of arguments to function Multiple update threads not allowed for this operation In active Logging is turned off cannot roll back Transaction is not participating in external phase commit Lock timeout Attempt to acquire maintain latch in Q mode failed Need parent and child page fixed in SH or EX modes Deadlock detected Retry the but had some progress(used internally)") X(eLOCKRETRY
Operating system error Malloc Mmap could not map aligned memory Internal error Timed out waiting for resource Bad file descriptor for I O or close Short I O Internal error Feature is not implemented User initiated abort Out of disk space Item not found Invalid volume ID Device is too large for OS file interface Device is not mounted Volume already exists Too many volumes Duplicate entries found Maximum number of stores already created Out of log space Record will not fit Bad save point Bad argument or combination of arguments to function Multiple update threads not allowed for this operation In active Logging is turned off cannot roll back Transaction is not participating in external phase commit Lock timeout Attempt to acquire maintain latch in Q mode failed Need parent and child page fixed in SH or EX modes Deadlock detected Retry the but had some Retry related to This IS an error and can be thrown to user Too many items in list Log created with older incompatible server Log space warning(not necessarily out)") X(eBADCOMPENSATION
Operating system error Malloc Mmap could not map aligned memory Internal error Timed out waiting for resource Bad file descriptor for I O operation
Definition: w_error_xmacro.h:59
Operating system error Malloc Mmap could not map aligned memory Internal error Timed out waiting for resource Bad file descriptor for I O or close Short I O Internal error Feature is not implemented User initiated abort Out of disk space Item not found Invalid volume ID Device is too large for OS file interface Device is not mounted Volume already exists Too many volumes Duplicate entries found Maximum number of stores already created Out of log space Record will not fit Bad save point Bad argument or combination of arguments to function Multiple update threads not allowed for this operation In active Logging is turned off cannot roll back Transaction is not participating in external phase commit Lock timeout Attempt to acquire maintain latch in Q mode failed Need parent and child page fixed in SH or EX modes Deadlock detected Retry the but had some Retry related to locks(used internally)") X(eTOOMANYRETRY
Operating system error Malloc Mmap could not map aligned memory Internal error Timed out waiting for resource Bad file descriptor for I O or close Short I O Internal error Feature is not implemented User initiated abort Out of disk space Item not found Invalid volume ID Device is too large for OS file interface Device is not mounted Volume already exists Too many volumes Duplicate entries found Maximum number of stores already created Out of log space Record will not fit Bad save point Bad argument or combination of arguments to function Multiple update threads not allowed for this operation In active Logging is turned off cannot roll back Transaction is not participating in external phase commit Lock timeout Attempt to acquire maintain latch in Q mode failed Need parent and child page fixed in SH or EX modes Deadlock detected Retry the Retry
Definition: w_error_xmacro.h:267
Operating system error Malloc Mmap could not map aligned memory Internal error Timed out waiting for resource Bad file descriptor for I O seek
Definition: w_error_xmacro.h:59
Operating system error Malloc failed
Definition: w_error_xmacro.h:33
Operating system error Malloc Mmap could not map aligned memory Internal error Timed out waiting for resource Bad file descriptor for I O or close Short I O Internal error Feature is not implemented User initiated abort Out of disk space Item not found Invalid volume ID Device is too large for OS file interface Device is not mounted Volume already exists Too many volumes Duplicate entries found Maximum number of stores already created Out of log space Record will not fit Bad save point Bad argument or combination of arguments to function Multiple update threads not allowed for this operation In active Logging is turned off cannot roll back Transaction is not participating in external phase commit Lock timeout Attempt to acquire maintain latch in Q mode failed Need parent and child page fixed in SH or EX modes Deadlock detected Retry the request(used internally)") X(eGOODRETRY
X(fcINTERNAL, "Internal error") X(fcOS