Skip to content

Commit

Permalink
nfs4: NFSv4StateHandler#shutdown should declare to throw IOException
Browse files Browse the repository at this point in the history
the least possible exception

Acked-by: Paul Millar
Target: master
  • Loading branch information
kofemann committed Nov 22, 2018
1 parent 6dc4032 commit 91763cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/org/dcache/nfs/v4/NFSv4StateHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.security.Principal;
import java.util.Arrays;
Expand Down Expand Up @@ -312,7 +313,7 @@ private synchronized void drainClients() {
/**
* Shutdown session lease time watchdog thread.
*/
public synchronized void shutdown() throws Exception {
public synchronized void shutdown() throws IOException {
checkState(_running, "NFS state handler not running");
_running = false;
drainClients();
Expand Down

0 comments on commit 91763cd

Please sign in to comment.