Skip to content

Commit e7ba045

Browse files
jackdingilianigorbernstein2gcf-owl-bot[bot]
authored
fix: Make change stream unknown mod error more actionable (#1938)
* fix: Make change stream unknown mod error more actionable * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Igor Bernstein <[email protected]> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent ea84c56 commit e7ba045

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/changestream/ChangeStreamStateMachine.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,8 @@ State handleDataChange(ReadChangeStreamResponse.DataChange dataChange) {
486486
Value.fromProto(mod.getAddToCell().getTimestamp()),
487487
Value.fromProto(mod.getAddToCell().getInput()));
488488
}
489-
throw new IllegalStateException("AWAITING_NEW_DATA_CHANGE: Unexpected mod type");
489+
throw new IllegalStateException(
490+
"Received unknown mod type. You may need to upgrade your Bigtable client.");
490491
}
491492

492493
// After adding all mods from this DataChange to the state machine, finish the current

0 commit comments

Comments
 (0)