{"record":{"id":"82a87bd28c3f2ca6","repo":"apache/seatunnel","slug":"common-26","errorCode":"COMMON-26","errorMessage":"Not support this redis mode","messagePattern":"Not support this redis mode","errorType":"error_code","errorClass":"RedisConnectorException","httpStatus":null,"severity":"error","filePath":"seatunnel-connectors-v2/connector-redis/src/main/java/org/apache/seatunnel/connectors/seatunnel/redis/config/RedisParameters.java","lineNumber":221,"sourceCode":"                ConnectionPoolConfig connectionPoolConfig = new ConnectionPoolConfig();\n                JedisCluster jedisCluster;\n                if (StringUtils.isNotBlank(auth)) {\n                    jedisCluster =\n                            new JedisCluster(\n                                    nodes,\n                                    JedisCluster.DEFAULT_TIMEOUT,\n                                    JedisCluster.DEFAULT_TIMEOUT,\n                                    JedisCluster.DEFAULT_MAX_ATTEMPTS,\n                                    auth,\n                                    connectionPoolConfig);\n                } else {\n                    jedisCluster = new JedisCluster(nodes);\n                }\n                JedisWrapper jedisWrapper = new JedisWrapper(jedisCluster);\n                return jedisWrapper;\n            default:\n                // do nothing\n                throw new RedisConnectorException(\n                        CommonErrorCode.OPERATION_NOT_SUPPORTED, \"Not support this redis mode\");\n        }\n    }\n}\n","sourceCodeStart":203,"sourceCodeEnd":226,"githubUrl":"https://github.com/apache/seatunnel/blob/cf67b549a7a6c35fa0beb12d83c62892427ea919/seatunnel-connectors-v2/connector-redis/src/main/java/org/apache/seatunnel/connectors/seatunnel/redis/config/RedisParameters.java#L203-L226","documentation":"buildJedis() switches on the configured Redis run mode (single, cluster, sentinel, etc.); when the mode value does not match any supported case it falls to default and throws RedisConnectorException with CommonErrorCode.OPERATION_NOT_SUPPORTED (COMMON-26). The connector only knows how to construct a client for the modes it implements.","triggerScenarios":"buildJedis() (called by jedis()) encounters a RedisBaseOptions.MODE value outside its switch cases — i.e. a mode string other than single/cluster/sentinel, often due to a typo or an uppercase/misspelled value like 'Cluster', 'master-replica', or 'standalone'.","commonSituations":"Users writing mode = \"sentinel\" with different capitalization, copying mode names from another connector with richer mode support, or upgrading docs suggesting an unimplemented mode like 'replication'.","solutions":["Set mode to one of the supported values exactly (single, cluster, sentinel — lowercase).","Check the connector docs / RedisBaseOptions for the exact accepted mode strings.","If you need an unsupported mode, use the closest supported one (e.g. single for master-replica with a proxy) or implement/extend the switch."],"exampleFix":"// before\nmode = \"Standalone\"\n// after\nmode = \"single\"","handlingStrategy":"validation","validationCode":"Set<String> supported = Set.of(\"single\", \"cluster\", \"sentinel\");\nif (!supported.contains(mode.trim().toLowerCase())) throw new IllegalArgumentException(\"unsupported mode: \" + mode);","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Use lowercase supported mode values exactly as documented","Check RedisBaseOptions for accepted modes","Don't copy mode names from other connectors"],"tags":["redis","mode","unsupported-value"],"backgroundTag":"invalid-enum-value","analyzedSha":"cf67b549a7a6c35fa0beb12d83c62892427ea919","analyzedAt":"2026-09-10T21:44:55.265Z","contentChangedAt":"2026-09-10T21:44:55.265Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}