austince commented on a change in pull request #16023: URL: https://github.com/apache/flink/pull/16023#discussion_r644107434
########## File path: flink-connectors/flink-connector-rabbitmq/src/main/java/org/apache/flink/streaming/connectors/rabbitmq/common/RMQConnectionConfig.java ########## @@ -90,12 +94,16 @@ private RMQConnectionConfig( Integer requestedChannelMax, Integer requestedFrameMax, Integer requestedHeartbeat, - Integer prefetchCount) { + Integer prefetchCount, + Long deliveryTimeout) { Preconditions.checkNotNull(host, "host can not be null"); Preconditions.checkNotNull(port, "port can not be null"); Preconditions.checkNotNull(virtualHost, "virtualHost can not be null"); Preconditions.checkNotNull(username, "username can not be null"); Preconditions.checkNotNull(password, "password can not be null"); + Preconditions.checkArgument( + deliveryTimeout == null || deliveryTimeout >= 0, + "deliveryTimeout can not be negative"); Review comment: ~Can we split this into two checks or update the error message to account for null?~ oops, read this wrong -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org