Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C++] Make MediaDriver keepalive exception consistent #1429

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

reissGRVS
Copy link
Contributor

Makes the keepalive timeout exception consistent with implementation in aeron_client_conductor_check_liveness
https://github.com/real-logic/aeron/blob/master/aeron-client/src/main/c/aeron_client_conductor.c#L381-L393

@reissGRVS
Copy link
Contributor Author

I dont think my change could've broken atomicArrayUpdaterTest in C++ Xcode (macOS) build.
I'm guessing thats another issue?

{
m_driverActive = false;

int64_t age = m_driverProxy.timeOfLastDriverKeepalive() + m_driverTimeoutMs;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Another annoying thing about this was the two separate calls to timeOfLastDriverKeepalive().
In theory it could've changed in between and you end up logging a nonsense "age"

Makes the keepalive timeout exception consistent with implementation in aeron_client_conductor_check_liveness
@mjpt777 mjpt777 merged commit ffdca90 into aeron-io:master Feb 23, 2023
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