nizhikov commented on code in PR #12091:
URL: https://github.com/apache/ignite/pull/12091#discussion_r2105904574


##########
modules/core/src/main/java/org/apache/ignite/internal/cdc/CdcConsumerState.java:
##########
@@ -118,16 +97,16 @@ public class CdcConsumerState {
      */
     public CdcConsumerState(IgniteLogger log, Path stateDir) {
         this.log = log.getLogger(CdcConsumerState.class);
-        walPtr = stateDir.resolve(WAL_STATE_FILE_NAME);
-        tmpWalPtr = stateDir.resolve(WAL_STATE_FILE_NAME + TMP_SUFFIX);
-        types = stateDir.resolve(TYPES_STATE_FILE_NAME);
-        tmpTypes = stateDir.resolve(TYPES_STATE_FILE_NAME + TMP_SUFFIX);
-        mappings = stateDir.resolve(MAPPINGS_STATE_FILE_NAME);
-        tmpMappings = stateDir.resolve(MAPPINGS_STATE_FILE_NAME + TMP_SUFFIX);
-        caches = stateDir.resolve(CACHES_STATE_FILE_NAME);
-        tmpCaches = stateDir.resolve(CACHES_STATE_FILE_NAME + TMP_SUFFIX);
-        cdcMode = stateDir.resolve(CDC_MODE_FILE_NAME);
-        tmpCdcMode = stateDir.resolve(CDC_MODE_FILE_NAME + TMP_SUFFIX);
+        walPtr = NodeFileTree.walStateFilePath(stateDir, false);

Review Comment:
   Let's inline all usages of `walPtr` and other class variables and remove 
them from `CdcConsumerState`.



-- 
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: notifications-unsubscr...@ignite.apache.org

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

Reply via email to