Uploaded image for project: 'Apache InLong'
  1. Apache InLong
  2. INLONG-74

minor updates for DefaultBdbStoreService

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Low
    • Resolution: Fixed
    • None
    • 0.5.0
    • None

    Description

      1. fix typo
      BDB_TOPIC_AUTHCONTROL_STORE_NAME -> BDB_TOPIC_AUTH_CONTROL_STORE_NAME
      tmpbdbEntity -> tmpBdbEntity
      2. HelperNode is dynamic :

      Set<InetSocketAddress> helpers = new HashSet<InetSocketAddress>();
              InetSocketAddress helper1 = new InetSocketAddress(this.nodeHost, 9005);
              InetSocketAddress helper2 = new InetSocketAddress(this.nodeHost, 9006);
              InetSocketAddress helper3 = new InetSocketAddress(this.nodeHost, 9007);
              helpers.add(helper1);
              helpers.add(helper2);
              helpers.add(helper3);
      

      to

      for(int i = 1; i <= 3; i++){
                  InetSocketAddress helper = new InetSocketAddress(this.nodeHost, bdbConfig.getBdbNodePort() + i);
                  helpers.add(helper);
              }
      

      3. add volatile
      change

       private boolean isMaster;
      

      to

      private volatile boolean isMaster;
      

      4. remove isStopped and param of getEnvironment

      Attachments

        Activity

          People

            technoboy Guo Jiwei
            technoboy Guo Jiwei
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h