[
https://issues.apache.org/jira/browse/ZOOKEEPER-1304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152472#comment-13152472
]
Daniel Kim commented on ZOOKEEPER-1304:
---------------------------------------
Yes, but someone asked me to write a jira here in zookeeper. I will move it if
it seems better that way.
> 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
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira