sashapolo commented on a change in pull request #174:
URL: https://github.com/apache/ignite-3/pull/174#discussion_r659741201
##########
File path:
modules/runner/src/main/java/org/apache/ignite/internal/app/IgnitionImpl.java
##########
@@ -184,7 +192,32 @@ else if (jsonStrBootstrapCfg != null)
ackSuccessStart();
- return new IgniteImpl(distributedTblMgr);
+ return new IgniteImpl(distributedTblMgr, vaultMgr);
+ }
+
+ /** {@inheritDoc} */
+ @Override public void close() {
+ IgniteUtils.delete(VAULT_DB_PATH);
+ }
+
+ /**
+ * Starts the Vault component.
+ */
+ private static VaultManager createVault(String nodeName) {
+ Path vaultPath = VAULT_DB_PATH.resolve(nodeName);
+
+ try {
+ Files.createDirectories(vaultPath);
+ }
+ catch (IOException e) {
+ throw new IgniteInternalException(e);
+ }
+
+ var vaultMgr = new VaultManager(new PersistentVaultService(vaultPath));
+
+ vaultMgr.putName(nodeName).join();
Review comment:
Discussed in person and decided not to do anything
--
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]