Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
import java.util.Random;
import java.util.concurrent.atomic.AtomicInteger;

/** The bucket assigner use round-rabin strategy. */
/** The bucket assigner use round-robin strategy. */
@Internal
public class RoundRabinBucketAssigner implements BucketAssigner {
public class RoundRobinBucketAssigner implements BucketAssigner {
private final PhysicalTablePath physicalTablePath;
private final AtomicInteger counter = new AtomicInteger(new Random().nextInt());

public RoundRabinBucketAssigner(PhysicalTablePath physicalTablePath) {
public RoundRobinBucketAssigner(PhysicalTablePath physicalTablePath) {
this.physicalTablePath = physicalTablePath;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ private BucketAssigner createBucketAssigner(
ConfigOptions.NoKeyAssigner noKeyAssigner =
conf.get(ConfigOptions.CLIENT_WRITER_BUCKET_NO_KEY_ASSIGNER);
if (noKeyAssigner == ROUND_ROBIN) {
return new RoundRabinBucketAssigner(physicalTablePath);
return new RoundRobinBucketAssigner(physicalTablePath);
} else if (noKeyAssigner == STICKY) {
return new StickyBucketAssigner(physicalTablePath);
} else {
Expand Down