Skip to content

Commit

Permalink
fix compile issues
Browse files Browse the repository at this point in the history
Signed-off-by: bansvaru <[email protected]>
  • Loading branch information
linuxpi committed Sep 5, 2023
1 parent 3787b2a commit 57b4ddb
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 57b4ddb

Please sign in to comment.