error_codes.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. #pragma once
  2. //
  3. // generated by generate-error-codes.py
  4. //
  5. namespace NYT {
  6. namespace NClusterErrorCodes {
  7. // from ./core/misc/public.h
  8. ////////////////////////////////////////////////////////////////////////////////
  9. constexpr int OK = 0;
  10. constexpr int Generic = 1;
  11. constexpr int Canceled = 2;
  12. constexpr int Timeout = 3;
  13. ////////////////////////////////////////////////////////////////////////////////
  14. // from ./core/rpc/public.h
  15. namespace NRpc {
  16. ////////////////////////////////////////////////////////////////////////////////
  17. constexpr int TransportError = 100;
  18. constexpr int ProtocolError = 101;
  19. constexpr int NoSuchService = 102;
  20. constexpr int NoSuchMethod = 103;
  21. constexpr int Unavailable = 105;
  22. constexpr int PoisonPill = 106;
  23. constexpr int RequestQueueSizeLimitExceeded = 108;
  24. constexpr int AuthenticationError = 109;
  25. constexpr int InvalidCsrfToken = 110;
  26. constexpr int InvalidCredentials = 111;
  27. constexpr int StreamingNotSupported = 112;
  28. constexpr int TransientFailure = 116;
  29. ////////////////////////////////////////////////////////////////////////////////
  30. } // namespace NRpc
  31. // from ./core/bus/public.h
  32. namespace NBus {
  33. ////////////////////////////////////////////////////////////////////////////////
  34. constexpr int TransportError = 100;
  35. ////////////////////////////////////////////////////////////////////////////////
  36. } // namespace NBus
  37. // from ./client/scheduler/public.h
  38. namespace NScheduler {
  39. ////////////////////////////////////////////////////////////////////////////////
  40. constexpr int NoSuchOperation = 200;
  41. constexpr int InvalidOperationState = 201;
  42. constexpr int TooManyOperations = 202;
  43. constexpr int NoSuchJob = 203;
  44. constexpr int OperationFailedOnJobRestart = 210;
  45. constexpr int OperationFailedWithInconsistentLocking = 211;
  46. constexpr int OperationControllerCrashed = 212;
  47. constexpr int TestingError = 213;
  48. ////////////////////////////////////////////////////////////////////////////////
  49. } // namespace NScheduler
  50. // from ./client/table_client/public.h
  51. namespace NTableClient {
  52. ////////////////////////////////////////////////////////////////////////////////
  53. constexpr int SortOrderViolation = 301;
  54. constexpr int InvalidDoubleValue = 302;
  55. constexpr int IncomparableType = 303;
  56. constexpr int UnhashableType = 304;
  57. // E.g. name table with more than #MaxColumnId columns (may come from legacy chunks).
  58. constexpr int CorruptedNameTable = 305;
  59. constexpr int UniqueKeyViolation = 306;
  60. constexpr int SchemaViolation = 307;
  61. constexpr int RowWeightLimitExceeded = 308;
  62. constexpr int InvalidColumnFilter = 309;
  63. constexpr int InvalidColumnRenaming = 310;
  64. constexpr int IncompatibleKeyColumns = 311;
  65. constexpr int ReaderDeadlineExpired = 312;
  66. constexpr int TimestampOutOfRange = 313;
  67. ////////////////////////////////////////////////////////////////////////////////
  68. } // namespace NTableClient
  69. // from ./client/cypress_client/public.h
  70. namespace NCypressClient {
  71. ////////////////////////////////////////////////////////////////////////////////
  72. constexpr int SameTransactionLockConflict = 400;
  73. constexpr int DescendantTransactionLockConflict = 401;
  74. constexpr int ConcurrentTransactionLockConflict = 402;
  75. constexpr int PendingLockConflict = 403;
  76. constexpr int LockDestroyed = 404;
  77. ////////////////////////////////////////////////////////////////////////////////
  78. } // namespace NCypressClient
  79. // from ./core/ytree/public.h
  80. namespace NYTree {
  81. ////////////////////////////////////////////////////////////////////////////////
  82. constexpr int ResolveError = 500;
  83. constexpr int AlreadyExists = 501;
  84. constexpr int MaxChildCountViolation = 502;
  85. constexpr int MaxStringLengthViolation = 503;
  86. constexpr int MaxAttributeSizeViolation = 504;
  87. constexpr int MaxKeyLengthViolation = 505;
  88. ////////////////////////////////////////////////////////////////////////////////
  89. } // namespace NYTree
  90. // from ./client/hydra/public.h
  91. namespace NHydra {
  92. ////////////////////////////////////////////////////////////////////////////////
  93. constexpr int NoSuchSnapshot = 600;
  94. constexpr int NoSuchChangelog = 601;
  95. constexpr int InvalidEpoch = 602;
  96. constexpr int InvalidVersion = 603;
  97. constexpr int OutOfOrderMutations = 609;
  98. constexpr int InvalidSnapshotVersion = 610;
  99. ////////////////////////////////////////////////////////////////////////////////
  100. } // namespace NHydra
  101. // from ./client/chunk_client/public.h
  102. namespace NChunkClient {
  103. ////////////////////////////////////////////////////////////////////////////////
  104. constexpr int AllTargetNodesFailed = 700;
  105. constexpr int SendBlocksFailed = 701;
  106. constexpr int NoSuchSession = 702;
  107. constexpr int SessionAlreadyExists = 703;
  108. constexpr int ChunkAlreadyExists = 704;
  109. constexpr int WindowError = 705;
  110. constexpr int BlockContentMismatch = 706;
  111. constexpr int NoSuchBlock = 707;
  112. constexpr int NoSuchChunk = 708;
  113. constexpr int NoLocationAvailable = 710;
  114. constexpr int IOError = 711;
  115. constexpr int MasterCommunicationFailed = 712;
  116. constexpr int NoSuchChunkTree = 713;
  117. constexpr int MasterNotConnected = 714;
  118. constexpr int ChunkUnavailable = 716;
  119. constexpr int NoSuchChunkList = 717;
  120. constexpr int WriteThrottlingActive = 718;
  121. constexpr int NoSuchMedium = 719;
  122. constexpr int OptimisticLockFailure = 720;
  123. constexpr int InvalidBlockChecksum = 721;
  124. constexpr int BlockOutOfRange = 722;
  125. constexpr int ObjectNotReplicated = 723;
  126. constexpr int MissingExtension = 724;
  127. constexpr int BandwidthThrottlingFailed = 725;
  128. constexpr int ReaderTimeout = 726;
  129. constexpr int NoSuchChunkView = 727;
  130. ////////////////////////////////////////////////////////////////////////////////
  131. } // namespace NChunkClient
  132. // from ./client/election/public.h
  133. namespace NElection {
  134. ////////////////////////////////////////////////////////////////////////////////
  135. constexpr int InvalidState = 800;
  136. constexpr int InvalidLeader = 801;
  137. constexpr int InvalidEpoch = 802;
  138. ////////////////////////////////////////////////////////////////////////////////
  139. } // namespace NElection
  140. // from ./client/security_client/public.h
  141. namespace NSecurityClient {
  142. ////////////////////////////////////////////////////////////////////////////////
  143. constexpr int AuthenticationError = 900;
  144. constexpr int AuthorizationError = 901;
  145. constexpr int AccountLimitExceeded = 902;
  146. constexpr int UserBanned = 903;
  147. constexpr int RequestQueueSizeLimitExceeded = 904;
  148. constexpr int NoSuchAccount = 905;
  149. constexpr int SafeModeEnabled = 906;
  150. ////////////////////////////////////////////////////////////////////////////////
  151. } // namespace NSecurityClient
  152. // from ./client/object_client/public.h
  153. namespace NObjectClient {
  154. ////////////////////////////////////////////////////////////////////////////////
  155. constexpr int PrerequisiteCheckFailed = 1000;
  156. constexpr int CrossCellAdditionalPath = 1002;
  157. ////////////////////////////////////////////////////////////////////////////////
  158. } // namespace NObjectClient
  159. // from ./server/lib/exec_agent/public.h
  160. namespace NExecAgent {
  161. ////////////////////////////////////////////////////////////////////////////////
  162. constexpr int ConfigCreationFailed = 1100;
  163. constexpr int AbortByScheduler = 1101;
  164. constexpr int ResourceOverdraft = 1102;
  165. constexpr int WaitingJobTimeout = 1103;
  166. constexpr int SlotNotFound = 1104;
  167. constexpr int JobEnvironmentDisabled = 1105;
  168. constexpr int JobProxyConnectionFailed = 1106;
  169. constexpr int ArtifactCopyingFailed = 1107;
  170. constexpr int NodeDirectoryPreparationFailed = 1108;
  171. constexpr int SlotLocationDisabled = 1109;
  172. constexpr int QuotaSettingFailed = 1110;
  173. constexpr int RootVolumePreparationFailed = 1111;
  174. constexpr int NotEnoughDiskSpace = 1112;
  175. constexpr int ArtifactDownloadFailed = 1113;
  176. constexpr int JobProxyPreparationTimeout = 1114;
  177. constexpr int JobPreparationTimeout = 1115;
  178. constexpr int JobProxyFailed = 1120;
  179. ////////////////////////////////////////////////////////////////////////////////
  180. } // namespace NExecAgent
  181. // from ./ytlib/job_proxy/public.h
  182. namespace NJobProxy {
  183. ////////////////////////////////////////////////////////////////////////////////
  184. constexpr int MemoryLimitExceeded = 1200;
  185. constexpr int MemoryCheckFailed = 1201;
  186. constexpr int JobTimeLimitExceeded = 1202;
  187. constexpr int UnsupportedJobType = 1203;
  188. constexpr int JobNotPrepared = 1204;
  189. constexpr int UserJobFailed = 1205;
  190. ////////////////////////////////////////////////////////////////////////////////
  191. } // namespace NJobProxy
  192. // from ./server/node/data_node/public.h
  193. namespace NDataNode {
  194. ////////////////////////////////////////////////////////////////////////////////
  195. constexpr int LocalChunkReaderFailed = 1300;
  196. constexpr int LayerUnpackingFailed = 1301;
  197. ////////////////////////////////////////////////////////////////////////////////
  198. } // namespace NDataNode
  199. // from ./core/net/public.h
  200. namespace NNet {
  201. ////////////////////////////////////////////////////////////////////////////////
  202. constexpr int Aborted = 1500;
  203. constexpr int ResolveTimedOut = 1501;
  204. ////////////////////////////////////////////////////////////////////////////////
  205. } // namespace NNet
  206. // from ./client/node_tracker_client/public.h
  207. namespace NNodeTrackerClient {
  208. ////////////////////////////////////////////////////////////////////////////////
  209. constexpr int NoSuchNode = 1600;
  210. constexpr int InvalidState = 1601;
  211. constexpr int NoSuchNetwork = 1602;
  212. constexpr int NoSuchRack = 1603;
  213. constexpr int NoSuchDataCenter = 1604;
  214. ////////////////////////////////////////////////////////////////////////////////
  215. } // namespace NNodeTrackerClient
  216. // from ./client/tablet_client/public.h
  217. namespace NTabletClient {
  218. ////////////////////////////////////////////////////////////////////////////////
  219. constexpr int TransactionLockConflict = 1700;
  220. constexpr int NoSuchTablet = 1701;
  221. constexpr int TabletNotMounted = 1702;
  222. constexpr int AllWritesDisabled = 1703;
  223. constexpr int InvalidMountRevision = 1704;
  224. constexpr int TableReplicaAlreadyExists = 1705;
  225. constexpr int InvalidTabletState = 1706;
  226. ////////////////////////////////////////////////////////////////////////////////
  227. } // namespace NTabletClient
  228. // from ./server/lib/shell/public.h
  229. namespace NShell {
  230. ////////////////////////////////////////////////////////////////////////////////
  231. constexpr int ShellExited = 1800;
  232. constexpr int ShellManagerShutDown = 1801;
  233. ////////////////////////////////////////////////////////////////////////////////
  234. } // namespace NShell
  235. // from ./client/api/public.h
  236. namespace NApi {
  237. ////////////////////////////////////////////////////////////////////////////////
  238. constexpr int TooManyConcurrentRequests = 1900;
  239. constexpr int JobArchiveUnavailable = 1910;
  240. constexpr int RetriableArchiveError = 1911;
  241. constexpr int NoSuchOperation = 1915;
  242. ////////////////////////////////////////////////////////////////////////////////
  243. } // namespace NApi
  244. // from ./server/controller_agent/chunk_pools/public.h
  245. namespace NChunkPools {
  246. ////////////////////////////////////////////////////////////////////////////////
  247. constexpr int DataSliceLimitExceeded = 2000;
  248. constexpr int MaxDataWeightPerJobExceeded = 2001;
  249. constexpr int MaxPrimaryDataWeightPerJobExceeded = 2002;
  250. ////////////////////////////////////////////////////////////////////////////////
  251. } // namespace NChunkPools
  252. // from ./client/api/rpc_proxy/public.h
  253. namespace NApi {
  254. ////////////////////////////////////////////////////////////////////////////////
  255. constexpr int ProxyBanned = 2100;
  256. ////////////////////////////////////////////////////////////////////////////////
  257. } // namespace NApi
  258. // from ./ytlib/controller_agent/public.h
  259. namespace NControllerAgent {
  260. ////////////////////////////////////////////////////////////////////////////////
  261. constexpr int AgentCallFailed = 4400;
  262. constexpr int NoOnlineNodeToScheduleJob = 4410;
  263. constexpr int MaterializationFailed = 4415;
  264. ////////////////////////////////////////////////////////////////////////////////
  265. } // namespace NControllerAgent
  266. // from ./client/transaction_client/public.h
  267. namespace NTransactionClient {
  268. ////////////////////////////////////////////////////////////////////////////////
  269. constexpr int NoSuchTransaction = 11000;
  270. ////////////////////////////////////////////////////////////////////////////////
  271. } // namespace NTransactionClient
  272. // from ./server/lib/containers/public.h
  273. namespace NContainers {
  274. ////////////////////////////////////////////////////////////////////////////////
  275. constexpr int FailedToStartContainer = 13000;
  276. ////////////////////////////////////////////////////////////////////////////////
  277. } // namespace NContainers
  278. // from ./ytlib/job_prober_client/public.h
  279. namespace NJobProberClient {
  280. ////////////////////////////////////////////////////////////////////////////////
  281. constexpr int JobIsNotRunning = 17000;
  282. ////////////////////////////////////////////////////////////////////////////////
  283. } // namespace NJobProberClient
  284. // from ./ytlib/sequoia_client/public.h
  285. namespace NSequoiaClient {
  286. ////////////////////////////////////////////////////////////////////////////////
  287. constexpr int SequoiaRetriableError = 6002;
  288. ////////////////////////////////////////////////////////////////////////////////
  289. } // namespace NSequoiaClient
  290. } // namespace NClusterErrorCodes
  291. } // namespace NYT