Demogorgon314 opened a new pull request, #25132:
URL: https://github.com/apache/pulsar/pull/25132

   ### Motivation
   
   Long periods of metadata state: Unstable prevent ownership 
monitoring/cleanup, which can leave orphan service units and stale bundle 
ownership and trigger massive not served by this instance / Please redo the 
lookup spam. 
   
   The last metadata session event state is updated by one thread and read by 
another without a visibility guarantee, which can keep the broker stuck in an 
incorrect “Unstable” view and makes incident debugging difficult.
   
   ### Modifications
   
     - Mark lastMetadataSessionEvent and lastMetadataSessionEventTimestamp as 
volatile to guarantee cross-thread visibility.
     - Enrich the “Skipping ownership monitor” warning with the last session 
event and timestamp.
     - Export new metrics for metadata state and last session event 
timestamp/age.
     - Add tests to assert the new metrics report expected values.
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to