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
[CI] RestoreTemplateWithMatchOnlyTextMapperIT test failing #107515
Comments
Pinging @elastic/es-search (Team:Search) |
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
Pinging @elastic/es-distributed (Team:Distributed) |
@gmarouli it seems that the test passes you passed wrap the mappings inside {
"_doc": {
"properties": {
"@timestamp": {
"format": "date_optional_time||epoch_millis",
"type": "date"
},
"flag": {
"type": "boolean"
},
"message": {
"type": "match_only_text"
}
}
}
} |
If you store the compressed mapping in |
#78746 seems to be related to this issue |
Looks like the core issue is |
Another way to fix the test is to use |
@arteam thanks for looking into this! I am still a bit baffled why this got triggered by using the type |
While working on #107281 we noticed that when we were running
testPartialRestoreSnapshotThatIncludesDataStream
and we would include the global state, we would get the assertion error that the cluster state size does not match.In this #107514 we introduce a test that demonstrates this issue without any other changes. Looking for other similar failures (#59140), we believe the reason is that there is something being mutated on the local node after the restoration. But this is just an assumption.
We are not sure if this is an issue in restore or in mapping, that's why we added both labels. Please feel free to change this accordingly.
Build scan:
https://gradle-enterprise.elastic.co/s/ceaa7hizih32e/tests/:modules:mapper-extras:internalClusterTest/org.elasticsearch.index.mapper.RestoreTemplateWithMatchOnlyTextMapperIT/test
Reproduction line:
Applicable branches:
main
Reproduces locally?:
Yes
Failure history:
Failure dashboard for
org.elasticsearch.index.mapper.RestoreTemplateWithMatchOnlyTextMapperIT#test
Failure excerpt:
The text was updated successfully, but these errors were encountered: