**BUG REPORT** 1. Please describe the issue you observed: The CQ minLogicOffset can't update normally when there is only one expired CQ file left. - What did you do (The steps to reproduce)? After traversing all of the CQ file buffer, update minLogicOffset to the write position. - What did you expect to see? - What did you see instead? 2. Please tell us about your environment: 3. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):