Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2481

TestFileChannelEncryption fails with System locale other than en_US

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.0.1
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:
      None

      Description

      Tests check for exception messages that are locale-dependent, so they fail when system locale is not en_US.

      Relevant code:

      Assert.assertEquals("java.io.FileNotFoundException: /path/does/not/exist " +
      "(No such file or directory)", ex.getMessage().startsWith(""));

      Exception:

      testMissingKeyStorePasswordFile(org.apache.flume.channel.file.encryption.TestFileChannelEncryption) Time elapsed: 2 sec <<< FAILURE!
      org.junit.ComparisonFailure: expected:<.../does/not/exist (No [such file or directory])> but was:<.../does/not/exist (No [existe el archivo o el directorio])>
      at org.junit.Assert.assertEquals(Assert.java:125)
      at org.junit.Assert.assertEquals(Assert.java:147)
      at org.apache.flume.channel.file.encryption.TestFileChannelEncryption.testMissingKeyStorePasswordFile(TestFileChannelEncryption.java:325)

      1. FLUME-2481-0.patch
        2 kB
        Santiago M. Mola

        Activity

        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Flume-trunk-hbase-98 #25 (See https://builds.apache.org/job/Flume-trunk-hbase-98/25/)
        FLUME-2481. TestFileChannelEncryption fails with System locale other than en_US (hshreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=e1e5acea2fbb04699eba76ea930def38e34f328d)

        • flume-ng-channels/flume-file-channel/src/test/java/org/apache/flume/channel/file/encryption/TestFileChannelEncryption.java
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Flume-trunk-hbase-98 #25 (See https://builds.apache.org/job/Flume-trunk-hbase-98/25/ ) FLUME-2481 . TestFileChannelEncryption fails with System locale other than en_US (hshreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=e1e5acea2fbb04699eba76ea930def38e34f328d ) flume-ng-channels/flume-file-channel/src/test/java/org/apache/flume/channel/file/encryption/TestFileChannelEncryption.java
        Hide
        hudson Hudson added a comment -

        UNSTABLE: Integrated in flume-trunk #665 (See https://builds.apache.org/job/flume-trunk/665/)
        FLUME-2481. TestFileChannelEncryption fails with System locale other than en_US (hshreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=e1e5acea2fbb04699eba76ea930def38e34f328d)

        • flume-ng-channels/flume-file-channel/src/test/java/org/apache/flume/channel/file/encryption/TestFileChannelEncryption.java
        Show
        hudson Hudson added a comment - UNSTABLE: Integrated in flume-trunk #665 (See https://builds.apache.org/job/flume-trunk/665/ ) FLUME-2481 . TestFileChannelEncryption fails with System locale other than en_US (hshreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=e1e5acea2fbb04699eba76ea930def38e34f328d ) flume-ng-channels/flume-file-channel/src/test/java/org/apache/flume/channel/file/encryption/TestFileChannelEncryption.java
        Hide
        hshreedharan Hari Shreedharan added a comment -

        Committed! Thanks Santiago!

        Show
        hshreedharan Hari Shreedharan added a comment - Committed! Thanks Santiago!
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit c0b3f70ed8b8bac26c5a0fc615e271f592f3b3e3 in flume's branch refs/heads/flume-1.6 from Hari Shreedharan
        [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=c0b3f70 ]

        FLUME-2481. TestFileChannelEncryption fails with System locale other than en_US

        (Santiago M. Mola via Hari)

        Show
        jira-bot ASF subversion and git services added a comment - Commit c0b3f70ed8b8bac26c5a0fc615e271f592f3b3e3 in flume's branch refs/heads/flume-1.6 from Hari Shreedharan [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=c0b3f70 ] FLUME-2481 . TestFileChannelEncryption fails with System locale other than en_US (Santiago M. Mola via Hari)
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit e1e5acea2fbb04699eba76ea930def38e34f328d in flume's branch refs/heads/trunk from Hari Shreedharan
        [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=e1e5ace ]

        FLUME-2481. TestFileChannelEncryption fails with System locale other than en_US

        (Santiago M. Mola via Hari)

        Show
        jira-bot ASF subversion and git services added a comment - Commit e1e5acea2fbb04699eba76ea930def38e34f328d in flume's branch refs/heads/trunk from Hari Shreedharan [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=e1e5ace ] FLUME-2481 . TestFileChannelEncryption fails with System locale other than en_US (Santiago M. Mola via Hari)

          People

          • Assignee:
            smolav Santiago M. Mola
            Reporter:
            smolav Santiago M. Mola
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development