Github user gokulavasan commented on a diff in the pull request:

    https://github.com/apache/incubator-tephra/pull/42#discussion_r117838903
  
    --- Diff: 
tephra-core/src/main/java/org/apache/tephra/runtime/TransactionDistributedModule.java
 ---
    @@ -35,13 +34,24 @@
     import org.apache.tephra.persist.TransactionStateStorage;
     import org.apache.tephra.snapshot.SnapshotCodecProvider;
     
    +import java.lang.management.ManagementFactory;
    +
     /**
      * Guice bindings for running in distributed mode on a cluster.
      */
    -final class TransactionDistributedModule extends AbstractModule {
    +final class TransactionDistributedModule extends 
ClientIdAwareTransactionModule {
    +
    +  public TransactionDistributedModule() {
    +    super(ManagementFactory.getRuntimeMXBean().getName());
    --- End diff --
    
    @poornachandra There is no guarantee that 
TransactionModules().getDistributedModule() is used to get an instance of 
TransactionDistributedModule. One can just create an instance of this class.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to