Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-4800

Result.compareResults is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.90.4, 0.92.0, 0.94.0
    • 0.90.5
    • Client
    • None
    • Reviewed

    Description

      A coworker of mine (James Taylor) found a bug in Result.compareResults(...).
      This condition:

            if (!ourKVs[i].equals(replicatedKVs[i]) &&
                !Bytes.equals(ourKVs[i].getValue(), replicatedKVs[i].getValue())) {
              throw new Exception("This result was different: "
      

      should be

            if (!ourKVs[i].equals(replicatedKVs[i]) ||
                !Bytes.equals(ourKVs[i].getValue(), replicatedKVs[i].getValue())) {
              throw new Exception("This result was different: "
      

      Just checked, this is wrong in all branches.

      Attachments

        1. 4800.txt
          2 kB
          Lars Hofhansl

        Activity

          People

            larsh Lars Hofhansl
            larsh Lars Hofhansl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: