Github user zzcclp commented on the issue:
https://github.com/apache/carbondata/pull/2045
@akashrn5 It works fine on our env, if you configured the preserver time to 1 hour (carbon.segment.lock.files.preserve.hours=1), it will delete the **segment** lock files which the last modified time is older than 1 hour.
But there are one scenario that it will not delete the segment lock files:
there are some 'MARKED_FOR_DELETE' or 'COMPACTED' or 'INSERT_IN_PROGRESS' or ''INSERT_OVERWRITE_IN_PROGRESS' segments but the last modified time of these segments were all within 1 hour.
Maybe we can delete the segment lock files before this check , @jackylk @ravipesala what do you think about this? is it ok to do this?
---