{"record":{"id":"89a4e3baffb0e231","repo":"apache/hadoop","slug":"error-while-recovering-from-create-failure","errorCode":null,"errorMessage":"Error while recovering from create failure.","messagePattern":"Error while recovering from create failure\\.","errorType":"exception","errorClass":"AbfsDriverException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsDfsClient.java","lineNumber":471,"sourceCode":"          }\n        }\n      } else {\n        // recovery using client transaction id only if it is a retried request.\n        if (op.isARetriedRequest() && clientTransactionId != null\n            && (op.getResult().getStatusCode() == HttpURLConnection.HTTP_CONFLICT\n            || op.getResult().getStatusCode() == HttpURLConnection.HTTP_PRECON_FAILED)) {\n          try {\n            final AbfsHttpOperation getPathStatusOp =\n                getPathStatus(path, false,\n                    tracingContext, null).getResult();\n            if (clientTransactionId.equals(\n                getPathStatusOp.getResponseHeader(\n                    X_MS_CLIENT_TRANSACTION_ID))) {\n              return getSuccessOp(AbfsRestOperationType.CreatePath,\n                  HTTP_METHOD_PUT, url, requestHeaders);\n            }\n          } catch (AzureBlobFileSystemException exception) {\n            throw new AbfsDriverException(ERR_CREATE_RECOVERY, exception);\n          }\n        }\n      }\n      throw ex;\n    }\n    return op;\n  }\n\n  /** {@inheritDoc} */\n  public void createNonRecursivePreCheck(Path parentPath,\n      TracingContext tracingContext)\n      throws IOException {\n    try {\n      getPathStatus(parentPath.toUri().getPath(), false,\n          tracingContext, null);\n    } catch (AbfsRestOperationException ex) {\n      if (ex.getStatusCode() == HttpURLConnection.HTTP_NOT_FOUND) {\n        throw new FileNotFoundException(\"Cannot create file \"","sourceCodeStart":453,"sourceCodeEnd":489,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsDfsClient.java#L453-L489","documentation":"Error \"Error while recovering from create failure.\" thrown in apache/hadoop.","triggerScenarios":"ABFS attempts to recover an ambiguous create result on the DFS endpoint and the recovery itself fails.","commonSituations":"See trigger scenarios.","solutions":["Inspect the preceding create failure in logs; the recovery path surfaces the original storage error.","Retry the create; check for concurrent writers or precondition failures on the path."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-22T20:17:22.307Z"}