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

Fix CompactionRequest equals and hashCode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.4.0, 2.0.0-beta-1, 2.0.0
    • None
    • None
    • Reviewed

    Description

      This is fallout from an attempt to fix an error prone or findbugs warning.

      [ERROR] loadTest[0](org.apache.hadoop.hbase.io.encoding.TestLoadAndSwitchEncodeOnDisk) Time elapsed: 19.632 s <<< ERROR!
      java.io.IOException:
      java.io.IOException
      at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2410)
      at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:124)
      at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:297)
      at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:277)
      Caused by: java.lang.StackOverflowError
      at java.util.Objects.equals(Objects.java:59)
      at org.apache.hadoop.hbase.regionserver.compactions.CompactionRequest.equals(CompactionRequest.java:150)
      at java.util.Objects.equals(Objects.java:59)
      at org.apache.hadoop.hbase.regionserver.compactions.CompactionRequest.equals(CompactionRequest.java:150)
      at java.util.Objects.equals(Objects.java:59)
      at org.apache.hadoop.hbase.regionserver.compactions.CompactionRequest.equals(CompactionRequest.java:150)
      (Repeats until the stack blows up)

      Attachments

        1. HBASE-19406.patch
          3 kB
          Andrew Kyle Purtell
        2. HBASE-19406-branch-1.patch
          3 kB
          Andrew Kyle Purtell

        Activity

          People

            apurtell Andrew Kyle Purtell
            apurtell Andrew Kyle Purtell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: