incubator-accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John W Vines <john.w.vi...@ugov.gov>
Subject Re: ZooSession infinite loop
Date Wed, 09 Nov 2011 15:28:35 GMT


----- Original Message -----
| From: "Keith Massey" <keith.massey@digitalreasoning.com>
| To: accumulo-user@incubator.apache.org
| Sent: Wednesday, November 9, 2011 10:13:52 AM
| Subject: ZooSession infinite loop
| A user of our recently filed a bug with us because our code hung
| forever
| when she gave us an address for a zookeeper that was not running. I
| think I've traced the problem into
| org.apache.accumulo.core.zookeeper.ZooSession.connect(). If the
| connection to the zookeeper fails it throws a ConnectException, which
| gets caught by the catch (IOException) block, which logs the message
| and
| keeps trying infinitely. It's definitely user error passing in an
| invalid zookeeper. But shouldn't that method bail out after some time?
| Thanks.
| 
| Keith

I agree that it should fail elegantly. Do you want me to create a ticket for it or can you?

John

Mime
View raw message