Fixed geo point block loader slowness#136147
Conversation
|
Hi @Kubik42, I've created a changelog YAML for you. |
e7afa0b to
1f168f2
Compare
server/src/main/java/org/elasticsearch/index/mapper/GeoPointFieldMapper.java
Show resolved
Hide resolved
|
The reason for failing tests is here. Whenever there is no Perhaps the bigger problem here is that |
|
In my rabbit hole of understanding how BlockLoaders work, I found a somewhat of a bug thats in main. When a For example, the following command fails: with: Based on what I've read in the code, this precision loss is expected. That being said, its not documented publicly. |
|
There is also a problem with using When block loading, I get the error: My guess is that it has something to do with the geo_point being stored as a String, rather than being converted to WKT first. That said, even when I used For now, I've just followed what we do in GeoShapeWithDocValuesFieldMapper and changed the block loader to This needs further discussion. |
1f168f2 to
b586f4c
Compare
server/src/main/java/org/elasticsearch/index/mapper/GeoPointFieldMapper.java
Outdated
Show resolved
Hide resolved
|
I did a little more investigating and found that the reason we end up with This got me thinking, why are we setting the preference to However, doing so causes some type inequality exceptions. Nhat pointed out this code, which suggests that doc_values shouldn't be always be used. However, that conflicts with the definition of |
adc51f9 to
5cedfba
Compare
server/src/main/java/org/elasticsearch/index/mapper/GeoPointFieldMapper.java
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/index/mapper/GeoPointFieldMapper.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/index/mapper/IndexType.java
Outdated
Show resolved
Hide resolved
test/framework/src/main/java/org/elasticsearch/index/mapper/TestBlock.java
Show resolved
Hide resolved
server/src/test/java/org/elasticsearch/index/mapper/GeoPointFieldTypeTests.java
Show resolved
Hide resolved
9f1057d to
c24d31e
Compare
|
Just adding what I've learned: The issue is that Perhaps using All of this can be avoided if we just stick to reading longs and not doing conversions. But to facilitate that, we need to be able to correctly set the |
|
Severless checks are failing bc AWS is experiencing an LSE |
* Fixed geo point block loader slowness * Fixed precision issue * Addressed feedback * Reverted TestBlock changes * [CI] Auto commit changes from spotless * Replaced bytesRefsFromDocValues with bytesRefs * Fixed geo point block loader slowness * Revert "Fixed geo point block loader slowness" This reverts commit cac43c4. * Fixed failing tests after rebasing against main * Update docs/changelog/136147.yaml * Addressed feedback, added an explanation about bytesRefsFromDocValues() * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co> (cherry picked from commit 0dd761b)
* Fixed geo point block loader slowness * Fixed precision issue * Addressed feedback * Reverted TestBlock changes * [CI] Auto commit changes from spotless * Replaced bytesRefsFromDocValues with bytesRefs * Fixed geo point block loader slowness * Revert "Fixed geo point block loader slowness" This reverts commit cac43c4. * Fixed failing tests after rebasing against main * Update docs/changelog/136147.yaml * Addressed feedback, added an explanation about bytesRefsFromDocValues() * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co> (cherry picked from commit 0dd761b) # Conflicts: # test/framework/src/main/java/org/elasticsearch/index/mapper/TestBlock.java
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
* Fixed geo point block loader slowness * Fixed precision issue * Addressed feedback * Reverted TestBlock changes * [CI] Auto commit changes from spotless * Replaced bytesRefsFromDocValues with bytesRefs * Fixed geo point block loader slowness * Revert "Fixed geo point block loader slowness" This reverts commit cac43c4. * Fixed failing tests after rebasing against main * Update docs/changelog/136147.yaml * Addressed feedback, added an explanation about bytesRefsFromDocValues() * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co> (cherry picked from commit 0dd761b) # Conflicts: # test/framework/src/main/java/org/elasticsearch/index/mapper/TestBlock.java
* Fixed geo point block loader slowness * Fixed precision issue * Addressed feedback * Reverted TestBlock changes * [CI] Auto commit changes from spotless * Replaced bytesRefsFromDocValues with bytesRefs * Fixed geo point block loader slowness * Revert "Fixed geo point block loader slowness" This reverts commit cac43c4. * Fixed failing tests after rebasing against main * Update docs/changelog/136147.yaml * Addressed feedback, added an explanation about bytesRefsFromDocValues() * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co> (cherry picked from commit 0dd761b)
* Fixed geo point block loader slowness * Fixed precision issue * Addressed feedback * Reverted TestBlock changes * [CI] Auto commit changes from spotless * Replaced bytesRefsFromDocValues with bytesRefs * Fixed geo point block loader slowness * Revert "Fixed geo point block loader slowness" This reverts commit cac43c4. * Fixed failing tests after rebasing against main * Update docs/changelog/136147.yaml * Addressed feedback, added an explanation about bytesRefsFromDocValues() * [CI] Auto commit changes from spotless --------- (cherry picked from commit 0dd761b) Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
* Fixed geo point block loader slowness * Fixed precision issue * Addressed feedback * Reverted TestBlock changes * [CI] Auto commit changes from spotless * Replaced bytesRefsFromDocValues with bytesRefs * Fixed geo point block loader slowness * Revert "Fixed geo point block loader slowness" This reverts commit cac43c4. * Fixed failing tests after rebasing against main * Update docs/changelog/136147.yaml * Addressed feedback, added an explanation about bytesRefsFromDocValues() * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co> (cherry picked from commit 0dd761b)
* Fixed geo point block loader slowness * Fixed precision issue * Addressed feedback * Reverted TestBlock changes * [CI] Auto commit changes from spotless * Replaced bytesRefsFromDocValues with bytesRefs * Fixed geo point block loader slowness * Revert "Fixed geo point block loader slowness" This reverts commit cac43c4. * Fixed failing tests after rebasing against main * Update docs/changelog/136147.yaml * Addressed feedback, added an explanation about bytesRefsFromDocValues() * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co> (cherry picked from commit 0dd761b)
* Fixed geo point block loader slowness * Fixed precision issue * Addressed feedback * Reverted TestBlock changes * [CI] Auto commit changes from spotless * Replaced bytesRefsFromDocValues with bytesRefs * Fixed geo point block loader slowness * Revert "Fixed geo point block loader slowness" This reverts commit cac43c4. * Fixed failing tests after rebasing against main * Update docs/changelog/136147.yaml * Addressed feedback, added an explanation about bytesRefsFromDocValues() * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co> (cherry picked from commit 0dd761b)
* Fixed geo point block loader slowness * Fixed precision issue * Addressed feedback * Reverted TestBlock changes * [CI] Auto commit changes from spotless * Replaced bytesRefsFromDocValues with bytesRefs * Fixed geo point block loader slowness * Revert "Fixed geo point block loader slowness" This reverts commit cac43c4. * Fixed failing tests after rebasing against main * Update docs/changelog/136147.yaml * Addressed feedback, added an explanation about bytesRefsFromDocValues() * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co> (cherry picked from commit 0dd761b)
* Fixed geo point block loader slowness * Fixed precision issue * Addressed feedback * Reverted TestBlock changes * [CI] Auto commit changes from spotless * Replaced bytesRefsFromDocValues with bytesRefs * Fixed geo point block loader slowness * Revert "Fixed geo point block loader slowness" This reverts commit cac43c4. * Fixed failing tests after rebasing against main * Update docs/changelog/136147.yaml * Addressed feedback, added an explanation about bytesRefsFromDocValues() * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co> (cherry picked from commit 0dd761b)
* Fixed geo point block loader slowness * Fixed precision issue * Addressed feedback * Reverted TestBlock changes * [CI] Auto commit changes from spotless * Replaced bytesRefsFromDocValues with bytesRefs * Fixed geo point block loader slowness * Revert "Fixed geo point block loader slowness" This reverts commit cac43c4. * Fixed failing tests after rebasing against main * Update docs/changelog/136147.yaml * Addressed feedback, added an explanation about bytesRefsFromDocValues() * [CI] Auto commit changes from spotless --------- (cherry picked from commit 0dd761b) Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
* Fixed geo point block loader slowness * Fixed precision issue * Addressed feedback * Reverted TestBlock changes * [CI] Auto commit changes from spotless * Replaced bytesRefsFromDocValues with bytesRefs * Fixed geo point block loader slowness * Revert "Fixed geo point block loader slowness" This reverts commit cac43c4. * Fixed failing tests after rebasing against main * Update docs/changelog/136147.yaml * Addressed feedback, added an explanation about bytesRefsFromDocValues() * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co> (cherry picked from commit 0dd761b)
* Fixed geo point block loader slowness * Fixed precision issue * Addressed feedback * Reverted TestBlock changes * [CI] Auto commit changes from spotless * Replaced bytesRefsFromDocValues with bytesRefs * Fixed geo point block loader slowness * Revert "Fixed geo point block loader slowness" This reverts commit cac43c4. * Fixed failing tests after rebasing against main * Update docs/changelog/136147.yaml * Addressed feedback, added an explanation about bytesRefsFromDocValues() * [CI] Auto commit changes from spotless --------- (cherry picked from commit 0dd761b) Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
* Fixed geo point block loader slowness * Fixed precision issue * Addressed feedback * Reverted TestBlock changes * [CI] Auto commit changes from spotless * Replaced bytesRefsFromDocValues with bytesRefs * Fixed geo point block loader slowness * Revert "Fixed geo point block loader slowness" This reverts commit cac43c4. * Fixed failing tests after rebasing against main * Update docs/changelog/136147.yaml * Addressed feedback, added an explanation about bytesRefsFromDocValues() * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
This addresses #135891