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

TestElasticSearchRestClient fails on Oracle JDK 8

Attach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0.1
    • 1.6.0
    • Sinks+Sources

    Description

      The JSON comparison should be performed independently of the keys order:

      https://travis-ci.org/Stratio/flume/jobs/36847693#L6735

      shouldAddNewEventWithoutTTL(org.apache.flume.sink.elasticsearch.client.TestElasticSearchRestClient) Time elapsed: 493 sec <<< FAILURE!

      junit.framework.ComparisonFailure: expected:<{"index":{"_[type":"bar_type","_index":"foo_index]"}}

      {"body":"test"}

      > but was:<{"index":{"_[index":"foo_index","_type":"bar_type]"}}

      {"body":"test"}

      >

      at junit.framework.Assert.assertEquals(Assert.java:85)

      at junit.framework.Assert.assertEquals(Assert.java:91)

      at org.apache.flume.sink.elasticsearch.client.TestElasticSearchRestClient.shouldAddNewEventWithoutTTL(TestElasticSearchRestClient.java:105)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jrufus Johny Rufus
            smolav Santiago M. Mola
            Votes:
            0 Vote for this issue
            Watchers:
            8 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment