{"record":{"id":"b986f50e645ebab5","repo":"prestodb/presto","slug":"invalid-cachetype-cacheconfig-getcachetype","errorCode":null,"errorMessage":"Invalid CacheType: + cacheConfig.getCacheType()","messagePattern":"Invalid CacheType: \\+ cacheConfig\\.getCacheType\\(\\)","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"presto-cache/src/main/java/com/facebook/presto/cache/CacheFactory.java","lineNumber":57,"sourceCode":"        }\n\n        checkState(cacheConfig != null && cacheConfig.getCacheType() != null);\n\n        switch (cacheConfig.getCacheType()) {\n            case FILE_MERGE:\n                return new FileMergeCachingFileSystem(\n                        factoryUri,\n                        factoryConfig,\n                        cacheManager,\n                        fileSystem,\n                        cacheConfig.isValidationEnabled());\n            case ALLUXIO:\n                ExtendedFileSystem cachingFileSystem = new AlluxioCachingFileSystem(fileSystem,\n                        factoryUri, cacheConfig.isValidationEnabled(), cacheConfig.isLastModifiedTimeCheckEnabled());\n                cachingFileSystem.initialize(factoryUri, factoryConfig);\n                return cachingFileSystem;\n            default:\n                throw new IllegalArgumentException(\"Invalid CacheType: \" + cacheConfig.getCacheType());\n        }\n    }\n}\n","sourceCodeStart":39,"sourceCodeEnd":61,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-cache/src/main/java/com/facebook/presto/cache/CacheFactory.java#L39-L61","documentation":"Fall-through of the switch in createCachingFileSystem over cacheConfig.getCacheType(): the configured cache type is not one of the supported enum values (FILE_MERGE, ALLUXIO, etc.), indicating a misconfigured cache.type property.","triggerScenarios":"Thrown at presto-cache/src/main/java/com/facebook/presto/cache/CacheFactory.java:57 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the cache type to a supported value (FILE_MERGE or ALLUXIO)","Check for typos in the hive.cache.type configuration property"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"55bb57d202de3b926896fa966c2c4a44c779634e","analyzedAt":"2026-09-04T12:50:26.162Z","contentChangedAt":"2026-09-04T12:50:26.162Z","schemaVersion":2},"datasetVersion":"2026-09-11T21:17:09.523Z"}