You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steve Rowe (JIRA)" <ji...@apache.org> on 2016/08/09 17:29:20 UTC

[jira] [Commented] (SOLR-9401) TestPKIAuthenticationPlugin NPE

    [ https://issues.apache.org/jira/browse/SOLR-9401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15413881#comment-15413881 ] 

Steve Rowe commented on SOLR-9401:
----------------------------------

Looking through recent dev mailing list posts, the only mention I can find of this failure is from [~shaie] three months ago during the 5.5.1 release vote [http://asfmail.lucidworks.io/mail_files/lucene-dev/201605.mbox/%3cCALfq-2Qguqo=X=on8_8s2z8KVmPbPXTLwUbkfwHDZ1XfiEoZjQ@mail.gmail.com%3e]:

{quote}
When I ran the smoke tester for the first time, I encountered this test
failure:

{noformat}
[junit4] Suite: org.apache.solr.security.TestPKIAuthenticationPlugin
[junit4] 2> Creating dataDir:
/tmp/smoke_lucene_5.5.1_c08f17bca0d9cbf516874d13d221ab100e5b7d58_3/unpack/solr-5.5.1/solr/build/solr-core/test/J3/temp/solr.security.TestPKIAuthenticationPlugin_4643E7DFA3C28AD5-001/init-core-data-001
[junit4] 2> 48028 INFO
(SUITE-TestPKIAuthenticationPlugin-seed#[4643E7DFA3C28AD5]-worker) [ ]
o.a.s.SolrTestCaseJ4 Randomized ssl (true) and clientAuth (false)
[junit4] 2> 48031 INFO
(TEST-TestPKIAuthenticationPlugin.test-seed#[4643E7DFA3C28AD5]) [ ]
o.a.s.SolrTestCaseJ4 ###Starting test
[junit4] 2> 48323 ERROR
(TEST-TestPKIAuthenticationPlugin.test-seed#[4643E7DFA3C28AD5]) [ ]
o.a.s.s.PKIAuthenticationPlugin No SolrAuth header present
[junit4] 2> 48377 ERROR
(TEST-TestPKIAuthenticationPlugin.test-seed#[4643E7DFA3C28AD5]) [ ]
o.a.s.s.PKIAuthenticationPlugin Invalid key
[junit4] 2> 48377 INFO
(TEST-TestPKIAuthenticationPlugin.test-seed#[4643E7DFA3C28AD5]) [ ]
o.a.s.SolrTestCaseJ4 ###Ending test
[junit4] 2> NOTE: reproduce with: ant test
-Dtestcase=TestPKIAuthenticationPlugin -Dtests.method=test
-Dtests.seed=4643E7DFA3C28AD5 -Dtests.locale=ja-JP
-Dtests.timezone=Australia/Lindeman -Dtests.asserts=true
-Dtests.file.encoding=US-ASCII
[junit4] ERROR 0.35s J3 | TestPKIAuthenticationPlugin.test <<<
[junit4] > Throwable #1: java.lang.NullPointerException
[junit4] > at
__randomizedtesting.SeedInfo.seed([4643E7DFA3C28AD5:CE17D8050D3EE72D]:0)
[junit4] > at
org.apache.solr.security.TestPKIAuthenticationPlugin.test(TestPKIAuthenticationPlugin.java:156)
[junit4] > at java.lang.Thread.run(Thread.java:745)
[junit4] 2> 48379 INFO
(SUITE-TestPKIAuthenticationPlugin-seed#[4643E7DFA3C28AD5]-worker) [ ]
o.a.s.SolrTestCaseJ4 ###deleteCore
[junit4] 2> NOTE: leaving temporary files on disk at:
/tmp/smoke_lucene_5.5.1_c08f17bca0d9cbf516874d13d221ab100e5b7d58_3/unpack/solr-5.5.1/solr/build/solr-core/test/J3/temp/solr.security.TestPKIAuthenticationPlugin_4643E7DFA3C28AD5-001
[junit4] 2> NOTE: test params are: codec=Asserting(Lucene54): {},
docValues:{}, sim=DefaultSimilarity, locale=ja-JP,
timezone=Australia/Lindeman
[junit4] 2> NOTE: Linux 4.2.0-30-generic amd64/Oracle Corporation 1.7.0_80
(64-bit)/cpus=8,threads=1,free=161219560,total=432537600
[junit4] 2> NOTE: All tests run in this JVM: [TestAtomicUpdateErrorCases,
TestDefaultStatsCache, TestFiltering, PluginInfoTest,
HdfsWriteToMultipleCollectionsTest, DistributedFacetPivotSmallAdvancedTest,
ConnectionManagerTest, TestJoin, ShardRoutingTest,
WrapperMergePolicyFactoryTest, IndexSchemaRuntimeFieldTest,
TestClassNameShortening, SimpleCollectionCreateDeleteTest,
TestManagedResource, BigEndianAscendingWordDeserializerTest,
HdfsRestartWhileUpdatingTest, TestSolrDeletionPolicy1, TestConfigReload,
TestSolrJ, TestIndexingPerformance, TestInitQParser,
AlternateDirectoryTest, TestConfigOverlay, TestCSVResponseWriter,
SpatialRPTFieldTypeTest, SolrIndexSplitterTest, DistributedVersionInfoTest,
TestSmileRequest, TestPKIAuthenticationPlugin]
{noformat}

Second time it passed. I didn't have time to dig into the failure, so I
can't tell if it should hold off the release. What do you think?
{quote}

> TestPKIAuthenticationPlugin NPE
> -------------------------------
>
>                 Key: SOLR-9401
>                 URL: https://issues.apache.org/jira/browse/SOLR-9401
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Steve Rowe
>
> Failure from my Jenkins, doesn't reproduce for me (this is {{tests-failures.txt}}):
> {noformat}
>   2> Creating dataDir: /var/lib/jenkins/jobs/Lucene-Solr-tests-master/workspace/solr/build/solr-core/test/J7/temp/solr.security.TestPKIAuthenticationPlugi
> n_7AC33B2240CB767D-001/init-core-data-001
>   2> 14521 INFO  (SUITE-TestPKIAuthenticationPlugin-seed#[7AC33B2240CB767D]-worker) [    ] o.a.s.SolrTestCaseJ4 Randomized ssl (false) and clientAuth (fal
> se) via: @org.apache.solr.util.RandomizeSSL(reason=, ssl=NaN, value=NaN, clientAuth=NaN)
>   2> 14540 INFO  (TEST-TestPKIAuthenticationPlugin.test-seed#[7AC33B2240CB767D]) [    ] o.a.s.SolrTestCaseJ4 ###Starting test
>   2> 15553 ERROR (TEST-TestPKIAuthenticationPlugin.test-seed#[7AC33B2240CB767D]) [    ] o.a.s.s.PKIAuthenticationPlugin No SolrAuth header present
>   2> 15843 ERROR (TEST-TestPKIAuthenticationPlugin.test-seed#[7AC33B2240CB767D]) [    ] o.a.s.s.PKIAuthenticationPlugin Invalid key request timestamp: 9 ,
>  received timestamp: 1470760833176 , TTL: 5000
>   2> 15843 INFO  (TEST-TestPKIAuthenticationPlugin.test-seed#[7AC33B2240CB767D]) [    ] o.a.s.SolrTestCaseJ4 ###Ending test
>   2> NOTE: download the large Jenkins line-docs file by running 'ant get-jenkins-line-docs' in the lucene directory.
>   2> NOTE: reproduce with: ant test  -Dtestcase=TestPKIAuthenticationPlugin -Dtests.method=test -Dtests.seed=7AC33B2240CB767D -Dtests.slow=true -Dtests.li
> nedocsfile=/home/jenkins/lucene-data/enwiki.random.lines.txt -Dtests.locale=cs -Dtests.timezone=Europe/Tirane -Dtests.asserts=true -Dtests.file.encoding=U
> TF-8
> [12:40:32.094] ERROR   1.35s J7  | TestPKIAuthenticationPlugin.test <<<
>    > Throwable #1: java.lang.NullPointerException
>    >    at __randomizedtesting.SeedInfo.seed([7AC33B2240CB767D:F29704F8EE371B85]:0)
>    >    at org.apache.solr.security.TestPKIAuthenticationPlugin.test(TestPKIAuthenticationPlugin.java:144)
>    >    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    >    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>    >    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>    >    at java.lang.reflect.Method.invoke(Method.java:498)
>    >    at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1764)
>    >    at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:871)
>    >    at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:907)
>    >    at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:921)
>    >    at com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:57)
>    >    at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:49)
>    >    at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
>    >    at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48)
>    >    at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64)
>    >    at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47)
>    >    at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>    >    at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:367)
>    >    at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:809)
>    >    at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:460)
>    >    at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:880)
>    >    at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:781)
>    >    at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:816)
>    >    at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:827)
>    >    at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>    >    at com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:57)
>    >    at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
>    >    at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>    >    at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:41)
>    >    at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
>    >    at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
>    >    at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>    >    at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>    >    at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>    >    at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
>    >    at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47)
>    >    at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64)
>    >    at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:54)
>    >    at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>    >    at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:367)
>    >    at java.lang.Thread.run(Thread.java:745)
>   2> 15867 INFO  (SUITE-TestPKIAuthenticationPlugin-seed#[7AC33B2240CB767D]-worker) [    ] o.a.s.SolrTestCaseJ4 ###deleteCore
>   2> NOTE: leaving temporary files on disk at: /var/lib/jenkins/jobs/Lucene-Solr-tests-master/workspace/solr/build/solr-core/test/J7/temp/solr.security.TestPKIAuthenticationPlugin_7AC33B2240CB767D-001
>   2> NOTE: test params are: codec=Asserting(Lucene62): {}, docValues:{}, maxPointsInLeafNode=752, maxMBSortInHeap=5.390190554185364, sim=RandomSimilarity(queryNorm=true): {}, locale=cs, timezone=Europe/Tirane
>   2> NOTE: Linux 4.1.0-custom2-amd64 amd64/Oracle Corporation 1.8.0_77 (64-bit)/cpus=16,threads=1,free=255922760,total=336592896
>   2> NOTE: All tests run in this JVM: [TestIndexingPerformance, TestPKIAuthenticationPlugin]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org