{"record":{"id":"44a8503d7bc6e7c2","repo":"apache/hadoop","slug":"unsupported-block-buffer-name-44a850","errorCode":null,"errorMessage":"Unsupported block buffer \"{name}\"","messagePattern":"Unsupported block buffer \"(.+?)\"","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/OSSDataBlocks.java","lineNumber":100,"sourceCode":"   * @throws IllegalArgumentException if the name is unknown.\n   */\n  static BlockFactory createFactory(AliyunOSSFileSystem owner,\n      String name) {\n    switch (name) {\n    case Constants.FAST_UPLOAD_BUFFER_ARRAY:\n      return new ArrayBlockFactory(owner);\n    case Constants.FAST_UPLOAD_BUFFER_DISK:\n      return new DiskBlockFactory(owner);\n    case Constants.FAST_UPLOAD_BYTEBUFFER:\n      return new ByteBufferBlockFactory(owner);\n    case Constants.FAST_UPLOAD_BUFFER_ARRAY_DISK:\n      return new MemoryAndDiskBlockFactory(\n          owner, new ArrayBlockFactory(owner));\n    case Constants.FAST_UPLOAD_BYTEBUFFER_DISK:\n      return new MemoryAndDiskBlockFactory(\n          owner, new ByteBufferBlockFactory(owner));\n    default:\n      throw new IllegalArgumentException(\"Unsupported block buffer\" +\n          \" \\\"\" + name + '\"');\n    }\n  }\n\n  /**\n   * The output information for an upload.\n   * It can be one of a file or an input stream.\n   * When closed, any stream is closed. Any source file is untouched.\n   */\n  static final class BlockUploadData implements Closeable {\n    private final File file;\n    private final InputStream uploadStream;\n\n    /**\n     * File constructor; input stream will be null.\n     * @param file file to upload\n     */\n    BlockUploadData(File file) {","sourceCodeStart":82,"sourceCodeEnd":118,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/OSSDataBlocks.java#L82-L118","documentation":"Error \"Unsupported block buffer \"{name}\"\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/OSSDataBlocks.java:100 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set fs.oss.data.blocks.buffer to a supported value (disk, array, or the configured bytebuffer implementation)."],"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"}