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

THRIFT-5502: Log SocketException at WARN level only #2608

Closed
wants to merge 3 commits into from

Conversation

slachiewicz
Copy link
Member

and proposition to move logging to one place

@ctubbsii
Copy link
Member

and proposition to move logging to one place

Why?

@slachiewicz
Copy link
Member Author

instead of the private method isIgnorableException we can just have a method to log proper message and add mentioned in THRIFT-5502 ignore for specific Socket exceptions.
if not this way - please suggest how this ticket should be solved

@ctubbsii
Copy link
Member

and proposition to move logging to one place

I misunderstood this. I thought you were removing duplicate code and consolidating into a single method, but it didn't make sense, since this code is only called once.

What you're actually doing is combining the exception handling logic, so it's all handled in one place. That makes sense to me now.

@Jens-G Jens-G closed this in 0aa108f Aug 25, 2022
africamonkey pushed a commit to africamonkey/thrift that referenced this pull request Sep 14, 2022
Client: java
Patch: Sylwester Lachiewicz & Christopher Tubbs

This closes apache#2608
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants