NoSuchElementException when all servers are down #1

Open
robey opened this Issue May 19, 2010 · 0 comments

1 participant

@robey
Owner

If I give all down memcache servers to smile (bogus ports on
localhost), and do some sets, they throw:

NoSuchElementException

java.util.NoSuchElementException
at java.util.TreeMap.key(TreeMap.java:1206)
at java.util.TreeMap.firstKey(TreeMap.java:267)
at scala.collection.jcl.SortedMapWrapper$class.firstKey(SortedMapWrapper.scala:23)
at scala.collection.jcl.TreeMap.firstKey(TreeMap.scala:17)
at net.lag.smile.KetamaNodeLocator.findNode(KetamaNodeLocator.scala:43)
at net.lag.smile.MemcacheClient.nodeForKey(MemcacheClient.scala:405)
at net.lag.smile.MemcacheClient.withNode(MemcacheClient.scala:410)
at net.lag.smile.MemcacheClient.getData(MemcacheClient.scala:71)
at net.lag.smile.MemcacheClient.get(MemcacheClient.scala:85)
at com.twitter.hosebird.logoutremote.RemoteUserDedup.login(RemoteUserDedup.scala:132)
at com.twitter.hosebird.logoutremote.RemoteUserDedup$$anonfun$act$1$$anonfun$apply$1$$anonfun$1.apply(RemoteUserDedup.scala:51)
at com.twitter.hosebird.logoutremote.RemoteUserDedup$$anonfun$act$1$$anonfun$apply$1$$anonfun$1.apply(RemoteUserDedup.scala:51)
at com.twitter.hosebird.Duration$class.duration(Duration.scala:9)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment