Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-3789

Code compiled against 1.6 lexicoders can't run in 1.7

VotersWatch issueWatchers
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.7.0
    • 1.7.0
    • None
    • None
    • Development environment

    Description

      Code which was built against the 1.6 Lexicoders will fail with a NoSuchMethod error when run against the 1.7 jars.

      Test case is attached. Sorry it depends on Gradle, the build file is pretty trivial.

      Steps to reproduce

      • Deploy accumulo 1.7.0-SNAPSHOT jars to local maven repository, I did mvn -DskipTests -Dfindbugs.skip=true install on commit 31dd5ca
      • Untar attached file TestLexicoderCompat.tar.gz, run gradle clean test

      Expected Result

      • All unit tests pass

      Actual Result

      • The unit test "TestLexicoderCompatibility" fails with the error:
        java.lang.NoSuchMethodError: org.apache.accumulo.core.client.lexicoder.LongLexicoder.decode([B)Ljava/lang/Long;
        	at lexicoder.TestLexicoderCompatibility.testLexicoderBackwardsCompatibility(TestLexicoderCompatibility.java:20)
        	[snip]
        
      • Switching the testRuntime dependency to 1.6.1 instead of 1.7.0-SNAPSHOT will cause the test to pass.

      Attachments

        1. ACCUMULO-3789.patch
          14 kB
          Russ Weeks
        2. ACCUMULO-3789-1.patch
          15 kB
          Josh Elser
        3. TestLexicoderCompat.tar.gz
          42 kB
          Russ Weeks

        Issue Links

          Activity

            People

              rweeks Russ Weeks
              rweeks Russ Weeks
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m

                  Slack

                    Issue deployment