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


##########
modules/core/src/main/java/org/apache/ignite/internal/cdc/CdcMain.java:
##########
@@ -585,6 +591,85 @@ private void consumeSegment(Path segment) {
         }
     }
 
+    /**
+     * Consumes and handles Reltime CDC records from the segment.
+     * @param segment Segment.
+     */
+    private void consumeSegmentPassively(Path segment) {

Review Comment:
   ```java
       private boolean consumeSegmentPassively(Path segment) {
           IgniteWalIteratorFactory.IteratorParametersBuilder builder = 
walIteratorParametersBuilder(
               segment,
               (type, ptr) -> type == CDC_MANAGER_STOP_RECORD);
   
           try (WALIterator iter = new 
IgniteWalIteratorFactory(log).iterator(builder)) {
               return !iter.hasNext();
           }
           catch (IgniteCheckedException | IOException e) {
               throw new IgniteException(e);
           }
       }
   ```



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