ArafatKhan2198 commented on code in PR #6640:
URL: https://github.com/apache/ozone/pull/6640#discussion_r1594213411
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/spi/impl/OzoneManagerServiceProviderImpl.java:
##########
@@ -264,10 +270,12 @@ private void startSyncDataFromOM(long initialDelay) {
LOG.debug("Started the OM DB sync scheduler.");
scheduler.scheduleWithFixedDelay(() -> {
try {
+ LOG.info("Last known sequence number before sync: {}",
getCurrentOMDBSequenceNumber());
Review Comment:
We can consolidate the two log messages into a single entry, which will be
printed after the sync operation, displaying the sequence number before and
after the sync.
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/spi/impl/OzoneManagerServiceProviderImpl.java:
##########
@@ -264,10 +270,12 @@ private void startSyncDataFromOM(long initialDelay) {
LOG.debug("Started the OM DB sync scheduler.");
scheduler.scheduleWithFixedDelay(() -> {
try {
+ LOG.info("Last known sequence number before sync: {}",
getCurrentOMDBSequenceNumber());
Review Comment:
We can consolidate the two log messages into a single entry, which will be
printed after the sync operation, displaying the sequence number before and
after the sync.
What do you think @sumitagrawl
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]