alex-plekhanov commented on a change in pull request #6554: IGNITE-11073:
Backup page store manager, initial
URL: https://github.com/apache/ignite/pull/6554#discussion_r387671245
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/binary/BinaryMetadataFileStore.java
##########
@@ -93,22 +97,33 @@
fileIOFactory =
ctx.config().getDataStorageConfiguration().getFileIOFactory();
- if (binaryMetadataFileStoreDir != null)
- workDir = binaryMetadataFileStoreDir;
- else {
- final String subFolder =
ctx.pdsFolderResolver().resolveFolders().folderName();
-
- workDir = new File(U.resolveWorkDirectory(
- ctx.config().getWorkDirectory(),
- "binary_meta",
- false
- ),
- subFolder);
- }
+ try {
+ if (binaryMetadataFileStoreDir != null)
+ workDir = binaryMetadataFileStoreDir;
+ else {
+ final String subFolder =
ctx.pdsFolderResolver().resolveFolders().folderName();
+
+ workDir = new File(U.resolveWorkDirectory(
+ igniteWorkDir,
+ "binary_meta",
+ false
+ ),
+ subFolder);
+ }
- U.ensureDirectory(workDir, "directory for serialized binary metadata",
log);
+ U.ensureDirectory(workDir, "directory for serialized binary
metadata", log);
+ }
+ catch (IgniteCheckedException e) {
+ throw new IgniteException(e);
+ }
+ }
+ /**
+ * Starts worker thread for acyn writing of binary metadata.
Review comment:
acyn -> async
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services