Skip to content

Commit

Permalink
ARTEMIS-4247 Fixing BrokerInSyncTest::testExpiryNoReaper
Browse files Browse the repository at this point in the history
Once the context is set to disable mirror, it should stay that way even if reset is called.
  • Loading branch information
clebertsuconic committed Apr 26, 2023
1 parent 74fa4ca commit c2ad54f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,12 @@ public RoutingContextImpl clear() {

this.internalOnly = null;

mirrorOption = MirrorOption.enabled;
// once we set to disabled, we keep it always disabled.
// This is because the routing object used to route commands will disable this
// and it should stay that way no matter what
if (mirrorOption != MirrorOption.disabled) {
mirrorOption = MirrorOption.enabled;
}

return this;
}
Expand Down

0 comments on commit c2ad54f

Please sign in to comment.