Skip to content

Commit

Permalink
[HUDI-5187] Remove the preCondition check of BucketAssigner assign st…
Browse files Browse the repository at this point in the history
…ate (#7170)
  • Loading branch information
danny0405 authored and nsivabalan committed Dec 15, 2022
1 parent 738f673 commit d9a4d21
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

import org.apache.flink.annotation.VisibleForTesting;
import org.apache.flink.runtime.state.KeyGroupRangeAssignment;
import org.apache.flink.util.Preconditions;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

Expand Down Expand Up @@ -309,9 +308,6 @@ public boolean canAssign() {
* Remembers to invoke {@link #canAssign()} first.
*/
public void assign() {
Preconditions.checkState(canAssign(),
"Can not assign insert to small file: assigned => "
+ this.assigned + " totalUnassigned => " + this.totalUnassigned);
this.assigned++;
}
}
Expand Down Expand Up @@ -339,9 +335,6 @@ public boolean canAssign() {
* Remembers to invoke {@link #canAssign()} first.
*/
public void assign() {
Preconditions.checkState(canAssign(),
"Can not assign insert to new file: assigned => "
+ this.assigned + " totalUnassigned => " + this.totalUnassigned);
this.assigned++;
}
}
Expand Down

0 comments on commit d9a4d21

Please sign in to comment.