Skip to content

Commit

Permalink
cells: Don't log AsynchronousCloseException when tunnel closes
Browse files Browse the repository at this point in the history
Motivation:

Depending on when the tunnel is closed, either EofException or
AsychronousCloseException may be thrown. We currently discard
EofException but log AsynchronousCloseException.

Modification:

Don't log AsynchronousCloseException.

Result:

No more

(c-dCacheDomain2-AAUovTh9g2g-AAUovTh-F9g) [] Error while reading from tunnel: java.nio.channels.AsynchronousCloseException

Target: trunk
Require-notes: yes
Require-book: no
Request: 2.14
Request: 2.13
Request: 2.12
Request: 2.11
Request: 2.10
Acked-by: Albert Rossir <arossi@fnal.gov>
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: https://rb.dcache.org/r/8918/
  • Loading branch information
gbehrmann committed Jan 8, 2016
1 parent 08dbe65 commit a4a1b4e
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -13,6 +13,7 @@
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.Socket;
import java.nio.channels.AsynchronousCloseException;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ExecutionException;
Expand Down Expand Up @@ -166,7 +167,7 @@ public void run()
} finally {
_tunnels.remove(this);
}
} catch (EOFException | InterruptedException e) {
} catch (AsynchronousCloseException | EOFException | InterruptedException e) {
} catch (ClassNotFoundException e) {
_log.warn("Cannot deserialize object. This is most likely due to a version mismatch.");
} catch (IOException e) {
Expand Down

0 comments on commit a4a1b4e

Please sign in to comment.