zhoujinsong commented on issue #3831:
URL: https://github.com/apache/amoro/issues/3831#issuecomment-3421163403

   Here is the logic to determine if a full optimizing is necessary:
   ```
     public boolean isFullNecessary() {
       if (!reachFullInterval()) {
         return false;
       }
       return anyDeleteExist()
           || fragmentFileCount >= 2
           || undersizedSegmentFileCount >= 2
           || rewriteSegmentFileCount > 0
           || rewritePosSegmentFileCount > 0;
     }
   ```
   
   And the `undersizedSegmentFileCount >= 2` seems not to be enough, should we 
consider changing it to `enoughContent()`?
   
   cc @zhongqishang 
   
   


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