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

[Backport release-1.2.0] PartitionId in the logging context #7910

Merged
18 commits merged into from Sep 24, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Description

Backport of #7885 to release-1.2.0.

relates to #7859

We have in the RaftContext only the name, which contains the raft group and partition id. Sometimes we just want to have the partition id as an int this introduces this property.

(cherry picked from commit ae10d8f)
(cherry picked from commit afe41e7)
This context map is used on execution to set the logging context. Per default it just contains the actor name. Later sub classes should fill it with more context. It should make it easier on debugging and improve observability.

(cherry picked from commit d7f6d84)
In order to not recreate the map object all the time, we create a map only once on the first call and return that afterwards.

(cherry picked from commit 7ff5938)
(cherry picked from commit 0253b97)
(cherry picked from commit 365dbe1)
Add new method which should be overwritten by subclasses in order to add more information on which context the actor is currently running. This method is only on the first time, when the context is not yet filled.

(cherry picked from commit 2091b0f)
Returning modifiable map on this method makes it easier to implement sub classes. #getContext will return an umodifiable map

(cherry picked from commit b36691d)
(cherry picked from commit 4cd49f3)
@github-actions github-actions bot mentioned this pull request Sep 24, 2021
9 tasks
@Zelldon Zelldon self-requested a review September 24, 2021 16:50
@Zelldon
Copy link
Member

Zelldon commented Sep 24, 2021

Bors r+

@ghost
Copy link

ghost commented Sep 24, 2021

👎 Rejected by too few approved reviews

Copy link
Member

@Zelldon Zelldon 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 Sep 24, 2021
7910: [Backport release-1.2.0] PartitionId in the logging context r=Zelldon a=github-actions[bot]

# Description
Backport of #7885 to `release-1.2.0`.

relates to #7859

Co-authored-by: Christopher Zell <zelldon91@googlemail.com>
@ghost
Copy link

ghost commented Sep 24, 2021

Build failed:

@Zelldon
Copy link
Member

Zelldon commented Sep 24, 2021

Bors r+

@ghost
Copy link

ghost commented Sep 24, 2021

Build succeeded:

@ghost ghost merged commit 58844b2 into release-1.2.0 Sep 24, 2021
@ghost ghost deleted the backport-7885-to-release-1.2.0 branch September 24, 2021 18:34
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

1 participant