-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
DateFormat incompatibility between 6.x and 7.x #40913
Comments
Pinging @elastic/es-core-infra |
Should the pattern before the upgrade from 6.x to 7.x be prefixed with how about patterns like these? |
Pinging @elastic/es-search |
I have discovered this too. in 6.x this worked: in 7.x it fails - but the work around I found is changing the So in 7.x this works: not sure why the two lowercase |
A stuck peer recovery in #40913 reveals that we indefinitely retry on new cluster states if indexing translog operations hits a mapper exception. We should not wait and retry if the mapping on the target is as recent as the mapping that the primary used to index the replaying operations. Relates #40913
A stuck peer recovery in elastic#40913 reveals that we indefinitely retry on new cluster states if indexing translog operations hits a mapper exception. We should not wait and retry if the mapping on the target is as recent as the mapping that the primary used to index the replaying operations. Relates elastic#40913
A stuck peer recovery in elastic#40913 reveals that we indefinitely retry on new cluster states if indexing translog operations hits a mapper exception. We should not wait and retry if the mapping on the target is as recent as the mapping that the primary used to index the replaying operations. Relates elastic#40913
@jaredmcqueen on what scenario was this failing for you? Was this the ML upgrade too? you can use You can use 'XXX' pattern if you want to allow ONLY |
The scenario it was failing was general index mappings. I was trying to index ISO 8601 datetimes. |
A stuck peer recovery in elastic#40913 reveals that we indefinitely retry on new cluster states if indexing translog operations hits a mapper exception. We should not wait and retry if the mapping on the target is as recent as the mapping that the primary used to index the replaying operations. Relates elastic#40913
NB,bro |
@ywelsch are you ok if I close this issue? This problem occurred because the incorrect pattern was used - missing 8 prefix and Z instead of X |
Yes, you can close the issue if you think this is resolved. |
QA testing of ML functionality in an upgrade from 6.7.1 to 7.0.0-rc2 revealed an issue where moving shards from 6.7.1 to 7.0.0-rc2 nodes were getting stuck in the translog phase. The reason for this was that the 7.0.0-rc2 would not be able to parse the documents from the 6.7.1 node, internally throwing a
MapperParsingException
of the formfailed to parse field [@timestamp] of type [date] in document with id 'AVr3KgpQqy1yzebk-FVk'
. This would in turn make the peer recovery hang, as the node with theMapperParsingException
would indefinitely wait for a cluster state update with an updated mapping. This issue does not only present a problem for rolling upgrades, but also does not allow any peer recovery of that index in a pure 7.x cluster unless the translog with the corresponding documents is completely purged.The problematic dateformat field in the mappings of the index looked as follows:
The documents were of the form
The problem seems to be an incompatibility between 6.x and 7.x when it comes to date format parsing, possibly related to #27330
The following test illustrates the problem on 7.x:
and the corresponding test on 6.x passes:
Involved in this investigation: @pheyos and @dolaru (ML QA), @joegallo (Cloud, where rolling upgrades got stuck), @dnhatn (ES debugging + tests)
The text was updated successfully, but these errors were encountered: