Skip to content

Commit 5fed23b

Browse files
committed
fix: initialize MainThread members
Signed-off-by: seekskyworld <djh1813553759@gmail.com>
1 parent 321f84d commit 5fed23b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

zookeeper-server/src/test/java/org/apache/zookeeper/server/quorum/QuorumPeerTestBase.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ public MainThread(int myid, int clientPort, int adminServerPort, String quorumCf
205205

206206
public MainThread(int myid, int clientPort, int adminServerPort, Integer secureClientPort, String quorumCfgSection, String configs, String peerType, boolean writeDynamicConfigFile, String version) throws IOException {
207207
tmpDir = ClientBase.createTmpDir();
208+
this.myid = myid;
209+
this.clientPort = clientPort;
210+
this.quorumCfgSection = quorumCfgSection;
211+
this.otherConfigs = null;
208212
LOG.info("id = {} tmpDir = {} clientPort = {} adminServerPort = {}", myid, tmpDir, clientPort, adminServerPort);
209213

210214
File dataDir = new File(tmpDir, "data");

0 commit comments

Comments
 (0)