Skip to content

Commit

Permalink
Merge pull request #2159 from DmitryLitvintsev/fix/2.11/8987
Browse files Browse the repository at this point in the history
nfs: use noitify instead of blocking sendAndWait when sending pin/unpin messages via touch ".(get)(<file_name>)(pin)" command
  • Loading branch information
jstarek committed Feb 5, 2016
2 parents 1970035 + 8074557 commit 07b8cb8
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
import diskCacheV111.vehicles.PoolManagerGetPoolMonitor;
import diskCacheV111.vehicles.ProtocolInfo;

import dmg.cells.nucleus.NoRouteToCellException;

import org.dcache.acl.enums.AccessMask;
import org.dcache.cells.CellStub;
import org.dcache.namespace.FileAttribute;
Expand Down Expand Up @@ -138,8 +140,8 @@ public void pin(String pnfsid, long lifetime) throws ChimeraFsException {
= new PinManagerPinMessage(attributes, protocolInfo, null, lifetime);

try {
pinManagerStub.sendAndWait(message);
} catch (CacheException | InterruptedException t) {
pinManagerStub.notify(message);
} catch (NoRouteToCellException t) {
throw new ChimeraFsException("pin", t);
}
}
Expand All @@ -154,8 +156,8 @@ public void unpin(String pnfsid) throws ChimeraFsException {
= new PinManagerUnpinMessage(new PnfsId(pnfsid));

try {
pinManagerStub.sendAndWait(message);
} catch (CacheException | InterruptedException t) {
pinManagerStub.notify(message);
} catch (NoRouteToCellException t) {
throw new ChimeraFsException("unpin", t);
}
}
Expand Down

0 comments on commit 07b8cb8

Please sign in to comment.