[
https://issues.apache.org/jira/browse/FLUME-1789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aline Guedes Pinto updated FLUME-1789:
--------------------------------------
Attachment: sun-testkeystore
ibm-testkeystore
FLUME-1789.patch
Attached patch to fix the issue as per Brock' suggestion.
Replaced test.keystore with sun-testkeystore and created a new ibm-testkeystore
file.
Tested with IBM and SUN java:
[alinegds@oc1023547534 flume]$ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pxa6460sr11-20120806_01(SR11))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64
jvmxa6460sr11-20120801_118201 (JIT enabled, AOT enabled)
J9VM - 20120801_118201
JIT - r9_20120608_24176ifx1
GC - 20120516_AA)
JCL - 20120713_01
[alinegds@oc1023547534 flume]$ java -version
java version "1.6.0_38"
Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)
> Unit tests TestJCEFileKeyProvider and TestFileChannelEncryption fail with IBM
> JDK and flume-1.3.0
> -------------------------------------------------------------------------------------------------
>
> Key: FLUME-1789
> URL: https://issues.apache.org/jira/browse/FLUME-1789
> Project: Flume
> Issue Type: Bug
> Components: Channel, Test
> Affects Versions: v1.3.0
> Environment: IBM Java 6 SR 12
> RHEL 6.3
> Reporter: Aline Guedes Pinto
> Priority: Minor
> Labels: test, test-materials,
> Fix For: v1.3.0
>
> Attachments: FLUME-1789.patch, ibm-testkeystore, sun-testkeystore,
> test.keystore
>
>
> The unit tests TestJCEFileKeyProvider and TestFileChannelEncryption fail
> when running with IBM Java 6. Only the test cases that use an existing
> keystore file fail. It seems like the problem is that IBM keytool can't read
> the file test.keystore provided with flume (which was probably generated
> with SUN's keytool). Replacing the file test.keystore (at
> flume-ng-channels/flume-file-channel/src/test/resources) with one generated
> by IBM keytool fixes the issue (and it also works with SUN Java 6).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira