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

QuorumResponseHandler sets timeout incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.6
    • None
    • None
    • Low

    Description

      We noticed that the timeout calculation seems wrong:

      long timeout = System.currentTimeMillis() - startTime + DatabaseDescriptor.getRpcTimeout();

      Lets propose that 3 seconds elapse (currentTime - startTime). It will take that value and add the default RpcTimeout (5 seconds) making the timeout 8 seconds.

      Attachments

        1. CASSANDRA-911.patch
          2 kB
          Roger Schildmeijer
        2. 0001-CASSANDRA-911-fixed-incorrect-timeout-calculation.patch
          1 kB
          Chris Goffinet

        Activity

          People

            lenn0x Chris Goffinet
            lenn0x Chris Goffinet
            Chris Goffinet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: