1
0

[HUDI-2068] Skip the assign state for SmallFileAssign when the state can not assign initially (#3148)

This commit is contained in:
Danny Chan
2021-06-25 08:57:56 +08:00
committed by GitHub
parent 218f2a6df8
commit e64fe55054

View File

@@ -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;