Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#8859] Fix duplicate mapped file in mutil commitlog store path mode. #8897

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Next Next commit
Fix duplicate mapped file in mutil commitlog store path mode.
  • Loading branch information
hexueyuan committed Nov 7, 2024
commit 895445c642ec44f843a36f1c718cacc93d43f853
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public class MultiPathMappedFileQueue extends MappedFileQueue {
private final Supplier<Set<String>> fullStorePathsSupplier;

public MultiPathMappedFileQueue(MessageStoreConfig messageStoreConfig, int mappedFileSize,
AllocateMappedFileService allocateMappedFileService,
Supplier<Set<String>> fullStorePathsSupplier) {
AllocateMappedFileService allocateMappedFileService,
Supplier<Set<String>> fullStorePathsSupplier) {
super(messageStoreConfig.getStorePathCommitLog(), mappedFileSize, allocateMappedFileService);
this.config = messageStoreConfig;
this.fullStorePathsSupplier = fullStorePathsSupplier;
Expand Down Expand Up @@ -81,7 +81,7 @@ public MappedFile tryCreateMappedFile(long createOffset) {
Set<String> storePath = getPaths();
Set<String> readonlyPathSet = getReadonlyPaths();
Set<String> fullStorePaths =
fullStorePathsSupplier == null ? Collections.emptySet() : fullStorePathsSupplier.get();
fullStorePathsSupplier == null ? Collections.emptySet() : fullStorePathsSupplier.get();


HashSet<String> availableStorePath = new HashSet<>(storePath);
Expand Down
Loading