vikramahuja1001 commented on a change in pull request #4035:
URL: https://github.com/apache/carbondata/pull/4035#discussion_r534678032



##########
File path: 
core/src/main/java/org/apache/carbondata/core/statusmanager/SegmentStatusManager.java
##########
@@ -1039,17 +1039,19 @@ private static void 
writeLoadMetadata(AbsoluteTableIdentifier identifier,
     }
   }
 
-  private static ReturnTuple isUpdateRequired(boolean isForceDeletion, 
CarbonTable carbonTable,
-      AbsoluteTableIdentifier absoluteTableIdentifier, LoadMetadataDetails[] 
details) {
+  private static ReturnTuple isUpdateRequired(boolean cleanStaleInProgress, 
boolean

Review comment:
       Instead of just a force option deleting all MFD, Compacted and stale 
Insert In Progress segments, dividing them into 2 parameters, 
cleanMFDandCompacted and cleanStaleInProgress. CleanMFDAndCompacted parameter 
will decide if MFD and Compacted segments can be deleted and 
cleanStaleInProgress will decide if stale InProgress segments can be deleted. 
After giving these 2 parameters, force can be removed. if the user wants to do 
force deletion, they can set both cleanMFDandCompacted and cleanStaleInProgress 
to true.




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

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


Reply via email to