rohityadav1993 commented on code in PR #17249:
URL: https://github.com/apache/pinot/pull/17249#discussion_r2578227557


##########
pinot-core/src/main/java/org/apache/pinot/core/data/manager/BaseTableDataManager.java:
##########
@@ -438,10 +442,10 @@ protected void 
replaceSegmentIfCrcMismatch(SegmentDataManager segmentDataManager
       _logger.info("Segment: {} has CRC: {} same as before, not replacing it", 
segmentName, localMetadata.getCrc());
       return;
     }
-    if (!_instanceDataManagerConfig.shouldCheckCRCOnSegmentLoad()) {
+    if (!_instanceDataManagerConfig.shouldCheckCRCOnSegmentLoad() || 
_skipCrcCheckForThisTable) {

Review Comment:
   Another way to think how to resolve when to do CRC ignore is based on table 
type:
   
   ```
   Offline tables: Always do CRC check
   Realtime table:
   if segment.realtime.status = DONE then skip CRC check
   else if segment.realtime.status = UPLOADED then do CRC check



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