Skip to content

Commit

Permalink
Don't use ephemeral code for journal event participants
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <[email protected]>
  • Loading branch information
mattlord committed Jan 31, 2025
1 parent d878c2d commit d98f471
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/vt/vtgate/vstream_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ func (vs *vstream) getJournalEvent(ctx context.Context, sgtid *binlogdatapb.Shar
mode = matchAll
je.participants[inner] = false
case matchNone:
return nil, vterrors.Errorf(vtrpcpb.Code_FAILED_PRECONDITION, "not all journaling participants are in the stream: journal: %v, stream: %v",
return nil, vterrors.Errorf(vtrpcpb.Code_ABORTED, "not all journaling participants are in the stream: journal: %v, stream: %v",
journal.Participants, vs.vgtid.ShardGtids)
}
continue nextParticipant
Expand All @@ -966,7 +966,7 @@ func (vs *vstream) getJournalEvent(ctx context.Context, sgtid *binlogdatapb.Shar
case undecided, matchNone:
mode = matchNone
case matchAll:
return nil, vterrors.Errorf(vtrpcpb.Code_FAILED_PRECONDITION, "not all journaling participants are in the stream: journal: %v, stream: %v",
return nil, vterrors.Errorf(vtrpcpb.Code_ABORTED, "not all journaling participants are in the stream: journal: %v, stream: %v",
journal.Participants, vs.vgtid.ShardGtids)
}
}
Expand Down

0 comments on commit d98f471

Please sign in to comment.