{"record":{"id":"df72c1e0131b9a79","repo":"apache/hadoop","slug":"har-settimes-not-allowed","errorCode":null,"errorMessage":"Har: setTimes not allowed","messagePattern":"Har: setTimes not allowed","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/HarFileSystem.java","lineNumber":880,"sourceCode":"   */\n  @Override\n  public void completeLocalOutput(Path fsOutputFile, Path tmpLocalFile) \n    throws IOException {\n    throw new IOException(\"Har: completeLocalOutput not allowed\");\n  }\n  \n  /**\n   * not implemented.\n   */\n  @Override\n  public void setOwner(Path p, String username, String groupname)\n    throws IOException {\n    throw new IOException(\"Har: setowner not allowed\");\n  }\n\n  @Override\n  public void setTimes(Path p, long mtime, long atime) throws IOException {\n    throw new IOException(\"Har: setTimes not allowed\");\n  }\n\n  /**\n   * Not implemented.\n   */\n  @Override\n  public void setPermission(Path p, FsPermission permission)\n    throws IOException {\n    throw new IOException(\"Har: setPermission not allowed\");\n  }\n\n  /**\n   * Declare that this filesystem connector is always read only.\n   * {@inheritDoc}\n   */\n  @Override\n  public boolean hasPathCapability(final Path path, final String capability)\n      throws IOException {","sourceCodeStart":862,"sourceCodeEnd":898,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/HarFileSystem.java#L862-L898","documentation":"Error \"Har: setTimes not allowed\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/HarFileSystem.java:880 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Har archives are read-only; set modification times on the source files before archiving.","Extract the file, modify times, and re-archive if needed."],"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"}