Skip to content

Commit

Permalink
BOOKKEEPER-285: TestZkSubscriptionManager quits due to NPE, so other …
Browse files Browse the repository at this point in the history
…tests are not run in hedwig server. (sijie)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/bookkeeper/trunk@1346321 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
sijie committed Jun 5, 2012
1 parent a788614 commit 27b6dd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.txt
Expand Up @@ -164,6 +164,8 @@ Release 4.1.0 - 2012-05-31

BOOKKEEPER-146: TestConcurrentTopicAcquisition sometimes hangs (ivank)

BOOKKEEPER-285: TestZkSubscriptionManager quits due to NPE, so other tests are not run in hedwig server. (sijie)

bookkeeper-benchmark/

BOOKKEEPER-207: BenchBookie doesn't run correctly (ivank via fpj)
Expand Down
Expand Up @@ -31,6 +31,7 @@
import org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach;
import org.apache.hedwig.server.common.ServerConfiguration;
import org.apache.hedwig.server.topics.TrivialOwnAllTopicManager;
import org.apache.hedwig.server.persistence.LocalDBPersistenceManager;
import org.apache.hedwig.util.ConcurrencyUtils;
import org.apache.hedwig.util.Either;
import org.apache.hedwig.util.Callback;
Expand All @@ -50,7 +51,8 @@ public void setUp() throws Exception {
super.setUp();
cfg = new ServerConfiguration();
final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
sm = new ZkSubscriptionManager(zk, new TrivialOwnAllTopicManager(cfg, scheduler), null, cfg, scheduler);
sm = new ZkSubscriptionManager(zk, new TrivialOwnAllTopicManager(cfg, scheduler),
LocalDBPersistenceManager.instance(), cfg, scheduler);
msgIdCallback = new Callback<MessageSeqId>() {
@Override
public void operationFailed(Object ctx, final PubSubException exception) {
Expand Down

0 comments on commit 27b6dd6

Please sign in to comment.