Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
b78f45a
WIP
keith-turner Mar 13, 2026
08796e6
sends compaction jobs from TGW to coordinator via RPC
keith-turner Mar 13, 2026
69b0474
Merge branch 'main' into dist-coord
keith-turner Mar 16, 2026
e5a5384
First stab at distributing coordinator, its not really working yet
keith-turner Mar 17, 2026
7909a0c
Moves set of shutting down tservers from manager memory to ZK
keith-turner Mar 18, 2026
eeac89f
format code
keith-turner Mar 18, 2026
c7eb219
Removed specialization for meta fate in the manager
keith-turner Mar 18, 2026
d73919c
fix compile error
keith-turner Mar 20, 2026
b091f7b
fix test
keith-turner Mar 20, 2026
380e551
Makes fate client available on all managers
keith-turner Mar 20, 2026
a2380b2
Merge branch 'main' into dist-coord
keith-turner Mar 21, 2026
6fbdfe0
Merge branch 'fate-clients-on-all-managers' into dist-coord
keith-turner Mar 21, 2026
714a8f1
fix test
keith-turner Mar 21, 2026
7444885
Merge branch 'main' into dist-coord
keith-turner Mar 23, 2026
eb689db
WIP
keith-turner Mar 23, 2026
37b2383
removes CoordinatorSummaryLogger
keith-turner Mar 23, 2026
1b540d0
passes group and address from compactor for stats
keith-turner Mar 24, 2026
5e06811
Removes the completed set from the coordinator
keith-turner Mar 24, 2026
36b0fc1
removes coordinator RPC to obtain running cache
keith-turner Mar 24, 2026
88db7a3
Removes coordinator cancel RPC
keith-turner Mar 24, 2026
e4fdfb8
fixes resource group IT (#6233)
keith-turner Mar 23, 2026
131b1b6
Compute compaction related suggestions in Monitor (#6239)
dlmarion Mar 24, 2026
6f1a4a4
Trivial updates to release candidate script
ctubbsii Mar 24, 2026
00758f4
Fix shellcheck
ctubbsii Mar 24, 2026
6bf7fef
Merge branch 'remove-coord-cancel' into dist-coord
keith-turner Mar 24, 2026
414ebda
Merge remote-tracking branch 'upstream/main' into dist-coord
keith-turner Mar 24, 2026
74dd272
Merge branch 'remove-coordinator-running-rpc' into dist-coord
keith-turner Mar 24, 2026
fbbf226
Merge branch 'remove-completed-set-from-coordinator' into dist-coord
keith-turner Mar 24, 2026
b44ad8a
Merge branch 'pass-rg-from-compactor' into dist-coord
keith-turner Mar 24, 2026
a53fe13
Merge branch 'remove-coordinator-summary-logger' into dist-coord
keith-turner Mar 24, 2026
4db7b62
removes unused method
keith-turner Mar 24, 2026
3ccccad
Removes running cache from the coordinator
keith-turner Mar 25, 2026
f37a24d
Merge branch 'remove-running-cache' into dist-coord
keith-turner Mar 25, 2026
3251cf7
Merge branch 'main' into dist-coord
keith-turner Mar 26, 2026
b67fb2d
WIP
keith-turner Mar 27, 2026
4839086
WIP
keith-turner Mar 27, 2026
6ba1106
WIP
keith-turner Mar 27, 2026
0ceea2d
Removes getAsync from compaction jobs queues
keith-turner Mar 27, 2026
ad67301
Merge branch 'remove-getasync' into dist-coord
keith-turner Mar 27, 2026
f99275c
WIP
keith-turner Mar 27, 2026
3c95939
WIP
keith-turner Mar 27, 2026
b42a007
WIP
keith-turner Mar 27, 2026
0c331e6
WIP
keith-turner Mar 27, 2026
2b6cbb6
Removes in memory set from dead compaction detector
keith-turner Mar 31, 2026
6ad2090
consolidate code
keith-turner Mar 31, 2026
7361328
Merge branch 'main' into dist-coord
keith-turner Apr 1, 2026
8d9aba7
Merge branch 'tmp-file-cleanup' into dist-coord
keith-turner Apr 1, 2026
0cac83f
WIP
keith-turner Apr 1, 2026
fb401da
fix build
keith-turner Apr 1, 2026
e6310dc
do some TODOs
keith-turner Apr 1, 2026
8b26c00
fix bug with adding jobs to queue found by CompactionIT
keith-turner Apr 1, 2026
1968d41
fixes manager failover and BackupManagerIT
keith-turner Apr 1, 2026
88d48bd
remove logging config changes
keith-turner Apr 1, 2026
a4050d9
fixes flaky fate cancel command IT
keith-turner Apr 1, 2026
f8a98f4
Merge branch 'fix-flaky-fate-test' into dist-coord
keith-turner Apr 1, 2026
2c5fb3b
fixes ExitCodesIT
keith-turner Apr 1, 2026
b27b0bf
Merge branch 'main' into dist-coord
keith-turner Apr 1, 2026
69c7685
fixes bug found by CompactionConfigChangeIT
keith-turner Apr 2, 2026
e7dfa1c
fix bug found by ExitCodesIT
keith-turner Apr 2, 2026
fbef9c2
Merge branch 'main' into dist-coord
keith-turner Apr 2, 2026
a57b4f6
Merge branch 'main' into dist-coord
keith-turner Apr 2, 2026
789615d
remove wrong TODOs
keith-turner Apr 3, 2026
363252a
do TODOs
keith-turner Apr 3, 2026
5d4f0f5
do TODOs
keith-turner Apr 3, 2026
7c45850
Adds missig opentelem library to tarball
keith-turner Apr 3, 2026
3908c7e
Merge branch 'otel-common' into dist-coord
keith-turner Apr 3, 2026
b63ff7f
Merge remote-tracking branch 'upstream/main' into dist-coord
keith-turner Apr 6, 2026
b84f304
fixes hang in SplitIT due to dead compaction
keith-turner Apr 6, 2026
65d6a13
Merge branch 'fix-split-it' into dist-coord
keith-turner Apr 6, 2026
f4b8814
fixes Fate burning CPU when no ranges assigned
keith-turner Apr 6, 2026
351e542
Merge remote-tracking branch 'upstream/main' into dist-coord
keith-turner Apr 6, 2026
d4040f6
spread reservation work across all coordinators
keith-turner Apr 7, 2026
4fcd721
handles same host+port in different resource groups in LiveTServerSet
keith-turner Apr 7, 2026
c2fd44b
Merge branch 'accumulo-6298' into dist-coord
keith-turner Apr 7, 2026
1c60481
Update server/base/src/main/java/org/apache/accumulo/server/metadata/…
keith-turner Apr 7, 2026
94f076b
Update server/manager/src/main/java/org/apache/accumulo/manager/compa…
keith-turner Apr 7, 2026
d40c39f
code review update
keith-turner Apr 7, 2026
b49b1a3
renamed RemovedCompaction to OrphanedCompaction
keith-turner Apr 8, 2026
55f50d8
remove import
keith-turner Apr 8, 2026
a7503c9
improve bulknewIT
keith-turner Apr 8, 2026
d9f9046
maybe fix metrics
keith-turner Apr 8, 2026
5cd4897
Merge remote-tracking branch 'upstream/main' into dist-coord
keith-turner Apr 9, 2026
73f87d0
add TODO
keith-turner Apr 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/src/main/java/org/apache/accumulo/core/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public class Constants {
public static final String ZMANAGER_TICK = ZMANAGERS + "/tick";
public static final String ZMANAGER_ASSIGNMENTS = ZMANAGERS + "/assignments";
public static final String ZMANAGER_FATE_ASSIGNMENTS = ZMANAGER_ASSIGNMENTS + "/fate";
public static final String ZMANAGER_COORDINATOR = ZMANAGER_ASSIGNMENTS + "/coordinators";

public static final String ZGC = "/gc";
public static final String ZGC_LOCK = ZGC + "/lock";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ Map<String,String> modifyProperties(Consumer<Map<String,String>> mapMutator)
* @return set of servers of the supplied type
* @since 4.0.0
*/
// TODO this needs to change for multiple managers
Set<ServerId> getServers(ServerId.Type type);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import java.util.function.Consumer;
import java.util.function.Predicate;
import java.util.function.Supplier;
import java.util.stream.Stream;

import org.apache.accumulo.core.client.ConditionalWriter;
import org.apache.accumulo.core.client.admin.TabletAvailability;
Expand Down Expand Up @@ -669,4 +670,24 @@ default void removeBulkLoadInProgressFlag(String path) {
default ScanServerRefStore scanServerRefs() {
throw new UnsupportedOperationException();
}

record OrphanedCompaction(ExternalCompactionId id, TableId table, String dir) {
}

/**
* Tracks compactions that were removed from the metadata table but may still be running on
* compactors. The tmp files associated with these compactions can eventually be removed when the
* compaction is no longer running.
*/
interface OrphanedCompactionStore {
Stream<OrphanedCompaction> list();

void add(Collection<OrphanedCompaction> orphanedCompactions);

void delete(Collection<OrphanedCompaction> orphanedCompactions);
}

default OrphanedCompactionStore orphanedCompactions() {
throw new UnsupportedOperationException();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -547,4 +547,36 @@ public static String getRowPrefix() {

}

/**
* Holds information about compactions that were deleted from tablets metadata by split or merge
* operations. These may still be running and may have tmp files that need to be cleaned up.
*/
public static class OrphanedCompactionSection {
private static final Section section =
new Section(RESERVED_PREFIX + "ocomp", true, RESERVED_PREFIX + "ocomq", false);

public static Range getRange() {
return section.getRange();
}

public static String getRowPrefix() {
return section.getRowPrefix();
}

public static Ample.OrphanedCompaction decodeRow(String row) {
String[] fields = row.split("#");
Preconditions.checkArgument(fields.length == 4);
Preconditions.checkArgument(getRowPrefix().equals(fields[0]));
return new Ample.OrphanedCompaction(ExternalCompactionId.from(fields[1]),
TableId.of(fields[2]), fields[3]);
}

public static String encodeRow(Ample.OrphanedCompaction rc) {
// put the compaction id first in the row because its uuid will spread out nicely and avoid
// hot spotting
return getRowPrefix() + "#" + rc.id().canonical() + "#" + rc.table().canonical() + "#"
+ rc.dir();

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import static org.apache.accumulo.core.util.threads.ThreadPoolNames.COMPACTOR_RUNNING_COMPACTION_IDS_POOL;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
Expand Down Expand Up @@ -262,7 +261,7 @@ public static List<ServerId> getCompactionsRunningOnCompactors(ClientContext con
}
}

public static Collection<ExternalCompactionId>
public static Set<ExternalCompactionId>
getCompactionIdsRunningOnCompactors(ClientContext context) {
final ExecutorService executor = ThreadPools.getServerThreadPools()
.getPoolBuilder(COMPACTOR_RUNNING_COMPACTION_IDS_POOL).numCoreThreads(16).build();
Expand Down

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading