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

negative Token with M3P

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Not A Problem
    • 1.2.0
    • None
    • None
    • 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

            vijay2win@yahoo.com Vijay
            vijay2win@yahoo.com Vijay
            Vijay
            Sylvain Lebresne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: