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

StreamingTombstoneHistogramBuilder.DataHolder does not merge histogram points correctly on overflow

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Normal
    • Resolution: Unresolved
    • 5.0.x, 5.x
    • Local/SSTable
    • None
    • Degradation - Performance Bug/Regression
    • Normal
    • Normal
    • Code Inspection
    • All
    • None
    • Hide

      Added unit tests

      Show
      Added unit tests

    Description

      The algorithm tries to merge the two nearest points in the histogram and create a new point that is in between the two merged points based on the weight of each point. This can overflow long arithmetic with the code that is currently there  and the work around is pick one of the points and just put it there.

      This can be worked around by changing the midpoint calculation to not overflow.

      Attachments

        Activity

          People

            aweisberg Ariel Weisberg
            aweisberg Ariel Weisberg
            Ariel Weisberg
            Berenguer Blasi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: