Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-3958

Remove random HH delay

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.0
    • None

    Description

      .       // sleep a random amount to stagger handoff delivery from different replicas.
              // (if we had to wait, then gossiper randomness took care of that for us already.)
              if (waited == 0)
              {
                  // use a 'rounded' sleep interval because of a strange bug with windows: CASSANDRA-3375
                  int sleep = FBUtilities.threadLocalRandom().nextInt(2000) * 30;
                  logger_.debug("Sleeping {}ms to stagger hint delivery", sleep);
                  Thread.sleep(sleep);
              }
      

      This is obsolete now that we have the per-hint configurable delay. And large hint loads (which are the ones that matter most) are going to overlap anyway even with the maximum 60s difference.

      Attachments

        1. 3958.txt
          1 kB
          Jonathan Ellis

        Activity

          People

            jbellis Jonathan Ellis
            jbellis Jonathan Ellis
            Jonathan Ellis
            Brandon Williams
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: