JSON not wellformed in large responses


Where are developing a report tool based on info store in druid. For that we are using Apache Calcite so we can use window functions over druid data.

The thing is that sometimes the response of druid is missing the final character – (json’s array close character). Example:

Quering data filtered by one hour info:

-rw-r--r--  1 dani  wheel   138M  6 mar 13:55 result_hour.json

tail -1  result_hour.json
} ]

It could be the same reason of my issue as well: https://groups.google.com/forum/#!topic/druid-user/DCG9F84k5OQ

Just as a note, I see these lines of logs in Historical node that may be useful:

2020-03-10T07:14:58,866 WARN [**] org.apache.druid.segment.ReferenceCountingSegment - close() is called more than once on ReferenceCountingSegment.decrementOnceCloseable()

2020-03-10T07:14:58,877 ERROR [**] org.apache.druid.server.QueryResource - Unable to send query response. (com.fasterxml.jackson.databind.JsonMappingException: [no message for org.apache.druid.query.QueryInterruptedException])

2020-03-10T07:14:58,881 WARN [*] org.eclipse.jetty.server.HttpChannel - /druid/v2/ com.fasterxml.jackson.databind.JsonMappingException: [no message for org.apache.druid.query.QueryInterruptedException]

Have faced the same issue at our side also. This is not a consistent issue which occurs at our side but faced same issue sometime.

We are having a REST layer which is invoking the query on broker and not using any analytics tool.



Using IMPLY 3.0.16 version of druid.