final List<String> files = serverFiles.getValue();
threadPool.submit(new Runnable() {
@Override
public void run() {
try {
Iface logger = ThriftUtil.getClient(new MutationLogger.Client.Factory(), server, Property.LOGGER_PORT, Property.TSERV_LOGGER_TIMEOUT,
ServerConfiguration.getSystemConfiguration());
try {
count.addAndGet(files.size());
log.debug(String.format("removing %d files from %s", files.size(), server));
if (files.size() > 0) {
log.debug("deleting files on logger " + server);
for (String file : files) {
log.debug("Deleting " + file);
}
logger.remove(null, SecurityConstants.getSystemCredentials(), files);
synchronized (status.currentLog) {
status.currentLog.deleted += files.size();
}
}
} finally {