HDDS-9702. Improve logging when Recon gets a full update from OM#5612
HDDS-9702. Improve logging when Recon gets a full update from OM#5612dombizita merged 1 commit intoapache:masterfrom
Conversation
|
@dombizita @sumitagrawl Pls review. |
| } catch (Exception e) { | ||
| metrics.incrNumDeltaRequestsFailed(); | ||
| LOG.warn("Unable to get and apply delta updates from OM.", e); | ||
| LOG.warn("Unable to get and apply delta updates from OM.", |
There was a problem hiding this comment.
I have a question!
Would it be a good idea to mention the this.getClass().getName() to over here, since the stack trace would not be printed?
There was a problem hiding this comment.
I have a question! Would it be a good idea to mention the
this.getClass().getName()to over here, since the stack trace would not be printed?
Whenever there is a log printed in logs, log4j always prints the class name from where this log has appeared, so I believe that is not needed.
No, we don't want to hide details for full snapshot error, so left as it is. |
dombizita
left a comment
There was a problem hiding this comment.
Thanks for improving this @devmadhuu, it looks good to me!
What changes were proposed in this pull request?
Since Recon will fallback to full OM DB snapshot update in case failed to get incremental updates, but we don't need this below full trace rather a brief message with some important details is enough.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9702
How was this patch tested?
This patch was tested using manual Junit test case as well as by forcing full OM DB snaphsot update from OM.