File tree Expand file tree Collapse file tree
zkfacade/src/main/java/com/yahoo/vespa/curator
zookeeper-client-common/src/main/java/com/yahoo/vespa/zookeeper/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 165165 <stax2-api .vespa.version>4.2.2</stax2-api .vespa.version>
166166 <xerces .vespa.version>2.12.2</xerces .vespa.version>
167167 <zero-allocation-hashing .vespa.version>0.16</zero-allocation-hashing .vespa.version>
168- <zookeeper .client.vespa.version>3.9.4 </zookeeper .client.vespa.version>
168+ <zookeeper .client.vespa.version>3.9.5 </zookeeper .client.vespa.version>
169169 <zookeeper .client.artifactId>zookeeper-server-${zookeeper.client.vespa.version} </zookeeper .client.artifactId>
170170 <vafer .jdependency.vespa.version>2.10</vafer .jdependency.vespa.version>
171171
Original file line number Diff line number Diff line change 2626import org .apache .zookeeper .CreateMode ;
2727import org .apache .zookeeper .KeeperException ;
2828import org .apache .zookeeper .client .ZKClientConfig ;
29+ import org .apache .zookeeper .common .ConfigException ;
2930import org .apache .zookeeper .data .Stat ;
3031import org .apache .zookeeper .server .EphemeralType ;
3132import org .apache .zookeeper .server .quorum .QuorumPeerConfig ;
@@ -138,7 +139,7 @@ private static ZKClientConfig createClientConfig(Optional<File> clientConfigFile
138139 if (clientConfigFile .isPresent ()) {
139140 try {
140141 return new ZkClientConfigBuilder ().toConfig (clientConfigFile .get ().toPath ());
141- } catch (QuorumPeerConfig . ConfigException e ) {
142+ } catch (ConfigException e ) {
142143 throw new RuntimeException ("Unable to create ZooKeeper client config file " + clientConfigFile .get ());
143144 } catch (IOException e ) {
144145 throw new UncheckedIOException (e );
Original file line number Diff line number Diff line change 44import com .yahoo .security .tls .TlsContext ;
55import com .yahoo .vespa .zookeeper .tls .VespaZookeeperTlsContextUtils ;
66import org .apache .zookeeper .client .ZKClientConfig ;
7- import org .apache .zookeeper .server . quorum . QuorumPeerConfig ;
7+ import org .apache .zookeeper .common . ConfigException ;
88
99import java .io .IOException ;
1010import java .nio .file .Files ;
@@ -41,13 +41,13 @@ public ZkClientConfigBuilder() {
4141 this .tlsContext = tlsContext ;
4242 }
4343
44- public ZKClientConfig toConfig (Path configFile ) throws IOException , QuorumPeerConfig . ConfigException {
44+ public ZKClientConfig toConfig (Path configFile ) throws IOException , ConfigException {
4545 String configString = toConfigString ();
4646 Files .createDirectories (configFile .getParent ());
4747 Path tempFile = Files .createTempFile (configFile .toAbsolutePath ().getParent (), "." + configFile .getFileName (), ".tmp" );
4848 Files .writeString (tempFile , configString );
4949 Files .move (tempFile , configFile , StandardCopyOption .ATOMIC_MOVE );
50- return new ZKClientConfig (configFile . toString () );
50+ return new ZKClientConfig (configFile );
5151 }
5252
5353 public ZKClientConfig toConfig () {
You can’t perform that action at this time.
0 commit comments