Skip to content

feat(availability): add the default heartbeat policy - #169

Closed
nickkkccc wants to merge 5 commits into
masterfrom
add-heartbeat-availability-policy
Closed

nickkkccc wants to merge 5 commits into
masterfrom
add-heartbeat-availability-policy

Conversation

@nickkkccc

@nickkkccc nickkkccc commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

I haven't forgotten about:

  • Tests
  • Changelog
  • Documentation
    • JavaDoc was written
  • Commit messages comply with the guideline
  • Cleanup the code for review. See checklist

Related issues:

@nickkkccc nickkkccc self-assigned this Nov 16, 2026
@nickkkccc
nickkkccc marked this pull request as draft November 16, 2026 15:31
@nickkkccc
nickkkccc force-pushed the add-heartbeat-availability-policy branch from 6d9a16d to d6b6483 Compare November 16, 2026 15:37
@nickkkccc
nickkkccc force-pushed the add-heartbeat-availability-policy branch 3 times, most recently from 6731e3d to 37befcf Compare November 17, 2026 08:21
 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
nickkkccc force-pushed the add-heartbeat-availability-policy branch from 37befcf to 6135820 Compare November 17, 2026 09:34
@nickkkccc

Copy link
Copy Markdown
Contributor Author

#174
#175

@nickkkccc nickkkccc closed this Nov 17, 2026
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.

1 participant