Skip to content

ARTEMIS-5925 Support Star Mirror Configuration on Lock Coordinator#6268

Open
clebertsuconic wants to merge 1 commit intoapache:mainfrom
clebertsuconic:ARTEMIS-5925
Open

ARTEMIS-5925 Support Star Mirror Configuration on Lock Coordinator#6268
clebertsuconic wants to merge 1 commit intoapache:mainfrom
clebertsuconic:ARTEMIS-5925

Conversation

@clebertsuconic
Copy link
Contributor

Disclaimer: The test StarMirrorSingleAcceptorRunningTest was written with the help from Claude agent. I basically asked Claude to copy it from DualMirrorSingleAcceptorRunning with the additional configuration options.

@clebertsuconic clebertsuconic marked this pull request as draft March 2, 2026 15:04
@clebertsuconic clebertsuconic requested a review from tabish121 March 2, 2026 15:04
@clebertsuconic
Copy link
Contributor Author

clebertsuconic commented Mar 2, 2026

@tabish121 I need your help defining what pause / resume would means on Bridge / Federations.

In Mirror should mean everything is connected but we are not capturing events.. To allow previous events to flow even if the mirror is paused (say right after a failure).

@clebertsuconic
Copy link
Contributor Author

all I need to do before setting ready to review is to add tests to parse the XML... and change documentation.. I will finish it shortly.

I know there's some checkstyle issues, which I will also fix.

@clebertsuconic clebertsuconic force-pushed the ARTEMIS-5925 branch 2 times, most recently from cdaa39c to 4993631 Compare March 2, 2026 22:59
Disclaimer: The test StarMirrorSingleAcceptorRunningTest was written with the help
from Claude agent. I basically asked Claude to copy it from
DualMirrorSingleAcceptorRunning with the additional configuration
options.
@clebertsuconic clebertsuconic marked this pull request as ready for review March 2, 2026 23:15
if (lockCoordinator != null) {
this.active = false;
// this needs to be started before the acceptor, hence a lower priority on start
lockCoordinator.onLockAcquired(this::resume, 5);
Copy link
Contributor

@tabish121 tabish121 Mar 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These priority values seem arbitrary and very difficult to correlate amongst any future things that also need some specific priority settings. I'd recommend at least creating some defined group values like PRIORITY_GROUP_A etc that get run in order, where you could even use the same priority for both entries and reverse sort for the released state. Having to search through every usage to try and figure out what priority to set is not particularly maintainable over time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants