Github user poornachandra commented on a diff in the pull request: https://github.com/apache/incubator-tephra/pull/2#discussion_r77901080 --- Diff: tephra-core/src/main/java/org/apache/tephra/runtime/TransactionInMemoryModule.java --- @@ -43,10 +44,12 @@ public TransactionInMemoryModule() { @Override protected void configure() { - bind(SnapshotCodecProvider.class).in(Singleton.class); - bind(TransactionStateStorage.class).to(NoOpTransactionStateStorage.class).in(Singleton.class); - bind(TransactionManager.class).in(Singleton.class); - bind(TransactionSystemClient.class).to(InMemoryTxSystemClient.class).in(Singleton.class); + // some of these classes need to be non-singleton in order to create a new instance during leader() in + // TransactionService + bind(SnapshotCodecProvider.class).in(Scopes.SINGLETON); + bind(TransactionStateStorage.class).to(NoOpTransactionStateStorage.class); + bind(TransactionManager.class); + bind(TransactionSystemClient.class).to(InMemoryTxSystemClient.class); --- End diff -- This also needs to be singleton
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---