Skip to content

Commit

Permalink
Fix breaking changes
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Singh <ssashish@amazon.com>
  • Loading branch information
ashking94 committed Sep 4, 2024
1 parent df8fe27 commit a05496f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ public class RemoteSegmentStoreDirectoryFactory implements IndexStorePlugin.Dire

private final ThreadPool threadPool;

// Added for passing breaking change check
public RemoteSegmentStoreDirectoryFactory(Supplier<RepositoriesService> repositoriesService, ThreadPool threadPool) {
this(repositoriesService, threadPool, null);
}

public RemoteSegmentStoreDirectoryFactory(
Supplier<RepositoriesService> repositoriesService,
ThreadPool threadPool,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ public class RemoteStoreLockManagerFactory {
private final Supplier<RepositoriesService> repositoriesService;
private final String segmentsPathFixedPrefix;

// Added for passing breaking change check
public RemoteStoreLockManagerFactory(Supplier<RepositoriesService> repositoriesService) {
this.repositoriesService = repositoriesService;
this.segmentsPathFixedPrefix = null;
}

public RemoteStoreLockManagerFactory(Supplier<RepositoriesService> repositoriesService, String segmentsPathFixedPrefix) {
this.repositoriesService = repositoriesService;
this.segmentsPathFixedPrefix = segmentsPathFixedPrefix;
Expand All @@ -47,6 +53,17 @@ public RemoteStoreLockManager newLockManager(
return newLockManager(repositoriesService.get(), repositoryName, indexUUID, shardId, pathStrategy, segmentsPathFixedPrefix);
}

// Added for passing breaking change check
public static RemoteStoreMetadataLockManager newLockManager(
RepositoriesService repositoriesService,
String repositoryName,
String indexUUID,
String shardId,
RemoteStorePathStrategy pathStrategy
) {
return newLockManager(repositoriesService, repositoryName, indexUUID, shardId, pathStrategy, null);
}

public static RemoteStoreMetadataLockManager newLockManager(
RepositoriesService repositoriesService,
String repositoryName,
Expand Down

0 comments on commit a05496f

Please sign in to comment.