{"record":{"id":"37d3cf7673817810","repo":"apache/hadoop","slug":"pathnotfound-37d3cf","errorCode":"PathNotFound","errorMessage":"Path not found","messagePattern":"Path not found","errorType":"http","errorClass":"AbfsRestOperationException","httpStatus":404,"severity":"error","filePath":"hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/BlobDeleteHandler.java","lineNumber":135,"sourceCode":"    tracingContext.setOperatedBlobCount(deleteCount.get() + 1);\n    /*\n     * If path is actually deleted.\n     */\n    boolean deleted;\n    try {\n      /*\n       * Delete the required path.\n       * Directory should be safely deleted as the path might be implicit.\n       */\n      deleted = recursive ? safeDelete(path) : deleteInternal(path);\n    } finally {\n      tracingContext.setOperatedBlobCount(0);\n    }\n    if (deleteCount.get() == 0) {\n      /*\n       * DeleteCount can be zero only if the path does not exist.\n       */\n      throw new AbfsRestOperationException(HTTP_NOT_FOUND,\n          PATH_NOT_FOUND.getErrorCode(), PATH_NOT_FOUND.getErrorMessage(),\n          new PathIOException(path.toString(), \"Path not found\"));\n    }\n\n    /*\n     * Ensure that parent directory of the deleted path is marked as a folder. This\n     * is required if the parent is an implicit directory (path with no marker blob),\n     * and the given path is the only child of the parent, the parent would become\n     * non-existing.\n     */\n    if (deleted) {\n      ensurePathParentExist();\n    }\n    return deleted;\n  }\n\n  /** Ensure that the parent path exists.\n   *","sourceCodeStart":117,"sourceCodeEnd":153,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/BlobDeleteHandler.java#L117-L153","documentation":"Error \"Path not found\" thrown in apache/hadoop.","triggerScenarios":"Delete is issued for a path that does not exist.","commonSituations":"See trigger scenarios.","solutions":["Verify the path exists before deleting; handle FileNotFoundException as idempotent if appropriate.","Check for typos and correct container/account in 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"}