Copilot commented on code in PR #19083:
URL: https://github.com/apache/pinot/pull/19083#discussion_r3669269554


##########
pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/realtime/PinotLLCRealtimeSegmentManager.java:
##########
@@ -2535,6 +2647,21 @@ private boolean isTmpAndCanDelete(String filePath, 
Set<String> downloadUrls, Pin
     return getCurrentTimeMs() - lastModified > 
_controllerConf.getTmpSegmentRetentionInSeconds() * 1000L;
   }
 
+  /**
+   * Reset consumption start offsets for selected partition groups (issue 
#6637).
+   * For each partition: OFFLINE the latest CONSUMING segment if needed, then 
create a new IN_PROGRESS
+   * consuming segment at the requested offset. Does not attempt to 
seal/commit poisoned segments.
+   *
+   * <p>Best-effort per partition: successes and failures are returned 
independently. Concurrent RSVM/commit
+   * races and pauseless edge cases are not fully serialized yet (IdealState 
is written via {@link #setIdealState},
+   * not Helix CAS — callers must avoid concurrent commits on the same 
partitions).
+   *
+   * @param tableNameWithType realtime table name with type
+   * @param partitionToOffsetSerialized map of partition group id → serialized 
{@link StreamPartitionMsgOffset}
+   * @param comment optional operator comment for logs (newlines stripped)
+   * @return per-partition result maps with keys 
status/oldSegment/newSegment/offset/message
+   */
+

Review Comment:
   This Javadoc describes the "reset consumption start offsets" API, but it is 
placed immediately above the force-commit API Javadoc, making the documentation 
misleading. Remove this stray Javadoc block (the force-commit method already 
has its own Javadoc).



##########
pinot-controller/src/test/java/org/apache/pinot/controller/helix/core/realtime/PinotLLCRealtimeSegmentManagerTest.java:
##########
@@ -178,6 +178,18 @@ private CommittingSegmentDescriptor 
createCommittingSegmentDescriptor(String seg
     return createCommittingSegmentDescriptor(segmentName, NEXT_OFFSET);
   }
 
+  /**
+   * Test cases for new table being created, and initial segments setup that 
follows.
+   */
+
+  /**
+   * Test cases for new table being created, and initial segments setup that 
follows.
+   */
+
+  /**
+   * Test cases for new table being created, and initial segments setup that 
follows.
+   */
+

Review Comment:
   Redundant duplicate Javadoc blocks were added; this repeats the same section 
header three extra times and adds noise. Remove the duplicates and keep a 
single Javadoc for this test section.
   
   This issue also appears in the following locations of the same file:
   - line 739
   - line 892
   - line 1876
   - line 2015
   - line 2383



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to