chronix.server icon indicating copy to clipboard operation
chronix.server copied to clipboard

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

Open Rishi0405 opened this issue 5 years ago • 3 comments

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 avatar Dec 30 '19 12:12 Rishi0405

@FlorianLautenschlager Could you able to replicate this issue?

Rishi0405 avatar Jan 13 '20 11:01 Rishi0405

Hi @Rishi0405,

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

Question:

  • How many points are stored in a document? The behavior you describe, often occurs if you have very few points per document?

Kind Regards, Florian

FlorianLautenschlager avatar Jan 13 '20 20:01 FlorianLautenschlager

@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.

Rishi0405 avatar Mar 09 '20 11:03 Rishi0405