Skip to content

Commit

Permalink
Fix Test Regression
Browse files Browse the repository at this point in the history
  • Loading branch information
madrob committed May 2, 2022
1 parent 48085d9 commit c8c2a4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ protected QuorumPeer getQuorumPeer() throws SaslException {
@Override
public void start() {
super.start();
boundClientPort = getClientPort();
boundSecureClientPort = getSecureClientPort();
LOG.info("ZK Server {} started", this);
started.complete(null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2139,6 +2139,13 @@ public int getClientPort() {
return -1;
}

public int getSecureClientPort() {
if (secureCnxnFactory != null) {
return secureCnxnFactory.getLocalPort();
}
return -1;
}

public void setTxnFactory(FileTxnSnapLog factory) {
this.logFactory = factory;
}
Expand Down

0 comments on commit c8c2a4d

Please sign in to comment.