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

Invalid time unit conversion causing write timeouts

    XMLWordPrintableJSON

Details

    • Normal

    Description

      We've been debugging a write timeout that we saw after upgrading from the 2.0.x release line, with our particular workload. Details of that process can be found in this thread:

      https://www.mail-archive.com/user@cassandra.apache.org/msg46064.html

      After bisecting various patch release versions, and then commits, on the 2.1.x release line we've identified version 2.1.5 and this commit as the point where the timeouts first start appearing:

      https://github.com/apache/cassandra/commit/828496492c51d7437b690999205ecc941f41a0a9

      After examining the commit we believe this line was a typo:

      https://github.com/apache/cassandra/commit/828496492c51d7437b690999205ecc941f41a0a9#diff-c7ef124561c4cde1c906f28ad3883a88L467

      as it doesn't properly convert the timeout value from milliseconds to nanoseconds.

      After testing with the attached patch applied, we do not see timeouts on version 2.1.5 nor against 2.2.5 when we bring the patch forward. While we've tested our workload against this and we are fairly confident in the patch, we are not experts with the code base so we would prefer additional review.

      Attachments

        1. nanosec.patch
          0.9 kB
          Mike Heffner

        Issue Links

          Activity

            People

              slebresne Sylvain Lebresne
              mheffner Mike Heffner
              Sylvain Lebresne
              Ariel Weisberg
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: