{"record":{"id":"023a989338b485b7","repo":"apache/hadoop","slug":"found-no-satisfactory-file-in","errorCode":null,"errorMessage":"Found no satisfactory file in {}","messagePattern":"Found no satisfactory file in (.+?)","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/FilePool.java","lineNumber":104,"sourceCode":"    updateLock.readLock().lock();\n    try {\n      return root.selectFiles(minSize, files);\n    } finally {\n      updateLock.readLock().unlock();\n    }\n  }\n\n  /**\n   * (Re)generate cache of input FileStatus objects.\n   */\n  public void refresh() throws IOException {\n    updateLock.writeLock().lock();\n    try {\n      root = new InnerDesc(fs, fs.getFileStatus(path),\n        new MinFileFilter(conf.getLong(GRIDMIX_MIN_FILE, 128 * 1024 * 1024),\n                          conf.getLong(GRIDMIX_MAX_TOTAL, 100L * (1L << 40))));\n      if (0 == root.getSize()) {\n        throw new IOException(\"Found no satisfactory file in \" + path);\n      }\n    } finally {\n      updateLock.writeLock().unlock();\n    }\n  }\n\n  /**\n   * Get a set of locations for the given file.\n   */\n  public BlockLocation[] locationsFor(FileStatus stat, long start, long len)\n      throws IOException {\n    // TODO cache\n    return fs.getFileBlockLocations(stat, start, len);\n  }\n\n  static abstract class Node {\n\n    protected final static Random rand = new Random();","sourceCodeStart":86,"sourceCodeEnd":122,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/FilePool.java#L86-L122","documentation":"Error \"Found no satisfactory file in {}\" thrown in apache/hadoop.","triggerScenarios":"Gridmix FilePool cannot find an input file of the requested size in the given input directory, so a task's input split cannot be emulated.","commonSituations":"See trigger scenarios.","solutions":["Add files of the required size to the Gridmix input directory or relax the input size requirements in the trace."],"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"}