This is an automated email from the ASF dual-hosted git repository. tanxinyu pushed a commit to branch jira6061 in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit d0ed322fa0071a696269e699aaf4bd69d630b085 Author: OneSizeFitQuorum <[email protected]> AuthorDate: Fri Aug 4 23:40:44 2023 +0800 fix Signed-off-by: OneSizeFitQuorum <[email protected]> --- .../src/test/java/org/apache/iotdb/consensus/iot/ReplicateTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iotdb-core/consensus/src/test/java/org/apache/iotdb/consensus/iot/ReplicateTest.java b/iotdb-core/consensus/src/test/java/org/apache/iotdb/consensus/iot/ReplicateTest.java index 916f91f3ac5..2579c7098c3 100644 --- a/iotdb-core/consensus/src/test/java/org/apache/iotdb/consensus/iot/ReplicateTest.java +++ b/iotdb-core/consensus/src/test/java/org/apache/iotdb/consensus/iot/ReplicateTest.java @@ -115,8 +115,7 @@ public class ReplicateTest { Files.delete(configurationPath); } Files.move(tmpConfigurationPath, configurationPath); - } catch (IOException e) { - logger.error("Unexpected error occurs when persisting configuration", e); + } catch (IOException ignored) { } } @@ -291,7 +290,8 @@ public class ReplicateTest { private void findPortAvailable(int i) { long start = System.currentTimeMillis(); while (System.currentTimeMillis() - start < timeout) { - try (ServerSocket ignored = new ServerSocket(this.peers.get(i).getEndpoint().port)) { + try (ServerSocket socket = new ServerSocket(this.peers.get(i).getEndpoint().port)) { + socket.setReuseAddress(true); // success return; } catch (IOException e) {
