String tserver = conn.instanceOperations().getTabletServers().iterator().next();
do {
ArrayList<ActiveScan> scans = new ArrayList<ActiveScan>(conn.instanceOperations().getActiveScans(tserver));
Iterator<ActiveScan> iter = scans.iterator();
while (iter.hasNext()) {
ActiveScan scan = iter.next();
// Remove scans not against our table and not owned by us
if (!"root".equals(scan.getUser()) || !tableName.equals(scan.getTable())) {
iter.remove();
}
}
if (!scans.isEmpty()) {