{"record":{"id":"d01cd07b0ef1e838","repo":"apache/seatunnel","slug":"is-less-than-set-to-default-value","errorCode":null,"errorMessage":"{} is less than {}, set to default value {}.","messagePattern":"(.+?) is less than (.+?), set to default value (.+?)\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/rest/RestService.java","lineNumber":425,"sourceCode":"                logger.error(errMsg);\n                throw new DorisConnectorException(\n                        DorisConnectorErrorCode.REST_SERVICE_FAILED, errMsg);\n            }\n\n            logger.debug(\"Choice Doris BE '{}' for tablet '{}'.\", target, tabletId);\n            be2Tablets.get(target).add(tabletId);\n        }\n        return be2Tablets;\n    }\n\n    @VisibleForTesting\n    static int tabletCountLimitForOnePartition(DorisSourceTable dorisSourceTable, Logger logger) {\n        int tabletsSize = DorisSourceOptions.DORIS_TABLET_SIZE_DEFAULT;\n        if (dorisSourceTable.getTabletSize() != null) {\n            tabletsSize = dorisSourceTable.getTabletSize();\n        }\n        if (tabletsSize < DorisSourceOptions.DORIS_TABLET_SIZE_MIN) {\n            logger.warn(\n                    \"{} is less than {}, set to default value {}.\",\n                    DorisSourceOptions.DORIS_TABLET_SIZE,\n                    DorisSourceOptions.DORIS_TABLET_SIZE_MIN,\n                    DorisSourceOptions.DORIS_TABLET_SIZE_MIN);\n            tabletsSize = DorisSourceOptions.DORIS_TABLET_SIZE_MIN;\n        }\n        logger.debug(\"Tablet size is set to {}.\", tabletsSize);\n        return tabletsSize;\n    }\n\n    @VisibleForTesting\n    static List<PartitionDefinition> tabletsMapToPartition(\n            DorisSourceTable dorisSourceTable,\n            Map<String, List<Long>> be2Tablets,\n            String opaquedQueryPlan,\n            String database,\n            String table,\n            Logger logger)","sourceCodeStart":407,"sourceCodeEnd":443,"githubUrl":"https://github.com/apache/seatunnel/blob/cf67b549a7a6c35fa0beb12d83c62892427ea919/seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/rest/RestService.java#L407-L443","documentation":"tabletCountLimitForOnePartition validates the user-provided doris.tablet-size option. If the configured value is below DORIS_TABLET_SIZE_MIN, it logs this warning and resets the value to the minimum, so downstream tablet splitting uses at least the minimum allowed tablets per partition query.","triggerScenarios":"tabletsSize -> tabletCountLimitForOnePartition is invoked during split enumeration and DorisSourceOptions.DORIS_TABLET_SIZE was set to a value < DORIS_TABLET_SIZE_MIN (e.g. 0, 1, or a negative number).","commonSituations":"Users setting tablet-size to 1 or 0 hoping for maximum parallelism; config parsed from a property with a wrong unit; copy-pasted configs from older connector versions with different bounds.","solutions":["Set doris.tablet-size to a value >= DORIS_TABLET_SIZE_MIN in the source config","Remove the option entirely to use the default value","If you want more parallelism, increase tablet count in Doris (bucket_num) instead of lowering tablet-size below the minimum"],"exampleFix":"// before\ntablet-size = 0\n// after\ntablet-size = 5  // >= configured minimum","handlingStrategy":"validation","validationCode":"int tabletSize = config.get(\"tablet-size\");\nif (tabletSize < DorisSourceOptions.DORIS_TABLET_SIZE_MIN) {\n    tabletSize = DorisSourceOptions.DORIS_TABLET_SIZE_MIN; // or drop the option\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Only set doris.tablet-size with values >= the connector minimum","Omit the option to use the default instead of guessing bounds","Increase Doris bucket_num for more parallelism rather than lowering tablet-size"],"tags":["doris","config","tablet","validation"],"backgroundTag":"invalid-config-value","analyzedSha":"cf67b549a7a6c35fa0beb12d83c62892427ea919","analyzedAt":"2026-09-10T21:44:55.265Z","contentChangedAt":"2026-09-10T21:44:55.265Z","schemaVersion":2},"datasetVersion":"2026-09-14T11:17:12.474Z"}