Skip to content

Conversation

@acogoluegnes
Copy link
Contributor

No description provided.

Conflicts:
	src/test/java/com/rabbitmq/stream/impl/ConsumersCoordinatorTest.java
@acogoluegnes acogoluegnes marked this pull request as draft September 20, 2023 14:33
To force the use of a replica for consumers. The library
tries 5 times before falling back to the stream leader when
the flag is set to true (default is false, to favor faster
recovery).

The stream leader is started first and a replica can start
a few seconds later, so with bad timing a consumer can see
only the leader when it recovers. Setting the flag to true
will force the library to retry a few times to use a replica
if one becomes available.

The performance tool has also the corresponding flag now:
--force-replica-for-consumers.

This commit also adds the following options to the performance tool:
--hearbeat, --connection-recovery-interval,
--topology-recovery-interval.

Fixes #426, #427
@acogoluegnes acogoluegnes marked this pull request as ready for review September 22, 2023 07:36
@acogoluegnes acogoluegnes merged commit e3c1c11 into main Sep 22, 2023
@acogoluegnes acogoluegnes deleted the force-replica branch September 22, 2023 07:36
github-actions bot pushed a commit that referenced this pull request Sep 22, 2023
Add option to force consuming from a replica
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