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

Commits on Sep 24, 2021

  1. feat: add partition id to ctx

    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)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    77d2d9c View commit details
    Browse the repository at this point in the history
  2. feat: add partition id to raft thread context

    (cherry picked from commit 7f09cde)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    1fffdd3 View commit details
    Browse the repository at this point in the history
  3. refactor: align to code style

    (cherry picked from commit afe41e7)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    77ba149 View commit details
    Browse the repository at this point in the history
  4. feat: add context map to actor

    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)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    3449b19 View commit details
    Browse the repository at this point in the history
  5. refactor: add lazy instantiation

    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)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    e5e2417 View commit details
    Browse the repository at this point in the history
  6. refactor: make const final

    (cherry picked from commit 0253b97)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    ef77cfb View commit details
    Browse the repository at this point in the history
  7. refactor: set MDC in RaftContext

    (cherry picked from commit 365dbe1)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    916bafa View commit details
    Browse the repository at this point in the history
  8. refactor: make actor context umodifiable

    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)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    390a326 View commit details
    Browse the repository at this point in the history
  9. feat: create context returns modifiable map

    Returning modifiable map on this method makes it easier to implement sub classes. #getContext will return an umodifiable map
    
    (cherry picked from commit b36691d)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    b3f12fd View commit details
    Browse the repository at this point in the history
  10. feat: add partitionId to exporterDirector context

    (cherry picked from commit f505254)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    3d9681a View commit details
    Browse the repository at this point in the history
  11. feat: add partitionId to LogDeletionService context

    (cherry picked from commit abb9dc9)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    21e6331 View commit details
    Browse the repository at this point in the history
  12. feat: add partitionId to StreamProcessor context

    (cherry picked from commit f99ed0d)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    08819dd View commit details
    Browse the repository at this point in the history
  13. feat: add partitionId to FileBasedSnapshotStore context

    (cherry picked from commit b2d3737)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    926f824 View commit details
    Browse the repository at this point in the history
  14. feat: add partitionId to LogStorageAppender context

    (cherry picked from commit 93c839f)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    5f2dd6a View commit details
    Browse the repository at this point in the history
  15. refactor: apply codestyle

    (cherry picked from commit 4cd49f3)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    a988182 View commit details
    Browse the repository at this point in the history
  16. feat: add partitionId to AsyncSnapshotDirector context

    (cherry picked from commit 741da77)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    e28cab3 View commit details
    Browse the repository at this point in the history
  17. feat: add partitionId to LogStreamImpl context

    (cherry picked from commit a1b31c4)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    73077fa View commit details
    Browse the repository at this point in the history
  18. feat: add partitionId to ZeebePartition context

    (cherry picked from commit d35fa57)
    Zelldon authored and github-actions[bot] committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    03fb4f9 View commit details
    Browse the repository at this point in the history