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)

        Attachments

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

          Activity

            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: