davidradl commented on code in PR #27446:
URL: https://github.com/apache/flink/pull/27446#discussion_r2712402831
##########
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/api/writer/RecordWriterBuilder.java:
##########
@@ -44,11 +51,26 @@ public RecordWriterBuilder<T> setTaskName(String taskName) {
return this;
}
+ public RecordWriterBuilder<T> setEnabledAdaptivePartitioner(
+ boolean enabledAdaptivePartitioner) {
+ this.enabledAdaptivePartitioner = enabledAdaptivePartitioner;
+ return this;
+ }
+
+ public RecordWriterBuilder<T> setMaxTraverseSize(int maxTraverseSize) {
+ Preconditions.checkState(
+ maxTraverseSize > 1, "The maxTraverseSize must be greater than
1.");
Review Comment:
is there a better place to check this, in configuration validation - rather
than the setter?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]