{"record":{"id":"f19f753aa3f9c992","repo":"apache/seatunnel","slug":"option-poll-interval-ms-must-be-greater-than-zer","errorCode":null,"errorMessage":"Option 'poll_interval_ms' must be greater than zero","messagePattern":"Option 'poll_interval_ms' must be greater than zero","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"seatunnel-connectors-v2/connector-azure-queue-storage/src/main/java/org/apache/seatunnel/connectors/seatunnel/azure/queue/config/AzureQueueSourceConfig.java","lineNumber":96,"sourceCode":"        sourceConfig.validate();\n        return sourceConfig;\n    }\n\n    private void validate() {\n        AzureQueueConfigValidator.validateClient(this);\n        if (format == MessageFormat.TEXT && fieldDelimiter.isEmpty()) {\n            throw new IllegalArgumentException(\"Option 'field_delimiter' cannot be empty\");\n        }\n        if (batchSize < 1 || batchSize > MAX_BATCH_SIZE) {\n            throw new IllegalArgumentException(\"Option 'batch_size' must be between 1 and 32\");\n        }\n        if (visibilityTimeoutSeconds < 1\n                || visibilityTimeoutSeconds > MAX_VISIBILITY_TIMEOUT_SECONDS) {\n            throw new IllegalArgumentException(\n                    \"Option 'visibility_timeout_seconds' must be between 1 and 604800\");\n        }\n        if (pollIntervalMillis <= 0) {\n            throw new IllegalArgumentException(\n                    \"Option 'poll_interval_ms' must be greater than zero\");\n        }\n        if (maxInFlightMessages < batchSize) {\n            throw new IllegalArgumentException(\n                    \"Option 'max_in_flight_messages' must be greater than or equal to batch_size\");\n        }\n        if (operationTimeoutMillis <= 0) {\n            throw new IllegalArgumentException(\n                    \"Option 'operation_timeout_ms' must be greater than zero\");\n        }\n        long visibilityTimeoutMillis = visibilityTimeoutSeconds * 1_000L;\n        if (operationTimeoutMillis >= visibilityTimeoutMillis / 2) {\n            throw new IllegalArgumentException(\n                    \"Option 'operation_timeout_ms' must be less than half of visibility_timeout_seconds\");\n        }\n    }\n}\n","sourceCodeStart":78,"sourceCodeEnd":114,"githubUrl":"https://github.com/apache/seatunnel/blob/cf67b549a7a6c35fa0beb12d83c62892427ea919/seatunnel-connectors-v2/connector-azure-queue-storage/src/main/java/org/apache/seatunnel/connectors/seatunnel/azure/queue/config/AzureQueueSourceConfig.java#L78-L114","documentation":"Config validation in AzureQueueSourceConfig.validate: poll_interval_ms controls how often the source polls Azure Queue Storage; a zero or negative interval would busy-spin or be rejected by the polling scheduler, so it is rejected at source initialization.","triggerScenarios":"Building AzureQueueSourceConfig via from() with poll_interval_ms <= 0, e.g. poll_interval_ms = 0 to 'poll as fast as possible'.","commonSituations":"User assumed 0 means no delay / continuous polling; milliseconds-vs-seconds confusion; unset template placeholder resolving to 0.","solutions":["Set poll_interval_ms to a positive value (e.g. 1000)","Remove the option to use the plugin default","If lower latency is needed, reduce the value but keep it > 0 rather than eliminating the interval"],"exampleFix":"// before\npoll_interval_ms = 0\n// after\npoll_interval_ms = 1000","handlingStrategy":"validation","validationCode":"java\nif (pollIntervalMs <= 0) {\n    pollIntervalMs = 1000;\n}","typeGuard":null,"tryCatchPattern":"java\ntry {\n    AzureQueueSourceConfig.from(config);\n} catch (IllegalArgumentException e) {\n    if (e.getMessage().contains(\"poll_interval_ms\")) {\n        log.error(\"poll_interval_ms must be greater than zero\");\n    } else { throw e; }\n}","preventionTips":["Use a small positive value (e.g. 100ms) rather than 0 for fast polling","Watch for unresolved template placeholders defaulting to 0","Add a config validation step that checks all *_ms options are > 0"],"tags":["config","validation","azure","source"],"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-14T05:17:10.506Z"}