[ https://issues.apache.org/jira/browse/ZOOKEEPER-1304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Hunt resolved ZOOKEEPER-1304. ------------------------------------- Resolution: Duplicate > [IGNORE THIS --- MOVING TO BOOKKEEPER JIRA] publish and subscribe methods get > ServiceDownException even when the hubs, bookies, and zookeepers are running > ---------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: ZOOKEEPER-1304 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1304 > Project: ZooKeeper > Issue Type: Bug > Affects Versions: 3.5.0 > Environment: CentOS 5.5 for all servers and workstations (however > zookeeper, bookies, and hubs are all built in Ubuntu 11); > OpenJDK Runtime Environment (IcedTea6 1.9.10) (rhel-1.23.1.9.10.el5_7-i386); > OpenJDK Client VM (build 19.0-b09, mixed mode); > Reporter: Daniel Kim > Original Estimate: 336h > Remaining Estimate: 336h > > **[Sorry. I don't know how to delete an issue that is already submitted. I > just learned of the Bookkeeper jira, and I will submit this issue there > instead. You can all ignore this issue.] > Since I couldn't finish building all hedwig components in CentOS, I built it > successfully in Ubuntu, then I deployed it to CentOS (no ubuntu image in my > company's cloud). I configured zookeeper, bookies and hubs as they were > described in the documentations. First, I copied TestPubSubClient.java's > publish and subscribe tests into my own test code. I also had to create > another object that extends ClientConfiguration. I named it "HedwigConf", and > overwrote getDefaultServerHedwigSocketAddress() method because the server was > not on the same machine as the workstation. I targetted the right host and > publish seemed to work. However, it throws me ServiceDownException for > publish sometimes. I checked the logs of the hubs. They seem to have > connected ok with the bookies. There was no error or warning there. However, > the problem seemed to exist in bookies and zookeeper. This was found in the > zookeeper log: "Got user-level KeeperException when processing > sessionid:0x----------- type:create cxid:0x5 zxid:0x29 txntype:-1 reqpath:n/a > Error Path:/hedwig/standalone/topics Error:KeeperErrorCode = NoNode for > /hedwig/standalone/topics". Normally this znode path is created > automatically. Also, some bookies complained this: "WARN [NIOServerFactory] > org.apache.bookkeeper.proto.NIOServerFactory - Exception in server socket > loop: /0:0:0:0:0:0:0:0 > java.lang.NullPointerException". For some reason, this problem comes and > goes. Sometimes everything just works and the new topic is saved in a new > znode, and the message is saved in bookie(s). I spent hours trying to > recreate this yesterday, but I couldn't. Now it is back again. Subscribe > seems to have the similar issue. -- This message was sent by Atlassian JIRA (v6.1#6144)