Skip to content

Commit

Permalink
MINOR: Fix SubscriptionInfoData name in exception message (apache#12076)
Browse files Browse the repository at this point in the history
Reviewers: Andrew Choi <[email protected]>, Luke Chen <[email protected]>
  • Loading branch information
dengziming authored Oct 31, 2022
1 parent f7304db commit 56d588d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ public class SubscriptionInfo {

static {
// Just statically check to make sure that the generated code always stays in sync with the overall protocol
final int subscriptionInfoLatestVersion = SubscriptionInfoData.SCHEMAS.length - 1;
final int subscriptionInfoLatestVersion = SubscriptionInfoData.HIGHEST_SUPPORTED_VERSION;
if (subscriptionInfoLatestVersion != LATEST_SUPPORTED_VERSION) {
throw new IllegalArgumentException(
"streams/src/main/resources/common/message/SubscriptionInfo.json needs to be updated to match the " +
"streams/src/main/resources/common/message/SubscriptionInfoData.json needs to be updated to match the " +
"latest assignment protocol version. SubscriptionInfo only supports up to ["
+ subscriptionInfoLatestVersion + "] but needs to support up to [" + LATEST_SUPPORTED_VERSION + "].");
}
Expand Down

0 comments on commit 56d588d

Please sign in to comment.