compasses opened a new issue, #14167: URL: https://github.com/apache/doris/issues/14167
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues. ### Version >= doris-0.14 ### What's Wrong? From out environment, we run into a critical problem, the journal log cannot be replayed correctly, lead to cannot generate image and have very large size journal log. While after restart FE under meta recovery mode, all data lost caused by all the meta data was about two month ago. Since the replay is fail and the FE still startup. The error info: ``` fail to get journal 3782344, will try again. status: OperationStatus.NOTFOUND ... database names: 3754707 3782343 3782345 .... ... ``` Actually, the **3782343** id should get from the database **3782343**, don't know why it can get from the last database **3754707**. After change the code ``` .... } else if (nextDbPositionIndex < dbNames.size() && currentKey == dbNames.get(nextDbPositionIndex)) { .... ``` to ``` .... } else if (nextDbPositionIndex < dbNames.size() && currentKey >= dbNames.get(nextDbPositionIndex)) { .... ``` It can replay success. But the error may happen somewhere else . From the current code path, seems impossible. ### What You Expected? The all the journal should be replay success. ### How to Reproduce? _No response_ ### Anything Else? _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
