Ealsticsearch Testing-5.x version-FAILURE


(Harsh Bajaj) #1

Hi,

I'm refereeing the TESTING.ascii document available in elasticsearch repo.

While performing testing getting below error on some test cases.

02:37:00.693 [LIFECYCLE] [org.gradle.api.Task]   1> [2018-07-09T07:37:00,588][INFO ][o.e.a.b.BulkRequestTests ] [testSimpleBulk1]: before test
02:37:00.693 [LIFECYCLE] [org.gradle.api.Task]   1> [2018-07-09T07:37:00,589][INFO ][o.e.a.b.BulkRequestTests ] [testSimpleBulk1]: after test
02:37:00.702 [LIFECYCLE] [org.gradle.api.Task] ERROR   0.02s J2 | BulkRequestTests.testSimpleBulk1 <<< FAILURES!
02:37:00.708 [LIFECYCLE] [org.gradle.api.Task]    > Throwable #1: com.fasterxml.jackson.core.io.JsonEOFException: Unexpected end-of-input: expected close marker for Object (start marker at [Source: org.elasticsearch.common.bytes.BytesReference$MarkSupportingStreamInputWrapper@418f3830; line: 1, column: 1])
02:37:00.708 [LIFECYCLE] [org.gradle.api.Task]    >  at [Source: org.elasticsearch.common.bytes.BytesReference$MarkSupportingStreamInputWrapper@418f3830; line: 1, column: 3]
02:37:00.708 [LIFECYCLE] [org.gradle.api.Task]    >     at __randomizedtesting.SeedInfo.seed([8C131C3EA84EFDC1:DDCB3262D3BC05D8]:0)
02:37:00.708 [LIFECYCLE] [org.gradle.api.Task]    >     at com.fasterxml.jackson.core.base.ParserMinimalBase._reportInvalidEOF(ParserMinimalBase.java:483)
02:37:00.708 [LIFECYCLE] [org.gradle.api.Task]    >     at com.fasterxml.jackson.core.base.ParserBase._handleEOF(ParserBase.java:535)
02:37:00.708 [LIFECYCLE] [org.gradle.api.Task]    >     at com.fasterxml.jackson.core.base.ParserBase._eofAsNextChar(ParserBase.java:547)
02:37:00.708 [LIFECYCLE] [org.gradle.api.Task]    >     at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._skipWSOrEnd(UTF8StreamJsonParser.java:2931)
02:37:00.708 [LIFECYCLE] [org.gradle.api.Task]    >     at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:731)
02:37:00.708 [LIFECYCLE] [org.gradle.api.Task]    >     at org.elasticsearch.common.xcontent.json.JsonXContentParser.nextToken(JsonXContentParser.java:55)
02:37:00.708 [LIFECYCLE] [org.gradle.api.Task]    >     at org.elasticsearch.action.bulk.BulkRequest.add(BulkRequest.java:343)
02:37:00.708 [LIFECYCLE] [org.gradle.api.Task]    >     at org.elasticsearch.action.bulk.BulkRequest.add(BulkRequest.java:311)
02:37:00.708 [LIFECYCLE] [org.gradle.api.Task]    >     at org.elasticsearch.action.bulk.BulkRequest.add(BulkRequest.java:279)
02:37:00.708 [LIFECYCLE] [org.gradle.api.Task]    >     at org.elasticsearch.action.bulk.BulkRequest.add(BulkRequest.java:261)
02:37:00.708 [LIFECYCLE] [org.gradle.api.Task]    >     at org.elasticsearch.action.bulk.BulkRequestTests.testSimpleBulk1(BulkRequestTests.java:72)
02:37:00.708 [LIFECYCLE] [org.gradle.api.Task]    >     at java.lang.Thread.run(Thread.java:748)
02:37:00.708 [LIFECYCLE] [org.gradle.api.Task]   1> [2018-07-09T07:37:00,607][INFO ][o.e.a.b.BulkRequestTests ] [testSimpleBulkWithCarriageReturn]: before test
02:37:00.709 [LIFECYCLE] [org.gradle.api.Task]   1> [2018-07-09T07:37:00,608][INFO ][o.e.a.b.BulkRequestTests ] [testSimpleBulkWithCarriageReturn]: after test
02:37:00.709 [LIFECYCLE] [org.gradle.api.Task]   1> [2018-07-09T07:37:00,609][INFO ][o.e.a.b.BulkRequestTests ] [testCannotAddNullRequests]: before test
02:37:00.709 [LIFECYCLE] [org.gradle.api.Task]   1> [2018-07-09T07:37:00,610][INFO ][o.e.a.b.BulkRequestTests ] [testCannotAddNullRequests]: after test
02:37:00.709 [LIFECYCLE] [org.gradle.api.Task]   1> [2018-07-09T07:37:00,612][INFO ][o.e.a.b.BulkRequestTests ] [testBulkRequestWithRefresh]: before test
02:37:00.709 [LIFECYCLE] [org.gradle.api.Task]   1> [2018-07-09T07:37:00,612][INFO ][o.e.a.b.BulkRequestTests ] [testBulkRequestWithRefresh]: after test
02:37:00.710 [LIFECYCLE] [org.gradle.api.Task] Completed [458/931] on J2 in 0.12s, 6 tests, 1 error <<< FAILURES!

And all bulk test case are showing Failure.

Could you please look into this.

@dadoonet and @ruflin please help.


(David Pilato) #2

Why are you pinging me? I'm not involved yet in your question.


(David Pilato) #3

Probably a wrong BULK content here. Missing a \n most likely.


(Harsh Bajaj) #4

sorry for that!!


(Harsh Bajaj) #5

But in elasticsearch repo there is a simple-bulk.json file with below content and i've not edited this file.

{ "index":{"_index":"test","_type":"type1","_id":"1"} }
{ "field1" : "value1" }
{ "delete" : { "_index" : "test", "_type" : "type1", "_id" : "2" } }
{ "create" : { "_index" : "test", "_type" : "type1", "_id" : "3" } }
{ "field1" : "value3" }

Please help .


(David Pilato) #6

Check that you have the last line with a \n at the end.


(Harsh Bajaj) #7

Hi,

Thank you for your support.

Issue is with JSON files available in github version 5.4.3 formatting issue.

That json formatting not supporting and all test cases are failed. i've correct the formatting of each file now all test cases are running smooth.

Regards,


(system) #8

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.