devmadhuu commented on code in PR #4011:
URL: https://github.com/apache/ozone/pull/4011#discussion_r1040950761


##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/fsck/ContainerHealthTask.java:
##########
@@ -79,32 +83,44 @@ public ContainerHealthTask(
   }
 
   @Override
-  public synchronized void run() {
+  public void run() {
     try {
+      lock.writeLock().lock();

Review Comment:
   Thanks @sumitagrawl for review, its fixed. pls re-review.



##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/scm/PipelineSyncTask.java:
##########
@@ -66,21 +71,34 @@ public PipelineSyncTask(ReconPipelineManager 
pipelineManager,
   @Override
   protected synchronized void run() {
     try {
+      lock.writeLock().lock();

Review Comment:
   Thanks @sumitagrawl for review, its fixed. pls re-review.



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

Reply via email to