ACCUMULO-2582 Use the full path to the file when we know it
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/d63bb8a8 Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/d63bb8a8 Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/d63bb8a8 Branch: refs/heads/master Commit: d63bb8a883dae5e020f617f674edfb8319bda94a Parents: 092e22e Author: Josh Elser <[email protected]> Authored: Tue May 27 17:48:08 2014 -0400 Committer: Josh Elser <[email protected]> Committed: Tue May 27 20:12:17 2014 -0400 ---------------------------------------------------------------------- .../apache/accumulo/monitor/servlets/ReplicationServlet.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/d63bb8a8/server/monitor/src/main/java/org/apache/accumulo/monitor/servlets/ReplicationServlet.java ---------------------------------------------------------------------- diff --git a/server/monitor/src/main/java/org/apache/accumulo/monitor/servlets/ReplicationServlet.java b/server/monitor/src/main/java/org/apache/accumulo/monitor/servlets/ReplicationServlet.java index 6a73892..7861ba0 100644 --- a/server/monitor/src/main/java/org/apache/accumulo/monitor/servlets/ReplicationServlet.java +++ b/server/monitor/src/main/java/org/apache/accumulo/monitor/servlets/ReplicationServlet.java @@ -219,8 +219,9 @@ public class ReplicationServlet extends BasicServlet { // We could try to grep over the table, but without knowing the full file path, we // can't find the status quickly String status = "Unknown"; + String path = null; if (null != data) { - String path = new String(data); + path = new String(data); Scanner s = ReplicationTable.getScanner(conn); s.setRange(Range.exact(path)); s.fetchColumn(WorkSection.NAME, target.toText()); @@ -257,7 +258,7 @@ public class ReplicationServlet extends BasicServlet { } // Add a row in the table - replicationInProgress.addRow(filename, target.getPeerName(), target.getSourceTableId(), target.getRemoteIdentifier(), status); + replicationInProgress.addRow(null == path ? ".../" + filename : path, target.getPeerName(), target.getSourceTableId(), target.getRemoteIdentifier(), status); } replicationInProgress.generate(req, sb);
