Skip to content

Commit ff0e8da

Browse files
committed
[HUDI-5187] Remove the preCondition check of BucketAssigner assign state
1 parent f19f6e7 commit ff0e8da

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/partitioner/BucketAssigner.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
import org.apache.flink.annotation.VisibleForTesting;
3131
import org.apache.flink.runtime.state.KeyGroupRangeAssignment;
32-
import org.apache.flink.util.Preconditions;
3332
import org.apache.log4j.LogManager;
3433
import org.apache.log4j.Logger;
3534

@@ -309,9 +308,6 @@ public boolean canAssign() {
309308
* Remembers to invoke {@link #canAssign()} first.
310309
*/
311310
public void assign() {
312-
Preconditions.checkState(canAssign(),
313-
"Can not assign insert to small file: assigned => "
314-
+ this.assigned + " totalUnassigned => " + this.totalUnassigned);
315311
this.assigned++;
316312
}
317313
}
@@ -339,9 +335,6 @@ public boolean canAssign() {
339335
* Remembers to invoke {@link #canAssign()} first.
340336
*/
341337
public void assign() {
342-
Preconditions.checkState(canAssign(),
343-
"Can not assign insert to new file: assigned => "
344-
+ this.assigned + " totalUnassigned => " + this.totalUnassigned);
345338
this.assigned++;
346339
}
347340
}

0 commit comments

Comments
 (0)