Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-11089]Log filecache directory removed messages #7257

Closed
wants to merge 1 commit into from

Conversation

liu-zhaokun
Copy link
Contributor

https://issues.apache.org/jira/browse/FLINK-11089
When taskmanager exit or shutdown,the filecache directory named "flink-dist-cache*" will be removed,but there is not any log about this action.So I think we should log it for user to check it easy when there are some bugs.

You can see IOManager.java logs the removed messages when taskmanager shutdown, filecache can do the same things.

@liu-zhaokun
Copy link
Contributor Author

@tillrohrmann Hi,are you available to help me to review this PR? Thanks! Look forwards to your reply.

1 similar comment
@liu-zhaokun
Copy link
Contributor Author

@tillrohrmann Hi,are you available to help me to review this PR? Thanks! Look forwards to your reply.

}
catch (IOException e) {
LOG.error("File cache could not properly clean up storage directory.");
LOG.error("File cache could not properly clean up storage directory: " + dir, e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
LOG.error("File cache could not properly clean up storage directory: " + dir, e);
LOG.error("File cache could not properly clean up storage directory: {}", dir, e);

@liu-zhaokun
Copy link
Contributor Author

@rmetzger Thanks for your reply.I have update the patch,could help me to review it?

Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for you contribution @liu-zhaokun. I had a single comment. After addressing this comment, it can be merged.

@flinkbot approve all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants