{"record":{"id":"171af0006ec65592","repo":"apache/seatunnel","slug":"the-file-does-not-support-this-archive-compress-ty","errorCode":null,"errorMessage":"The file does not support this archive compress type: {}","messagePattern":"The file does not support this archive compress type: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/source/reader/AbstractReadStrategy.java","lineNumber":542,"sourceCode":"                    }\n                    readProcess(\n                            split,\n                            output,\n                            copyInputStream(gzipIn, effectiveMaxBytes),\n                            partitionsMap,\n                            fileName);\n                }\n                break;\n            case NONE:\n                readProcess(\n                        split,\n                        output,\n                        hadoopFileSystemProxy.getInputStream(path),\n                        partitionsMap,\n                        path);\n                break;\n            default:\n                log.warn(\n                        \"The file does not support this archive compress type: {}\",\n                        archiveCompressFormat);\n                readProcess(\n                        split,\n                        output,\n                        hadoopFileSystemProxy.getInputStream(path),\n                        partitionsMap,\n                        path);\n        }\n    }\n\n    /**\n     * Rejects an archive entry whose declared size exceeds the configured POI limit.\n     *\n     * @param entryName archive entry name used in the error message\n     * @param entrySize declared uncompressed entry size in bytes\n     * @param maxBytes maximum allowed size in bytes; non-positive values disable the limit\n     */","sourceCodeStart":524,"sourceCodeEnd":560,"githubUrl":"https://github.com/apache/seatunnel/blob/cf67b549a7a6c35fa0beb12d83c62892427ea919/seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/source/reader/AbstractReadStrategy.java#L524-L560","documentation":"This warning is logged by AbstractReadStrategy.resolveArchiveCompressedInputStream when a source file's archive compress format has no case in the switch. The reader warns and proceeds to read the file as a plain (uncompressed) InputStream, so an actually compressed file will likely fail to parse downstream or yield corrupted records.","triggerScenarios":"Source configured with an archive_compress_format (or a file with a detected archive type) not handled by the switch — e.g. formats other than ZIP/TAR/GZIP/BZIP2/LZ4 — when resolving the input stream for a split.","commonSituations":"Users set archive_compress_format to a codec the reader doesn't implement; files compressed with 7z/XZ while config claims a supported type; version drift adding new CompressFormat archive values without reader support.","solutions":["Set archive_compress_format to a supported value (zip, tar, gzip, bzip2, lz4) or remove it if files are not archives","Re-compress source files with a supported archive format before ingestion","Check the file source docs for the list of supported archive compress formats","If a codec should be supported, extend resolveArchiveCompressedInputStream in AbstractReadStrategy"],"exampleFix":"// before\nsource = {\n  archive_compress_format = \"7z\"\n}\n// after\nsource = {\n  archive_compress_format = \"zip\"\n}","handlingStrategy":"validation","validationCode":"// verify archive_compress_format is supported before submitting the source\nSet<String> supported = Set.of(\"zip\", \"tar\", \"gzip\", \"bzip2\", \"lzo\", \"lz4\");\nString fmt = config.get(\"archive_compress_format\");\nif (fmt != null && !supported.contains(fmt.toLowerCase())) {\n    throw new IllegalArgumentException(\"archive_compress_format=\" + fmt + \" unsupported; use \" + supported);\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Only set archive_compress_format for values listed in the file source docs","Uncompress files to a supported format upstream if unsupported codecs are required","Inspect a sample file locally (file/magic bytes) to confirm its archive type","When adding archive codecs, update AbstractReadStrategy alongside the enum"],"tags":["file-source","compression","archive","hadoop"],"backgroundTag":"unsupported-config-value","analyzedSha":"cf67b549a7a6c35fa0beb12d83c62892427ea919","analyzedAt":"2026-09-10T21:44:55.265Z","contentChangedAt":"2026-09-10T21:44:55.265Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}