Search in sources :

Example 11 with RunningCompaction

use of org.apache.accumulo.core.util.compaction.RunningCompaction in project accumulo by apache.

the class CompactionCoordinator method compactionFailed.

void compactionFailed(Map<ExternalCompactionId, KeyExtent> compactions) {
    compactionFinalizer.failCompactions(compactions);
    compactions.forEach((k, v) -> {
        final RunningCompaction rc = RUNNING.get(k);
        if (null != rc) {
            RUNNING.remove(k, rc);
            COMPLETED.put(k, rc);
        } else {
            LOG.warn("Compaction failed called by Compactor for {}, but no running compaction for that id.", k);
        }
    });
}
Also used : RunningCompaction(org.apache.accumulo.core.util.compaction.RunningCompaction)

Aggregations

RunningCompaction (org.apache.accumulo.core.util.compaction.RunningCompaction)11 TServerInstance (org.apache.accumulo.core.metadata.TServerInstance)6 TabletClientService (org.apache.accumulo.core.tabletserver.thrift.TabletClientService)6 HostAndPort (org.apache.accumulo.core.util.HostAndPort)6 ServerAddress (org.apache.accumulo.server.rpc.ServerAddress)6 ArrayList (java.util.ArrayList)5 AccumuloConfiguration (org.apache.accumulo.core.conf.AccumuloConfiguration)5 ThriftUtil (org.apache.accumulo.core.rpc.ThriftUtil)5 Client (org.apache.accumulo.core.tabletserver.thrift.TabletClientService.Client)5 AbstractServer (org.apache.accumulo.server.AbstractServer)5 ServerContext (org.apache.accumulo.server.ServerContext)5 LiveTServerSet (org.apache.accumulo.server.manager.LiveTServerSet)5 AuditedSecurityOperation (org.apache.accumulo.server.security.AuditedSecurityOperation)5 Test (org.junit.Test)5 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)5 TreeSet (java.util.TreeSet)4 AccumuloSecurityException (org.apache.accumulo.core.client.AccumuloSecurityException)4 TCredentials (org.apache.accumulo.core.securityImpl.thrift.TCredentials)4 TCompactionQueueSummary (org.apache.accumulo.core.tabletserver.thrift.TCompactionQueueSummary)4 TExternalCompactionJob (org.apache.accumulo.core.tabletserver.thrift.TExternalCompactionJob)3