phanirajl opened a new pull request, #4551:
URL: https://github.com/apache/cassandra/pull/4551

   [CASSANDRA-21073](https://issues.apache.org/jira/browse/CASSANDRA-21073)
   
   **Issue**: Currently, "active compaction remaining time" is calculated as 
`(total - completed) / compaction_throughput`. The real processing speed can be 
much lower than the `compaction_throughput` configuration limit, making the 
reported value highly inaccurate.
   
   **Proposed Solution**: Use current compaction throughput (1 minute) instead 
of configured `compaction_throughput` to calculate remaining time. This 
provides more accurate estimates when the actual compaction speed is lower than 
the configured limit. Falls back to configured throughput if current throughput 
is unavailable or zero.
   
   **Validation**: 
   - Code compiles without errors
   - No linting errors
   - Backward compatibility verified (existing callers like 
`CompactionStress.java` still work)
   - Implementation follows Option 1 from the JIRA issue description


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