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

[Backports stable/1.0] Improve logging on election timeout #7363

Merged
2 commits merged into from
Jun 25, 2021

Conversation

npepinpe
Copy link
Member

Description

This PR backports #7348 to stable/1.0. There were some conflicts as the changes to the election timer logic are not backported to 1.0.

Related issues

backports #7348

Definition of Done

Not all items need to be done depending on the issue and the pull request.

Code changes:

  • The changes are backwards compatibility with previous versions
  • If it fixes a bug then PRs are created to backport the fix to the last two minor versions. You can trigger a backport by assigning labels (e.g. backport stable/0.25) to the PR, in case that fails you need to create backports manually.

Testing:

  • There are unit/integration tests that verify all acceptance criterias of the issue
  • New tests are written to ensure backwards compatibility with further versions
  • The behavior is tested manually
  • The change has been verified by a QA run
  • The impact of the changes is verified by a benchmark

Documentation:

  • The documentation is updated (e.g. BPMN reference, configuration, examples, get-started guides, etc.)
  • New content is added to the release announcement

Improves logging when an election occurs due to missing heartbeats. This
fixes the issue of having very high "time since last heartbeat" due when
there are no heartbeats, and it also shows that there is no known leader
instead of just showing null.

Additionally, adds logging when sending poll requests to log if we
transition directly to candidate or, when not, to which members we are
sending poll requests.

(cherry picked from commit 59b264d)
Lowers the log level of every request/response send/received in Raft to
trace. We send so many, logging all of them as debug simply generates
too much noise.

(cherry picked from commit 8f734fe)
Copy link
Contributor

@deepthidevaki deepthidevaki left a comment

Choose a reason for hiding this comment

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

🚀

bors r+

ghost pushed a commit that referenced this pull request Jun 24, 2021
7363: [Backports stable/1.0] Improve logging on election timeout r=deepthidevaki a=npepinpe

## Description

This PR backports #7348 to stable/1.0. There were some conflicts as the changes to the election timer logic are not backported to 1.0.

## Related issues

backports #7348 



Co-authored-by: Nicolas Pepin-Perreault <nicolas.pepin-perreault@camunda.com>
@ghost
Copy link

ghost commented Jun 24, 2021

Build failed:

@npepinpe
Copy link
Member Author

bors retry

ghost pushed a commit that referenced this pull request Jun 24, 2021
7363: [Backports stable/1.0] Improve logging on election timeout r=deepthidevaki a=npepinpe

## Description

This PR backports #7348 to stable/1.0. There were some conflicts as the changes to the election timer logic are not backported to 1.0.

## Related issues

backports #7348 



Co-authored-by: Nicolas Pepin-Perreault <nicolas.pepin-perreault@camunda.com>
@ghost
Copy link

ghost commented Jun 24, 2021

Build failed:

@npepinpe
Copy link
Member Author

bors retry

ghost pushed a commit that referenced this pull request Jun 24, 2021
7363: [Backports stable/1.0] Improve logging on election timeout r=deepthidevaki a=npepinpe

## Description

This PR backports #7348 to stable/1.0. There were some conflicts as the changes to the election timer logic are not backported to 1.0.

## Related issues

backports #7348 



Co-authored-by: Nicolas Pepin-Perreault <nicolas.pepin-perreault@camunda.com>
@ghost
Copy link

ghost commented Jun 24, 2021

Build failed:

@npepinpe
Copy link
Member Author

bors retry

@ghost
Copy link

ghost commented Jun 25, 2021

Build succeeded:

@ghost ghost merged commit e78e973 into stable/1.0 Jun 25, 2021
@ghost ghost deleted the backport-7348-to-stable/1.0 branch June 25, 2021 09:26
This pull request was closed.
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.

None yet

2 participants