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

negative Token with M3P

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Not A Problem
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
      None
    • Severity:
      Normal

      Description

      Looks like CASSANDRA-4621 has the following code

      -        return new LongToken((hash < 0) ? -hash : hash);
      +        return new LongToken(normalize(hash));
           }
      
      +    private long normalize(long v)
      +    {
      +        // We exclude the MINIMUM value; see getToken()
      +        return v == Long.MIN_VALUE ? Long.MAX_VALUE : v;
           }
      

      Causing the following error during bulk loading...

      SSTable first key DecoratedKey(38876769351598, 30393932373730) > last key DecoratedKey(-9223087809888494735, 30393936393438)

        Attachments

          Activity

            People

            • Assignee:
              vijay2win@yahoo.com Vijay
              Reporter:
              vijay2win@yahoo.com Vijay
              Authors:
              Vijay
              Reviewers:
              Sylvain Lebresne
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: