{"record":{"id":"178f33b87c1086ef","repo":"apache/hadoop","slug":"copyblobfailed","errorCode":"CopyBlobFailed","errorMessage":"copy to path %s failed due to: %s","messagePattern":"copy to path (.+?) failed due to: (.+?)","errorType":"http","errorClass":"AbfsRestOperationException","httpStatus":500,"severity":"error","filePath":"hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/BlobRenameHandler.java","lineNumber":554,"sourceCode":"   * or is aborted.\n   */\n  @VisibleForTesting\n  public BlobCopyProgress handleCopyInProgress(final Path dstPath,\n      final TracingContext tracingContext,\n      final String copyId) throws AzureBlobFileSystemException {\n    AbfsRestOperation op = getAbfsClient().getPathStatus(\n        dstPath.toUri().getPath(),\n        tracingContext, null, false);\n\n    if (op.getResult() != null && copyId != null\n        && copyId.equals(op.getResult().getResponseHeader(X_MS_COPY_ID))) {\n      final String copyStatus = op.getResult()\n          .getResponseHeader(X_MS_COPY_STATUS);\n      if (COPY_STATUS_SUCCESS.equalsIgnoreCase(copyStatus)) {\n        return BlobCopyProgress.SUCCESS;\n      }\n      if (COPY_STATUS_FAILED.equalsIgnoreCase(copyStatus)) {\n        throw new AbfsRestOperationException(\n            COPY_BLOB_FAILED.getStatusCode(), COPY_BLOB_FAILED.getErrorCode(),\n            String.format(\"copy to path %s failed due to: %s\",\n                dstPath.toUri().getPath(),\n                op.getResult().getResponseHeader(X_MS_COPY_STATUS_DESCRIPTION)),\n            new Exception(COPY_BLOB_FAILED.getErrorCode()));\n      }\n      if (COPY_STATUS_ABORTED.equalsIgnoreCase(copyStatus)) {\n        throw new AbfsRestOperationException(\n            COPY_BLOB_ABORTED.getStatusCode(), COPY_BLOB_ABORTED.getErrorCode(),\n            String.format(\"copy to path %s aborted\", dstPath.toUri().getPath()),\n            new Exception(COPY_BLOB_ABORTED.getErrorCode()));\n      }\n    }\n    return BlobCopyProgress.PENDING;\n  }\n\n  /**\n   * Translates the destination path for a blob part of a source directory getting","sourceCodeStart":536,"sourceCodeEnd":572,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/BlobRenameHandler.java#L536-L572","documentation":"Error \"copy to path %s failed due to: %s\" thrown in apache/hadoop.","triggerScenarios":"The server-side copy underlying a blob rename fails with the reported storage error.","commonSituations":"See trigger scenarios.","solutions":["Inspect the reported cause in the message and address it (permissions, capacity, network).","Retry the rename/copy operation after resolving the underlying failure."],"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"}