Skip to content

Commit a05496f

Browse files
committed
Fix breaking changes
Signed-off-by: Ashish Singh <[email protected]>
1 parent df8fe27 commit a05496f

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

server/src/main/java/org/opensearch/index/store/RemoteSegmentStoreDirectoryFactory.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ public class RemoteSegmentStoreDirectoryFactory implements IndexStorePlugin.Dire
4444

4545
private final ThreadPool threadPool;
4646

47+
// Added for passing breaking change check
48+
public RemoteSegmentStoreDirectoryFactory(Supplier<RepositoriesService> repositoriesService, ThreadPool threadPool) {
49+
this(repositoriesService, threadPool, null);
50+
}
51+
4752
public RemoteSegmentStoreDirectoryFactory(
4853
Supplier<RepositoriesService> repositoriesService,
4954
ThreadPool threadPool,

server/src/main/java/org/opensearch/index/store/lockmanager/RemoteStoreLockManagerFactory.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ public class RemoteStoreLockManagerFactory {
3333
private final Supplier<RepositoriesService> repositoriesService;
3434
private final String segmentsPathFixedPrefix;
3535

36+
// Added for passing breaking change check
37+
public RemoteStoreLockManagerFactory(Supplier<RepositoriesService> repositoriesService) {
38+
this.repositoriesService = repositoriesService;
39+
this.segmentsPathFixedPrefix = null;
40+
}
41+
3642
public RemoteStoreLockManagerFactory(Supplier<RepositoriesService> repositoriesService, String segmentsPathFixedPrefix) {
3743
this.repositoriesService = repositoriesService;
3844
this.segmentsPathFixedPrefix = segmentsPathFixedPrefix;
@@ -47,6 +53,17 @@ public RemoteStoreLockManager newLockManager(
4753
return newLockManager(repositoriesService.get(), repositoryName, indexUUID, shardId, pathStrategy, segmentsPathFixedPrefix);
4854
}
4955

56+
// Added for passing breaking change check
57+
public static RemoteStoreMetadataLockManager newLockManager(
58+
RepositoriesService repositoriesService,
59+
String repositoryName,
60+
String indexUUID,
61+
String shardId,
62+
RemoteStorePathStrategy pathStrategy
63+
) {
64+
return newLockManager(repositoriesService, repositoryName, indexUUID, shardId, pathStrategy, null);
65+
}
66+
5067
public static RemoteStoreMetadataLockManager newLockManager(
5168
RepositoriesService repositoriesService,
5269
String repositoryName,

0 commit comments

Comments
 (0)