sashapolo commented on code in PR #3189:
URL: https://github.com/apache/ignite-3/pull/3189#discussion_r1483981347


##########
modules/vault/src/main/java/org/apache/ignite/internal/vault/persistence/PersistentVaultService.java:
##########
@@ -112,59 +93,44 @@ public void start() {
         }
     }
 
-    /** {@inheritDoc} */
     @Override
     public void close() {
-        IgniteUtils.shutdownAndAwaitTermination(threadPool, 10, 
TimeUnit.SECONDS);
-
-        futureTracker.cancelInFlightFutures();
-
-        RocksUtils.closeAll(options, db);
+        RocksUtils.closeAll(db, options);
     }
 
-    /** {@inheritDoc} */
     @Override
-    public CompletableFuture<VaultEntry> get(ByteArray key) {
-        return supplyAsync(() -> {
-            try {
-                byte[] value = db.get(key.bytes());
-
-                return value == null ? null : new VaultEntry(key, value);
-            } catch (RocksDBException e) {
-                throw new IgniteInternalException("Unable to read data from 
RocksDB", e);
-            }
-        });
+    public VaultEntry get(ByteArray key) {

Review Comment:
   This is not needed, this annotation is inherited (at least IDEA doesn't 
complain)



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