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

[MRESOLVER-536] Followup change: log failures #471

Merged
merged 3 commits into from Apr 17, 2024

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Apr 16, 2024

Do not swallow cases like AccessDeniedEx, and log failures. Make new method void as nothing is interested in return value, while all we wanted (swallow some and log) is handled here.

This PR builds upon prev PR #468


https://issues.apache.org/jira/browse/MRESOLVER-536

Do not swallow cases like AccessDeniedEx, and log
failures.

---

https://issues.apache.org/jira/browse/MRESOLVER-536
@cstamas cstamas self-assigned this Apr 16, 2024
@cstamas
Copy link
Member Author

cstamas commented Apr 16, 2024

ping @Jurrie I know you are targeting 1.9.x but just FYI

if (e instanceof AccessDeniedException) {
throw e;
}
logger.debug("Failed to set last-modified: {}", path, e);
Copy link
Member

Choose a reason for hiding this comment

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

I think this should be even on trace because it can be very verbose....

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

if (e instanceof AccessDeniedException) {
throw e;
}
logger.debug("Failed to set last-modified: {}", path, e);
Copy link
Member

Choose a reason for hiding this comment

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

"Failed to set last modified date: {}"

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@cstamas cstamas merged commit efba51c into apache:master Apr 17, 2024
4 checks passed
@cstamas cstamas deleted the MRESOLVER-536 branch April 17, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants