Skip to content

Commit

Permalink
fix: Make change stream unknown mod error more actionable (#1938)
Browse files Browse the repository at this point in the history
* 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 <igorbernstein@google.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Jun 10, 2024
1 parent ea84c56 commit e7ba045
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,8 @@ State handleDataChange(ReadChangeStreamResponse.DataChange dataChange) {
Value.fromProto(mod.getAddToCell().getTimestamp()),
Value.fromProto(mod.getAddToCell().getInput()));
}
throw new IllegalStateException("AWAITING_NEW_DATA_CHANGE: Unexpected mod type");
throw new IllegalStateException(
"Received unknown mod type. You may need to upgrade your Bigtable client.");
}

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

0 comments on commit e7ba045

Please sign in to comment.