Skip to content
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

Fix es_scan_reader_test in debug mode #1905

Merged
merged 1 commit into from
Sep 27, 2019

Conversation

kangkaisen
Copy link
Contributor

es_scan_reader_test: /home/kangkaisen/palo/thirdparty/installed/include/rapidjson/document.h:1053: rapidjson::GenericValue<Encoding, Allocator>& rapidjson::GenericValue<Encoding, Allocator>::operator[](const rapidjson::GenericValue<Encoding, SourceAllocator>&) [with SourceAllocator = rapidjson::MemoryPoolAllocator<>; Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>]: Assertion `false' failed.
run-ut.sh: line 140: 194835 Aborted                 (core dumped) ${DORIS_TEST_BINARY_DIR}/exec/es_scan_reader_test

The mock_es_server response:

{"_scroll_id":"1","hits":{"total":10,"hits":[{"id":1,"value":"1"}]}}
{"_scroll_id":"2","hits":{"total":10,"hits":[{"id":2,"value":"2"}]}}
{"_scroll_id":"3","hits":{"total":10,"hits":[{"id":3,"value":"3"}]}}
{"_scroll_id":"4","hits":{"total":10,"hits":[{"id":4,"value":"4"}]}}
{"_scroll_id":"5","hits":{"total":10,"hits":[{"id":5,"value":"5"}]}}
{"_scroll_id":"6","hits":{"total":10,"hits":[{"id":6,"value":"6"}]}}
{"_scroll_id":"7","hits":{"total":10,"hits":[{"id":7,"value":"7"}]}}
{"_scroll_id":"8","hits":{"total":10,"hits":[{"id":8,"value":"8"}]}}
{"_scroll_id":"9","hits":{"total":10,"hits":[{"id":9,"value":"9"}]}}
{"_scroll_id":"10","hits":{"total":10,"hits":[{"id":10,"value":"10"}]}}
{"_scroll_id":"11","hits":{"total":10,"hits":[{"id":11,"value":"11"}]}}
{"_scroll_id":"11","hits":{"total":10}}

Copy link
Contributor

@imay imay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@imay imay merged commit 1c229fb into apache:master Sep 27, 2019
SWJTU-ZhangLei added a commit to SWJTU-ZhangLei/incubator-doris that referenced this pull request Jul 25, 2023
* This change _may_ fix "Failed to execute sql: java.lang.ClassCastException: java.util.LinkedHashMap$Entry cannot be cast to java.util.HashMap$TreeNode
morningman pushed a commit that referenced this pull request Jan 29, 2024
Issue Number: close #30484

problem:
gson will use Java's reflection mechanism to generate a default Adapter, but JDK17 is prohibited from visiting such an access.

solution:
gson has provided solutions since 2.9.1, which can bypass this problem: Add support for reflection access filter by Marcono1234 · Pull Request #1905 · google/gson

We need to upgrade the gson version and use this solution
yiguolei pushed a commit that referenced this pull request Jan 30, 2024
Issue Number: close #30484

problem:
gson will use Java's reflection mechanism to generate a default Adapter, but JDK17 is prohibited from visiting such an access.

solution:
gson has provided solutions since 2.9.1, which can bypass this problem: Add support for reflection access filter by Marcono1234 · Pull Request #1905 · google/gson

We need to upgrade the gson version and use this solution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants