Skip to content

Commit

Permalink
fix compilation failure in java-log-storage-impl
Browse files Browse the repository at this point in the history
  • Loading branch information
linxin committed Nov 20, 2024
1 parent 669860c commit 7632c0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
Expand Down Expand Up @@ -159,7 +158,7 @@ public void testLearnerServices() throws Exception {
}
}
assertEquals(0, this.cluster.getFsmByPeer(learner3).getLogs().size());
List<PeerId> oldLearners = new ArrayList<PeerId>(this.conf.getLearners());
List<PeerId> oldLearners = new ArrayList<PeerId>(this.conf.getLearners().keySet());
assertEquals(oldLearners, this.cliService.getLearners(this.groupId, this.conf));
assertEquals(oldLearners, this.cliService.getAliveLearners(this.groupId, this.conf));

Expand Down Expand Up @@ -281,7 +280,7 @@ public void testSnapshot() throws Exception {
for (final PeerId peer : this.conf) {
assertTrue(this.cliService.snapshot(this.groupId, peer).isOk());
}
for (final PeerId peer : this.conf.getLearners()) {
for (final PeerId peer : this.conf.getLearners().keySet()) {
assertTrue(this.cliService.snapshot(this.groupId, peer).isOk());
}
Thread.sleep(1000);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
Expand Down

0 comments on commit 7632c0f

Please sign in to comment.