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

Test failures when local client conf has SASL enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.0
    • test
    • None

    Description

      Tests run: 5, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 1.509 sec <<< FAILURE! - in org.apache.accumulo.shell.ShellConfigTest
      testTokenWithoutOptions(org.apache.accumulo.shell.ShellConfigTest)  Time elapsed: 0.777 sec  <<< FAILURE!
      java.lang.AssertionError: null
      	at org.junit.Assert.fail(Assert.java:86)
      	at org.junit.Assert.assertTrue(Assert.java:41)
      	at org.junit.Assert.assertFalse(Assert.java:64)
      	at org.junit.Assert.assertFalse(Assert.java:74)
      	at org.apache.accumulo.shell.ShellConfigTest.testTokenWithoutOptions(ShellConfigTest.java:76)
      
      testTokenAndOptionAndPassword(org.apache.accumulo.shell.ShellConfigTest)  Time elapsed: 0.008 sec  <<< FAILURE!
      java.lang.AssertionError: null
      	at org.junit.Assert.fail(Assert.java:86)
      	at org.junit.Assert.assertTrue(Assert.java:41)
      	at org.junit.Assert.assertFalse(Assert.java:64)
      	at org.junit.Assert.assertFalse(Assert.java:74)
      	at org.apache.accumulo.shell.ShellConfigTest.testTokenAndOptionAndPassword(ShellConfigTest.java:87)
      
      Running org.apache.accumulo.shell.ShellTest
      Tests run: 12, Failures: 0, Errors: 11, Skipped: 0, Time elapsed: 0.989 sec <<< FAILURE! - in org.apache.accumulo.shell.ShellTest
      duPatternTest(org.apache.accumulo.shell.ShellTest)  Time elapsed: 0.828 sec  <<< ERROR!
      java.lang.NullPointerException: null
      	at org.apache.accumulo.shell.Shell.getDefaultPrompt(Shell.java:702)
      	at org.apache.accumulo.shell.Shell.execCommand(Shell.java:706)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:97)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:101)
      	at org.apache.accumulo.shell.ShellTest.duPatternTest(ShellTest.java:236)
      
      aboutTest(org.apache.accumulo.shell.ShellTest)  Time elapsed: 0.006 sec  <<< ERROR!
      java.lang.NullPointerException: null
      	at org.apache.accumulo.shell.Shell.getDefaultPrompt(Shell.java:702)
      	at org.apache.accumulo.shell.Shell.execCommand(Shell.java:706)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:97)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:113)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:109)
      	at org.apache.accumulo.shell.ShellTest.aboutTest(ShellTest.java:155)
      
      duTest(org.apache.accumulo.shell.ShellTest)  Time elapsed: 0.006 sec  <<< ERROR!
      java.lang.NullPointerException: null
      	at org.apache.accumulo.shell.Shell.getDefaultPrompt(Shell.java:702)
      	at org.apache.accumulo.shell.Shell.execCommand(Shell.java:706)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:97)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:101)
      	at org.apache.accumulo.shell.ShellTest.duTest(ShellTest.java:228)
      
      setIterTest(org.apache.accumulo.shell.ShellTest)  Time elapsed: 0.006 sec  <<< ERROR!
      java.lang.NullPointerException: null
      	at org.apache.accumulo.shell.Shell.getDefaultPrompt(Shell.java:702)
      	at org.apache.accumulo.shell.Shell.execCommand(Shell.java:706)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:97)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:101)
      	at org.apache.accumulo.shell.ShellTest.setIterTest(ShellTest.java:273)
      
      insertDeleteScanTest(org.apache.accumulo.shell.ShellTest)  Time elapsed: 0.006 sec  <<< ERROR!
      java.lang.NullPointerException: null
      	at org.apache.accumulo.shell.Shell.getDefaultPrompt(Shell.java:702)
      	at org.apache.accumulo.shell.Shell.execCommand(Shell.java:706)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:97)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:113)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:109)
      	at org.apache.accumulo.shell.ShellTest.insertDeleteScanTest(ShellTest.java:173)
      
      addGetSplitsTest(org.apache.accumulo.shell.ShellTest)  Time elapsed: 0.007 sec  <<< ERROR!
      java.lang.NullPointerException: null
      	at org.apache.accumulo.shell.Shell.getDefaultPrompt(Shell.java:702)
      	at org.apache.accumulo.shell.Shell.execCommand(Shell.java:706)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:97)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:113)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:109)
      	at org.apache.accumulo.shell.ShellTest.addGetSplitsTest(ShellTest.java:163)
      
      duContextTest(org.apache.accumulo.shell.ShellTest)  Time elapsed: 0.007 sec  <<< ERROR!
      java.lang.NullPointerException: null
      	at org.apache.accumulo.shell.Shell.getDefaultPrompt(Shell.java:702)
      	at org.apache.accumulo.shell.Shell.execCommand(Shell.java:706)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:97)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:101)
      	at org.apache.accumulo.shell.ShellTest.duContextTest(ShellTest.java:220)
      
      scanDateStringFormatterTest(org.apache.accumulo.shell.ShellTest)  Time elapsed: 0.006 sec  <<< ERROR!
      java.lang.NullPointerException: null
      	at org.apache.accumulo.shell.Shell.getDefaultPrompt(Shell.java:702)
      	at org.apache.accumulo.shell.Shell.execCommand(Shell.java:706)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:97)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:101)
      	at org.apache.accumulo.shell.ShellTest.scanDateStringFormatterTest(ShellTest.java:246)
      
      authsTest(org.apache.accumulo.shell.ShellTest)  Time elapsed: 0.005 sec  <<< ERROR!
      java.lang.NullPointerException: null
      	at org.apache.accumulo.shell.Shell.getDefaultPrompt(Shell.java:702)
      	at org.apache.accumulo.shell.Shell.execCommand(Shell.java:706)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:97)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:113)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:109)
      	at org.apache.accumulo.shell.ShellTest.authsTest(ShellTest.java:198)
      
      execFileTest(org.apache.accumulo.shell.ShellTest)  Time elapsed: 0.023 sec  <<< ERROR!
      java.lang.NullPointerException: null
      	at org.apache.accumulo.shell.Shell.printInfo(Shell.java:668)
      	at org.apache.accumulo.shell.Shell.start(Shell.java:575)
      	at org.apache.accumulo.shell.ShellTest.execFileTest(ShellTest.java:266)
      
      commentTest(org.apache.accumulo.shell.ShellTest)  Time elapsed: 0.005 sec  <<< ERROR!
      java.lang.NullPointerException: null
      	at org.apache.accumulo.shell.Shell.getDefaultPrompt(Shell.java:702)
      	at org.apache.accumulo.shell.Shell.execCommand(Shell.java:706)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:97)
      	at org.apache.accumulo.shell.ShellTest.exec(ShellTest.java:113)
      	at org.apache.accumulo.shell.ShellTest.commentTest(ShellTest.java:257)
      

      If I don't remember to comment out instance.rpc.sasl.enabled in ~/.accumulo/config before building, these tests will consistently fail. See if there's a way to make them not fail.

      Attachments

        Issue Links

          Activity

            People

              elserj Josh Elser
              elserj Josh Elser
              Votes:
              0 Vote for this issue
              Watchers:
              0 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 - 10m
                  10m