xtern commented on a change in pull request #9047:
URL: https://github.com/apache/ignite/pull/9047#discussion_r622026544



##########
File path: 
modules/core/src/main/java/org/apache/ignite/internal/processors/metastorage/persistence/DmsDataWriterWorker.java
##########
@@ -81,134 +90,125 @@ public DmsDataWriterWorker(
         super(igniteInstanceName, "dms-writer", log);
         this.lock = lock;
         this.errorHnd = errorHnd;
+
+        pauseTask = new FutureTask<>(() -> AWAIT);
+        // Completed future task.
+        pauseTask.run();
+
+        // Put restore task to the queue, so it will be executed on worker 
start.
+        updateQueue.offer(newDmsTask(this::restore));
     }
 
     /** */
     public void setMetaStorage(ReadWriteMetastorage metastorage) {
         this.metastorage = metastorage;
     }
 
-    /** */
-    public void update(DistributedMetaStorageHistoryItem histItem) {
-        updateQueue.offer(histItem);
+    /**
+     * @return Future which will be completed will all the tasks prior to the 
pause task completed.

Review comment:
       Future which will be completed **_will_** all the tasks prior to the 
pause task completed.




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to