gentle-portugal-21014
02/13/2023, 12:09 PMat com.linkedin.metadata.search.client.CachingEntitySearchService.search(CachingEntitySearchService.java:54)
at com.linkedin.metadata.search.aggregator.AllEntitiesSearchAggregator.lambda$getSearchResultsForEachEntity$2(AllEntitiesSearchAggregator.java:161)
at com.linkedin.metadata.utils.ConcurrencyUtils.lambda$transformAndCollectAsync$0(ConcurrencyUtils.java:24)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Suppressed: org.elasticsearch.client.ResponseException: method [POST], host [<http://elasticsearch:9200>], URI [/glossarytermindex_v2/_search?typed_keys=true&max_concurrent_shard_requests=5&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=true&ignore_throttled=true&search_type=query_then_fetch&batched_reduce_size=512&ccs_minimize_roundtrips=true], status line [HTTP/1.1 400 Bad Request]
error={"root_cause":[{"type":"query_shard_exception","reason":"failed to create query: Can't parse boolean value [architektura], expected [true] or [false]","index_uuid":"CDpqvb1FRB2F8rVTA53BVA","index":"glossarytermindex_v2"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"glossarytermindex_v2","node":"hYLiXc5_SCa0D2KGNC172Q","reason":{"type":"query_shard_exception","reason":"failed to create query: Can't parse boolean value [architektura], expected [true] or [false]","index_uuid":"CDpqvb1FRB2F8rVTA53BVA","index":"glossarytermindex_v2","caused_by":{"type":"illegal_argument_exception","reason":"Can't parse boolean value [architektura], expected [true] or [false]"}}}]} status=400
(there are more lines in the stack trace, but I believe that the most important lines are included this way). The string "architektura" appearing in the exception record at the bottom was my searched term. The important point is that we extended the Glossary Term entity by adding additional aspects with new attributes (as discussed elsewhere) including getting those new attributes supported in searching and filtering (I can share the PDL files for the added aspects here if necessary, of course). This happens on a completely new DataHub deployment of a forked repository (our last resync/merge includes commit a164bdab) with our modifications, i.e. both MySQL and Elastic Search databases were created from scratch (we used the option without Neo4J) and Glossary Terms were created anew after this deployment, i.e. there were no changes in the metamodel since the Elastic Search index was created. I tried restoring indices using the POST method provided within the GMS API for all URNs found in the MySQL database (as discussed elsewhere, I couldn't use the datahub-upgrade image due to our metamodel extensions), but that didn't help. Any help would be very appreciated...astonishing-answer-96712
02/13/2023, 8:20 PMgentle-portugal-21014
02/13/2023, 10:08 PMbig-carpet-38439
02/13/2023, 10:41 PMbig-carpet-38439
02/13/2023, 10:41 PMbig-carpet-38439
02/13/2023, 10:41 PMbig-carpet-38439
02/13/2023, 10:41 PMgentle-portugal-21014
02/14/2023, 12:12 AMbrainy-tent-14503
02/14/2023, 5:14 PMglossarytermindex_v2/_mapping index. Can we look at that for which field(s) are booleans. It almost seems like the query filter might be taking the query and searching for the value in these boolean fields. We would indeed look for cases where the mapping is boolean and the pdl model is queryByDefault=truebrainy-tent-14503
02/14/2023, 5:15 PMbrainy-tent-14503
02/14/2023, 5:16 PM_mappingbrainy-tent-14503
02/14/2023, 5:22 PMhttp://<server>/glossarytermindex_v2/_mappingbrainy-tent-14503
02/14/2023, 5:24 PMglossarytermindex_v2/_mappinggentle-portugal-21014
02/14/2023, 5:49 PMgentle-portugal-21014
02/14/2023, 5:51 PMgentle-portugal-21014
02/16/2023, 4:11 PMgentle-portugal-21014
03/01/2023, 2:11 PM