You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/06/15 12:46:27 UTC

[GitHub] [rocketmq] liuzongliang0202 commented on issue #4463: indexFile flush question

liuzongliang0202 commented on issue #4463:
URL: https://github.com/apache/rocketmq/issues/4463#issuecomment-1156427697

   i think ,This can be modified like as follows
    
   `
   // class  IndexService
    public void shutdown() {
           if (!indexFileList.isEmpty()) {
               final IndexFile indexFile = indexFileList.get(indexFileList.size() - 1);
               long indexMsgTimestamp = indexFile.getEndTimestamp();
               indexFile.flush();
               this.defaultMessageStore.getStoreCheckpoint().setIndexMsgTimestamp(indexMsgTimestamp);
           }
       }
   `


-- 
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: dev-unsubscribe@rocketmq.apache.org

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