petrov-mg commented on code in PR #10527:
URL: https://github.com/apache/ignite/pull/10527#discussion_r1101981274
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/SnapshotRestoreProcess.java:
##########
@@ -1134,6 +1143,31 @@ private IgniteInternalFuture<Boolean> preload(UUID
reqId) {
return retFut;
}
+ /** Restore registered mappings for user classes. */
+ private void restoreMappings(File marshallerDir, BooleanSupplier
stopChecker) throws IgniteCheckedException {
+ File[] mappings = marshallerDir.listFiles(BinaryUtils::notTmpFile);
+
+ if (mappings == null)
+ throw new IgniteException("Failed to list marshaller directory: "
+ marshallerDir);
Review Comment:
To keep some consistency across all exception messages we can change this
particular message to something like that:
`Failed to list marshaller directory content [dirName=" + marshallerDir +
']'`
Actually that is up to you.
--
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]