Repository navigation
Conversation
nickkkccc
marked this pull request as draft
November 16, 2026 15:31
nickkkccc
force-pushed
the
add-heartbeat-availability-policy
branch
from
November 16, 2026 15:37
6d9a16d to
d6b6483
Compare
nickkkccc
force-pushed
the
add-heartbeat-availability-policy
branch
3 times, most recently
from
November 17, 2026 08:21
6731e3d to
37befcf
Compare
An implementation of the `AvailabilityPolicy` interface has been added; it serves as a redesigned version of the heartbeat mechanism used in `PoolEntry`. This implementation utilizes an event-driven state machine based on: - `io.tarantool.core.state.AbstractDrainLoopMachine.java` - `io.tarantool.core.state.Event` - `io.tarantool.core.state.State`
- Added FakeTimer to deterministically execute scheduled events in tests. - Added StubClient to provide a IProtoClient with predefined responses to ping requests. - Added RecordingPoolEntryView that records every interaction made by a policy.
- Added a test class to verify heartbeat window evaluation logic and connection state transitions.
- Tests have been added to verify the functionality of the HeartbeatStateMachine state machine.
- Tests have been added to verify the functionality of the DefaultAvailabilityPolicy.
nickkkccc
force-pushed
the
add-heartbeat-availability-policy
branch
from
November 17, 2026 09:34
37befcf to
6135820
Compare
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I haven't forgotten about:
Related issues: