Skip to content

Commit

Permalink
fix compile issues
Browse files Browse the repository at this point in the history
Signed-off-by: bansvaru <bansvaru@amazon.com>
  • Loading branch information
linuxpi committed Sep 4, 2023
1 parent 04d220d commit 74890da
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion server/src/main/java/org/opensearch/node/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,8 @@ protected Node(
repositoriesServiceReference::get,
settings,
clusterService.getClusterSettings(),
threadPool::preciseRelativeTimeInNanos
threadPool::preciseRelativeTimeInNanos,
threadPool
);
} else {
remoteClusterStateService = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,8 @@ public void testDataOnlyNodePersistence() throws Exception {
),
settings,
new ClusterSettings(settings, ClusterSettings.BUILT_IN_CLUSTER_SETTINGS),
() -> 0L
() -> 0L,
new TestThreadPool(getClass().getName())
);
} else {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ public void setup() {
repositoriesServiceSupplier,
settings,
new ClusterSettings(settings, ClusterSettings.BUILT_IN_CLUSTER_SETTINGS),
new TestThreadPool(getClass().getName()),
() -> 0L
() -> 0L,
new TestThreadPool(getClass().getName())
);
}

Expand All @@ -105,8 +105,8 @@ public void testFailInitializationWhenRemoteStateDisabled() throws IOException {
repositoriesServiceSupplier,
settings,
new ClusterSettings(settings, ClusterSettings.BUILT_IN_CLUSTER_SETTINGS),
new TestThreadPool(getClass().getName()),
() -> 0L
() -> 0L,
new TestThreadPool(getClass().getName())
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import org.opensearch.gateway.remote.RemoteClusterStateService;
import org.opensearch.plugins.MetadataUpgrader;
import org.opensearch.repositories.RepositoriesService;
import org.opensearch.threadpool.TestThreadPool;
import org.opensearch.threadpool.ThreadPool;
import org.opensearch.transport.TransportService;

Expand Down Expand Up @@ -121,7 +122,8 @@ public void start(
),
settings,
new ClusterSettings(settings, ClusterSettings.BUILT_IN_CLUSTER_SETTINGS),
() -> 0L
() -> 0L,
new TestThreadPool(getClass().getName())
);
} else {
return null;
Expand Down

0 comments on commit 74890da

Please sign in to comment.