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

Upgrade maven-surefire-plugin to version 2.19 or higher

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I was running two tests with the following specification:

      -Dtest=TestWALLockup#testLockup16960,TestSyncFuture

      I consistently got:

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.002 sec <<< FAILURE! - in org.apache.hadoop.hbase.regionserver.TestWALLockup
      org.apache.hadoop.hbase.regionserver.TestWALLockup  Time elapsed: 0.001 sec  <<< ERROR!
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      	at java.lang.String.substring(String.java:1904)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.getMethod(JUnit4Provider.java:307)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:147)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
      
      Running org.apache.hadoop.hbase.regionserver.wal.TestSyncFuture
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.005 sec <<< FAILURE! - in org.apache.hadoop.hbase.regionserver.wal.TestSyncFuture
      org.apache.hadoop.hbase.regionserver.wal.TestSyncFuture  Time elapsed: 0.005 sec  <<< ERROR!
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      	at java.lang.String.substring(String.java:1904)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.getMethod(JUnit4Provider.java:307)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:147)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
      

      Turns out the above bug has been fixed by SUREFIRE-1161

      We should consider upgrading maven-surefire-plugin to version 2.19 or higher.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                yuzhihong@gmail.com Ted Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: