{"record":{"id":"dc2398c2b390752d","repo":"apache/hadoop","slug":"parallel-access-to-the-create-path-detected-faili-dc2398","errorCode":null,"errorMessage":"Parallel access to the create path detected. Failing request to honor single writer semantics","messagePattern":"Parallel access to the create path detected\\. Failing request to honor single writer semantics","errorType":"exception","errorClass":"ConcurrentWriteOperationDetectedException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsDfsClient.java","lineNumber":535,"sourceCode":"      TracingContext tracingContext) throws IOException {\n    AbfsRestOperation op;\n    try {\n      // Trigger a create with overwrite=false first so that eTag fetch can be\n      // avoided for cases when no pre-existing file is present (major portion\n      // of create file traffic falls into the case of no pre-existing file).\n      op = createPath(relativePath, true, false, permissions,\n          isAppendBlob, null, contextEncryptionAdapter, tracingContext);\n\n    } catch (AbfsRestOperationException e) {\n      if (e.getStatusCode() == HttpURLConnection.HTTP_CONFLICT) {\n        // File pre-exists, fetch eTag\n        try {\n          op = getPathStatus(relativePath, false, tracingContext, null);\n        } catch (AbfsRestOperationException ex) {\n          if (ex.getStatusCode() == HttpURLConnection.HTTP_NOT_FOUND) {\n            // Is a parallel access case, as file which was found to be\n            // present went missing by this request.\n            throw new ConcurrentWriteOperationDetectedException();\n          } else {\n            throw ex;\n          }\n        }\n\n        String eTag = extractEtagHeader(op.getResult());\n\n        try {\n          // overwrite only if eTag matches with the file properties fetched befpre\n          op = createPath(relativePath, true, true, permissions,\n              isAppendBlob, eTag, contextEncryptionAdapter, tracingContext);\n        } catch (AbfsRestOperationException ex) {\n          if (ex.getStatusCode() == HttpURLConnection.HTTP_PRECON_FAILED) {\n            // Is a parallel access case, as file with eTag was just queried\n            // and precondition failure can happen only when another file with\n            // different etag got created.\n            throw new ConcurrentWriteOperationDetectedException();\n          } else {","sourceCodeStart":517,"sourceCodeEnd":553,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsDfsClient.java#L517-L553","documentation":"Error \"Parallel access to the create path detected. Failing request to honor single writer semantics\" thrown in apache/hadoop.","triggerScenarios":"Two clients create the same path simultaneously; ABFS fails one to enforce single-writer semantics.","commonSituations":"See trigger scenarios.","solutions":["Avoid concurrent creates of the same file from multiple writers; coordinate through a single writer.","Retry after the competing create completes if this is a transient race."],"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-23T01:17:44.959Z"}