[
https://issues.apache.org/jira/browse/HADOOP-12895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15185996#comment-15185996
]
Hudson commented on HADOOP-12895:
---------------------------------
FAILURE: Integrated in Hadoop-trunk-Commit #9444 (See
[https://builds.apache.org/job/Hadoop-trunk-Commit/9444/])
HADOOP-12895. SSLFactory#createSSLSocketFactory exception message is (wang: rev
a3cc6e2511e096ea9a54f500b59257866a1df66b)
*
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/ssl/SSLFactory.java
> SSLFactory#createSSLSocketFactory exception message is wrong
> ------------------------------------------------------------
>
> Key: HADOOP-12895
> URL: https://issues.apache.org/jira/browse/HADOOP-12895
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 2.0.2-alpha
> Reporter: Wei-Chiu Chuang
> Assignee: Wei-Chiu Chuang
> Priority: Trivial
> Fix For: 2.9.0
>
> Attachments: HADOOP-12895.001.patch, HADOOP-12895.002.patch,
> HADOOP-12895.003.patch
>
>
> If in SERVER model, the following code should throw exception indicating
> Factory is in SERVER mode, not in CLIENT mode. Otherwise, it could be
> confusing.
> {code:title=SSLSocketFactory.java}
> public SSLSocketFactory createSSLSocketFactory()
> throws GeneralSecurityException, IOException {
> if (mode != Mode.CLIENT) {
> throw new IllegalStateException("Factory is in CLIENT mode");
> }
> return context.getSocketFactory();
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)