{"record":{"id":"bba3f7f467b23c70","repo":"apache/hadoop","slug":"dictionary-support-is-not-enabled-bba3f7","errorCode":null,"errorMessage":"Dictionary support is not enabled","messagePattern":"Dictionary support is not enabled","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/zstd/ZStandardDecompressor.java","lineNumber":112,"sourceCode":"\n    compressedDirectBuf.clear();\n    compressedDirectBuf.put(\n        userBuf, userBufOff, bytesInCompressedBuffer);\n\n    // Set the finished to false when compressedDirectBuf still\n    // contains some bytes.\n    if (compressedDirectBuf.position() > 0 && finished) {\n      finished = false;\n    }\n\n    userBufOff += bytesInCompressedBuffer;\n    userBufferBytesToConsume -= bytesInCompressedBuffer;\n  }\n\n  // dictionary is not supported\n  @Override\n  public void setDictionary(byte[] b, int off, int len) {\n    throw new UnsupportedOperationException(\n        \"Dictionary support is not enabled\");\n  }\n\n  @Override\n  public boolean needsInput() {\n    // Consume remaining compressed data?\n    if (uncompressedDirectBuf.remaining() > 0) {\n      return false;\n    }\n\n    // Check if we have consumed all input\n    if (bytesInCompressedBuffer - compressedDirectBufOff <= 0) {\n      // Check if we have consumed all user-input\n      if (userBufferBytesToConsume <= 0) {\n        return true;\n      } else {\n        setInputFromSavedData();\n      }","sourceCodeStart":94,"sourceCodeEnd":130,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/zstd/ZStandardDecompressor.java#L94-L130","documentation":"Error \"Dictionary support is not enabled\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/zstd/ZStandardDecompressor.java:112 when the library encounters an invalid state.","commonSituations":"Occurs when setDictionary is called on a ZStandardDecompressor built without dictionary support. Enable dictionary support at construction time before calling setDictionary.","solutions":["Build Hadoop with zstd dictionary support enabled, or disable dictionary use in the decompressor configuration."],"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"}