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

   ### Motivation
   Now exceptions that happen in the flow of compaction task are collected into 
variable `currentCompaction` and don't print any log.
   
   When compaction doesn't work, two reasons come to mind:
   - the task skipped by rules.
   - the task failed.
   
   We can't determine which causing the problem if there has no log, this 
increases the difficulty of troubleshooting. 
   
   The API `pulsar-admin topics compaction-status <topic>` lets us see what 
happens when the last compaction executes, But it can not help us know if there 
were previous missions that failed.
   
   
   ### Modifications
   
   Print warn log if compaction fails.
   
   ### 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 -->
   
   ### Matching PR in forked repository
   
   PR in forked repository: 
   - https://github.com/poorbarcode/pulsar/pull/63
   


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