File tree Expand file tree Collapse file tree 6 files changed +0
-20
lines changed
server/src/main/java/org/elasticsearch Expand file tree Collapse file tree 6 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -76,12 +76,6 @@ public class KeyStoreWrapper implements SecureSettings {
7676
7777 public static final String PROMPT = "Enter password for the elasticsearch keystore : " ;
7878
79- /** An identifier for the type of data that may be stored in a keystore entry. */
80- private enum EntryType {
81- STRING ,
82- FILE
83- }
84-
8579 /** An entry in the keystore. The bytes are opaque and interpreted based on the entry type. */
8680 private static class Entry implements Writeable {
8781 final byte [] bytes ;
Original file line number Diff line number Diff line change 3232 */
3333public class PrioritizedEsThreadPoolExecutor extends EsThreadPoolExecutor {
3434
35- private static final TimeValue NO_WAIT_TIME_VALUE = TimeValue .timeValueMillis (0 );
3635 private final AtomicLong insertionOrder = new AtomicLong ();
3736 private final Queue <Runnable > current = ConcurrentCollections .newQueue ();
3837 private final ScheduledExecutorService timer ;
Original file line number Diff line number Diff line change @@ -230,7 +230,6 @@ private final class Visitor extends StoredFieldVisitor {
230230 final LeafReader leafReader ;
231231 final StoredFields storedFields ;
232232 private int leftToVisit = 2 ;
233- private final BytesRef spare = new BytesRef ();
234233 private String routing ;
235234 private String id ;
236235
Original file line number Diff line number Diff line change 2727import org .elasticsearch .index .seqno .SequenceNumbers ;
2828import org .elasticsearch .index .shard .RemoveCorruptedShardDataCommand ;
2929import org .elasticsearch .index .shard .ShardPath ;
30- import org .elasticsearch .xcontent .NamedXContentRegistry ;
3130
3231import java .io .IOException ;
3332import java .nio .channels .FileChannel ;
4645public class TruncateTranslogAction {
4746
4847 protected static final Logger logger = LogManager .getLogger (TruncateTranslogAction .class );
49- private final NamedXContentRegistry namedXContentRegistry ;
50-
51- public TruncateTranslogAction (NamedXContentRegistry namedXContentRegistry ) {
52- this .namedXContentRegistry = namedXContentRegistry ;
53- }
5448
5549 public static Tuple <RemoveCorruptedShardDataCommand .CleanStatus , String > getCleanStatus (
5650 ShardPath shardPath ,
Original file line number Diff line number Diff line change 3030import org .elasticsearch .core .Nullable ;
3131import org .elasticsearch .core .Releasable ;
3232import org .elasticsearch .core .Releasables ;
33- import org .elasticsearch .core .TimeValue ;
3433import org .elasticsearch .threadpool .ThreadPool ;
3534import org .elasticsearch .tracing .Tracer ;
3635import org .elasticsearch .transport .TaskTransportChannel ;
5857import java .util .function .Consumer ;
5958
6059import static org .elasticsearch .core .Strings .format ;
61- import static org .elasticsearch .core .TimeValue .timeValueMillis ;
6260import static org .elasticsearch .http .HttpTransportSettings .SETTING_HTTP_MAX_HEADER_SIZE ;
6361
6462/**
@@ -68,8 +66,6 @@ public class TaskManager implements ClusterStateApplier {
6866
6967 private static final Logger logger = LogManager .getLogger (TaskManager .class );
7068
71- private static final TimeValue WAIT_FOR_COMPLETION_POLL = timeValueMillis (100 );
72-
7369 /** Rest headers that are copied to the task */
7470 private final String [] taskHeaders ;
7571 private final ThreadPool threadPool ;
Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ public abstract class RemoteClusterAware {
3333 public static final String LOCAL_CLUSTER_GROUP_KEY = "" ;
3434
3535 protected final Settings settings ;
36- private final ClusterNameExpressionResolver clusterNameResolver ;
3736 private final String nodeName ;
3837 private final boolean isRemoteClusterClientEnabled ;
3938
@@ -43,7 +42,6 @@ public abstract class RemoteClusterAware {
4342 */
4443 protected RemoteClusterAware (Settings settings ) {
4544 this .settings = settings ;
46- this .clusterNameResolver = new ClusterNameExpressionResolver ();
4745 this .nodeName = Node .NODE_NAME_SETTING .get (settings );
4846 this .isRemoteClusterClientEnabled = DiscoveryNode .isRemoteClusterClient (settings );
4947 }
You can’t perform that action at this time.
0 commit comments