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

TubeBroker#register2Master, reconnect and wait

    XMLWordPrintableJSON

Details

    Description

      If the broker fails to register with the master, a total of 5 reconnections will be attempted. But I think we should pause the thread for a period of time every time the connection fails to be reconnected

      for (int i; i < reconnectionTimes; i++) {
          try {
              tryConnect();
          } catch (Throwable e) {
              try {
                  TimeUnit.MILLISECONDS.sleep(200);
              } catch (InterruptedException ignored) {
                  //ignore interrupted
              }
          }
      }

      Attachments

        Activity

          People

            viviel viviel
            viviel viviel
            Votes:
            0 Vote for this issue
            Watchers:
            2 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