platinumhamburg commented on code in PR #1487: URL: https://github.com/apache/fluss/pull/1487#discussion_r2350485043
##########
fluss-server/src/main/java/org/apache/fluss/server/log/LogManager.java:
##########
@@ -194,6 +195,21 @@ private void loadLogs() {
conf,
clock);
} catch (Exception e) {
+ LOG.error(
+ "Fail to
loadLog from {}",
+ tabletDir,
+ e);
+ if (e
+ instanceof
+
SchemaNotExistException) {
+ LOG.error(
+
"schema not exist, table for {} has already been dropped, the residual deta
will be removed.",
+
tabletDir,
+ e);
+
FileUtils.deleteDirectoryQuietly(
+
tabletDir);
+ return;
Review Comment:
Thanks for the suggestion! I'll refactor the code above.
--
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]
