wenbingshen opened a new pull request, #3833:
URL: https://github.com/apache/bookkeeper/pull/3833

   ### Motivation
   
   LedgerFragment adds the state of replicateType, but it has not been added to 
the toString method. I think the replicateType should be added to the toString 
method to track the state of LF and troubleshoot problems.
   
   ### Changes
   
   LedgerFragment is generally in `DATA_LOSS` or `DATA_NOT_ADHERING_PLACEMENT` 
state.
   But it shouldn't have status when it's in detection progress or used 
elsewhere, so I added `NULL` status.
   
   The following log shows the result:
   
   replicating DATA_LOSS LedgerFragment
   
![image](https://user-images.githubusercontent.com/35599757/222430978-7216f8ac-79da-4298-b12d-8c200613ec0e.png)
   
   replicating DATA_NOT_ADHERING_PLACEMENT LedgerFragment
   
![image](https://user-images.githubusercontent.com/35599757/222431002-3b57a771-adc6-4d37-aaf6-e7f1b0c7bc87.png)
   
   checking LedgerFragment in NULL type
   
![image](https://user-images.githubusercontent.com/35599757/222431053-8c0194b9-518e-4988-8f9e-b11c38f2f3cf.png)
   


-- 
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