-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After restart elasticsearch reads double as array of string #5705
Comments
This might be related to #5623. |
@imotov can you try to verify with @AleXeyMedVed that this is fixed now? |
@AleXeyMedVed could you try reproducing this issue to see if it was fixed in the latest nightly build? |
I can break it again:
Voila:
|
@AleXeyMedVed do you see any exceptions in the log files? |
Exception for query like mentioned in my prev comment:
Exceptions appeared on restart mentioned in prev comment:
Maybe I can provide you a trace of execution or broken index file somehow? |
@AleXeyMedVed was index logstash-2014.04.15.08 created with the nightly build or before you upgraded? Could you run |
|
@AleXeyMedVed your mapping looks fine after restart, so I am thinking it might be actually an MVEL issue. For some reason MVEL thinks that it should compare two doubles as strings in your case. I tried to reproduce this issue locally but didn't succeed so far. Any chance you can try reproducing it using javascript instead of MVEL? |
MVEL just helps me to show what data actually we operating on. Sorry for misleading queries. It's not an MVEL issue for sure because of:
Exception for this kind of query:
|
@AleXeyMedVed this is different. Here you are searching the yesterday's index |
That looks like a duplicate of #5623 after all. Please, feel free to reopen if you have any additional data points. |
Well, I fixed this problem for myself by using long for time fields :) |
Have same problem with Elastic 1.4.4. Query result without scripting:
Query result with scripting:
Result of
|
@UnderGreen please can you open a new issue with all the details. Although I have a sneaking suspicion that this is an issue with dynamic mappings being applied asynchronously. See #8688 for more |
Hello, first of all I want to say you making crazy useful things, guys, thank you!
I have two elasticsearch twin (versions, configuration, everything) servers with the same data, replicated by logstash: ES1 and ES2. ES1 I restarted for a few hours ago and now I have a problems.
My mapping for logstash type, same for both servers.
Query (I'm using Sense add-on)
ES2, everything is normal:
ES1: Ooops!
It's most obvious demonstration of my problem. Another thing is when I'm using data_histogram facet (in kibana) I got ClassCastException[org.elasticsearch.index.fielddata.plain.PagedBytesIndexFieldData cannot be cast to org.elasticsearch.index.fielddata.IndexNumericFieldData.
Purging all indexes fixes problem. Not only new, but old data too misenterpreted as arrays of one string.
Well, I want my doubles back. :)
The text was updated successfully, but these errors were encountered: