hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mingliang Liu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-10823) Intermittent testcase failure: TestReloadingX509TrustManager.testReload
Date Thu, 04 Aug 2016 23:28:20 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-10823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mingliang Liu updated HADOOP-10823:
-----------------------------------
    Attachment: HADOOP-10823.001.patch

This test is flaky and fails recently, e.g. [HADOOP-13444] and [HADOOP-13297].

I think increasing the sleep time is not ideal. According to the [Über-jira proposal|HDFS-10666],
we should not use fixed sleep interval to wait for conditions. To address this, one approach
is to coordinate the test thread and the reloader thread which, however, needs intrusive changes
in the production code. A better solution is to trigger the configuration reload manually
in test. We can achieve this by changing the modification time of the trust store file. After
that, we can use {{GenericTestUtils.waitFor()}} to retry the assertion. I attached the v1
patch for addressing this.

[~rdsr], thoughts? Ping [~arpitagarwal] and [~jnp] for more input. Thanks.

> Intermittent testcase failure: TestReloadingX509TrustManager.testReload
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-10823
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10823
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.3.0
>         Environment: java version "1.6.0_31"
> Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
> Linux [hostname] 2.6.32-279.14.1.el6.x86_64 #1 SMP Mon Oct 15 13:44:51 EDT 2012 x86_64
x86_64 x86_64 GNU/Linux
>            Reporter: Ratandeep Ratti
>            Assignee: Ratandeep Ratti
>              Labels: BB2015-05-TBR
>         Attachments: HADOOP-10823.001.patch, HADOOP-10823.patch
>
>
> Pasting the log
> {quote}
> Error Message
> expected:<2> but was:<1>
> Stacktrace
> junit.framework.AssertionFailedError: expected:<2> but was:<1>
> 	at junit.framework.Assert.fail(Assert.java:50)
> 	at junit.framework.Assert.failNotEquals(Assert.java:287)
> 	at junit.framework.Assert.assertEquals(Assert.java:67)
> 	at junit.framework.Assert.assertEquals(Assert.java:199)
> 	at junit.framework.Assert.assertEquals(Assert.java:205)
> 	at org.apache.hadoop.security.ssl.TestReloadingX509TrustManager.testReload(TestReloadingX509TrustManager.java:112)
> Standard Output
> 2014-07-06 06:12:21,170 WARN  ssl.ReloadingX509TrustManager (ReloadingX509TrustManager.java:run(197))
- Could not load truststore (keep using existing one) : java.io.EOFException
> java.io.EOFException
> 	at java.io.DataInputStream.readInt(DataInputStream.java:375)
> 	at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:628)
> 	at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
> 	at java.security.KeyStore.load(KeyStore.java:1185)
> 	at org.apache.hadoop.security.ssl.ReloadingX509TrustManager.loadTrustManager(ReloadingX509TrustManager.java:166)
> 	at org.apache.hadoop.security.ssl.ReloadingX509TrustManager.run(ReloadingX509TrustManager.java:195)
> 	at java.lang.Thread.run(Thread.java:662)
> {quote}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message