Skip to content
Merged
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ public static class Builder {
private Clock clock;
private IntConsumer executorThreadUpdater = threadCount -> {
};
private String threadNamePrefix;

public Builder clock(Clock newClock) {
clock = newClock;
Expand Down Expand Up @@ -138,11 +137,6 @@ public Builder executorThreadUpdater(IntConsumer newUpdater) {
return this;
}

public Builder threadNamePrefix(String threadPrefix) {
this.threadNamePrefix = threadPrefix;
return this;
}

public ReplicationSupervisor build() {
if (replicationConfig == null || datanodeConfig == null) {
ConfigurationSource conf = new OzoneConfiguration();
Expand All @@ -162,6 +156,7 @@ public ReplicationSupervisor build() {
if (executor == null) {
LOG.info("Initializing replication supervisor with thread count = {}",
replicationConfig.getReplicationMaxStreams());
String threadNamePrefix = context != null ? context.getThreadNamePrefix() : "";
ThreadFactory threadFactory = new ThreadFactoryBuilder()
.setDaemon(true)
.setNameFormat(threadNamePrefix + "ContainerReplicationThread-%d")
Expand Down