Skip to content

fix: do not split near empty ranges#4604

Merged
mutianf merged 1 commit intogoogleapis:mainfrom
mutianf:split
Apr 30, 2026
Merged

fix: do not split near empty ranges#4604
mutianf merged 1 commit intogoogleapis:mainfrom
mutianf:split

Conversation

@mutianf
Copy link
Copy Markdown
Contributor

@mutianf mutianf commented Apr 30, 2026

Catch the exception

Completed work item 4231779587829057376 UNSUCCESSFULLY: UNKNOWN: java.lang.IllegalStateException: Refusing to interpolate for near-empty ByteKeyRange{startKey=[6c617267652d6b6579], endKey=[6c617267652d6b657900]} where start and end keys differ only by trailing zero bytes.
	at org.apache.beam.vendor.guava.v32_1_2_jre.com.google.common.base.Preconditions.checkState(Preconditions.java:601)
	at org.apache.beam.sdk.io.range.ByteKeyRange.interpolateKey(ByteKeyRange.java:238)
	at com.google.cloud.bigtable.beam.CloudBigtableIO$Reader.splitAtFraction(CloudBigtableIO.java:838)

Change-Id: I86cb01390a25a0493620a39a5a1e65dd6db6f5c9
@mutianf mutianf requested a review from a team as a code owner April 30, 2026 16:48
@product-auto-label product-auto-label Bot added size: xs Pull request size is extra small. api: bigtable Issues related to the googleapis/java-bigtable-hbase API. labels Apr 30, 2026
@mutianf mutianf merged commit c37ca95 into googleapis:main Apr 30, 2026
13 of 14 checks passed
@mutianf mutianf deleted the split branch April 30, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the googleapis/java-bigtable-hbase API. size: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants