[HUDI-2068] Skip the assign state for SmallFileAssign when the state can not assign initially (#3148)
This commit is contained in:
@@ -228,7 +228,7 @@ public class BucketAssigner implements AutoCloseable {
|
||||
return false;
|
||||
}
|
||||
SmallFileAssignState state = states[assignIdx];
|
||||
if (!state.canAssign()) {
|
||||
while (!state.canAssign()) {
|
||||
assignIdx += 1;
|
||||
if (assignIdx >= states.length) {
|
||||
noSpace = true;
|
||||
@@ -236,7 +236,6 @@ public class BucketAssigner implements AutoCloseable {
|
||||
}
|
||||
// move to next slot if possible
|
||||
state = states[assignIdx];
|
||||
assert state.canAssign();
|
||||
}
|
||||
state.assign();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user