You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2014/10/25 02:29:34 UTC
[jira] [Commented] (HADOOP-11230) [JDK 8]
KeyStoreTestUtil#generateCertificate fails due to "subject class type
invalid"
[ https://issues.apache.org/jira/browse/HADOOP-11230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14183791#comment-14183791 ]
Hadoop QA commented on HADOOP-11230:
------------------------------------
{color:red}-1 overall{color}. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12676981/HADOOP-11230.patch
against trunk revision 86ac0d4.
{color:green}+1 @author{color}. The patch does not contain any @author tags.
{color:green}+1 tests included{color}. The patch appears to include 1 new or modified test files.
{color:green}+1 javac{color}. The applied patch does not increase the total number of javac compiler warnings.
{color:green}+1 javadoc{color}. There were no new javadoc warning messages.
{color:green}+1 eclipse:eclipse{color}. The patch built with eclipse:eclipse.
{color:green}+1 findbugs{color}. The patch does not introduce any new Findbugs (version 2.0.3) warnings.
{color:green}+1 release audit{color}. The applied patch does not increase the total number of release audit warnings.
{color:red}-1 core tests{color}. The test build failed in hadoop-hdfs-project/hadoop-hdfs-httpfs
{color:green}+1 contrib tests{color}. The patch passed contrib unit tests.
Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/4949//testReport/
Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/4949//console
This message is automatically generated.
> [JDK 8] KeyStoreTestUtil#generateCertificate fails due to "subject class type invalid"
> --------------------------------------------------------------------------------------
>
> Key: HADOOP-11230
> URL: https://issues.apache.org/jira/browse/HADOOP-11230
> Project: Hadoop Common
> Issue Type: Bug
> Components: test
> Affects Versions: 2.7.0
> Reporter: Robert Kanter
> Assignee: Robert Kanter
> Attachments: HADOOP-11230.patch
>
>
> Tests using {{KeyStoreTestUtil}} fail because it's using some internal sun classes to generate a self-signed certificate, and these have changed in JDK 8. We should not rely on the sun classes.
> {noformat}
> Running org.apache.hadoop.mapreduce.security.ssl.TestEncryptedShuffle
> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.505 sec <<< FAILURE! - in org.apache.hadoop.mapreduce.security.ssl.TestEncryptedShuffle
> encryptedShuffleWithClientCerts(org.apache.hadoop.mapreduce.security.ssl.TestEncryptedShuffle) Time elapsed: 0.23 sec <<< ERROR!
> java.security.cert.CertificateException: Subject class type invalid.
> at sun.security.x509.X509CertInfo.setSubject(X509CertInfo.java:888)
> at sun.security.x509.X509CertInfo.set(X509CertInfo.java:415)
> at org.apache.hadoop.security.ssl.KeyStoreTestUtil.generateCertificate(KeyStoreTestUtil.java:96)
> at org.apache.hadoop.security.ssl.KeyStoreTestUtil.setupSSLConfig(KeyStoreTestUtil.java:259)
> at org.apache.hadoop.security.ssl.KeyStoreTestUtil.setupSSLConfig(KeyStoreTestUtil.java:223)
> at org.apache.hadoop.mapreduce.security.ssl.TestEncryptedShuffle.encryptedShuffleWithCerts(TestEncryptedShuffle.java:135)
> at org.apache.hadoop.mapreduce.security.ssl.TestEncryptedShuffle.encryptedShuffleWithClientCerts(TestEncryptedShuffle.java:167)
> encryptedShuffleWithoutClientCerts(org.apache.hadoop.mapreduce.security.ssl.TestEncryptedShuffle) Time elapsed: 0.077 sec <<< ERROR!
> java.security.cert.CertificateException: Subject class type invalid.
> at sun.security.x509.X509CertInfo.setSubject(X509CertInfo.java:888)
> at sun.security.x509.X509CertInfo.set(X509CertInfo.java:415)
> at org.apache.hadoop.security.ssl.KeyStoreTestUtil.generateCertificate(KeyStoreTestUtil.java:96)
> at org.apache.hadoop.security.ssl.KeyStoreTestUtil.setupSSLConfig(KeyStoreTestUtil.java:268)
> at org.apache.hadoop.security.ssl.KeyStoreTestUtil.setupSSLConfig(KeyStoreTestUtil.java:223)
> at org.apache.hadoop.mapreduce.security.ssl.TestEncryptedShuffle.encryptedShuffleWithCerts(TestEncryptedShuffle.java:135)
> at org.apache.hadoop.mapreduce.security.ssl.TestEncryptedShuffle.encryptedShuffleWithoutClientCerts(TestEncryptedShuffle.java:172)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)