Skip to content

Commit

Permalink
Set lower bound on desiredBundleSizeBytes to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
joar committed Oct 3, 2023
1 parent f06b1f8 commit 4cf0310
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ public List<BigtableSource> split(long desiredBundleSizeBytes, PipelineOptions o
long maximumNumberOfSplits = 4000;
long sizeEstimate = getEstimatedSizeBytes(options);
desiredBundleSizeBytes =
Math.max(sizeEstimate / maximumNumberOfSplits, desiredBundleSizeBytes);
Math.max(sizeEstimate / maximumNumberOfSplits, Math.max(1, desiredBundleSizeBytes));

// Delegate to testable helper.
List<BigtableSource> splits =
Expand Down

0 comments on commit 4cf0310

Please sign in to comment.