ChronixDB / chronix.server

The Chronix Server implementation that is based on Apache Solr.
Apache License 2.0
263 stars 29 forks source link

querying chronix with cj=unknown_field makes chronix throw out of memory exception #156

Open Rishi0405 opened 4 years ago

Rishi0405 commented 4 years ago

Hi,

I queried chronix with cj=some_field, few documents don't have the field I used with cj, after few seconds CPU processing went 100% and after some time it throws out of memory exception.

Sample data

{
"type":"metric",
"name":"m12",
"start":1577701965293,
"end":1577701965293,  "data":"H4sIAAAAAAAAAOPi1Dx7BgRq7Ll4FR4sF9JkgAIuJgNGLk7NWTNBQNOei00AKGvAKMAAAFjYSa0zAAAA",
}

Query http://localhost:8983/solr/chronix/select?_=1577708759371&cj=someField&q=*:*&rows=10&start=0

Thanks, Rishi

Rishi0405 commented 4 years ago

@FlorianLautenschlager Could you able to replicate this issue?

FlorianLautenschlager commented 4 years ago

Hi @Rishi0405,

thank you for your ticket. I was on vacation and I have lot on my plate in the new year.

Question:

Kind Regards, Florian

Rishi0405 commented 4 years ago

@FlorianLautenschlager I am not sure about the points count in the document. But in my test case, I have tested with fewer points. However, I am also getting "null" in join_key if the specified CJ field is set as optional in solr schema.