Skip to content

Commit

Permalink
pool: include client IP in mover ls for netty based movers
Browse files Browse the repository at this point in the history
Motivation:
the `mover ls` command doesn't include the clients IP for xroot and
http protocol, which makes debugging more complicated.

Modification:
include client IP in the output of `mover ls` command.

Result:
Better debugging

Acked-by: Lea Morschel
Target: master
Require-book: no
Require-notes: yes
  • Loading branch information
kofemann committed Apr 18, 2023
1 parent 7e25d29 commit c8b83db
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -21,6 +21,7 @@

import diskCacheV111.util.CacheException;
import diskCacheV111.util.DiskErrorCacheException;
import diskCacheV111.vehicles.IpProtocolInfo;
import diskCacheV111.vehicles.PoolIoFileMessage;
import diskCacheV111.vehicles.ProtocolInfo;
import dmg.cells.nucleus.CellPath;
Expand Down Expand Up @@ -104,6 +105,10 @@ protected String getStatus() {
}
} catch (IOException e) {
}

s.append(",cl=[")
.append(((IpProtocolInfo)getProtocolInfo()).getSocketAddress().getAddress().getHostAddress())
.append("]");
return s.toString();
}
}

0 comments on commit c8b83db

Please sign in to comment.