-
Notifications
You must be signed in to change notification settings - Fork 1.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
[BUG] Deserialization of SearchRequest
crashes
#7829
Comments
@Yury-Fridlyand I think there is a problem with your test code. You should replace
with
You must use a Does this answer solve your problem? If this doesn't help can you share more about the specific use case where you encountered this? |
Hi @andrross, |
I am using SearchRequest in org.opensearch.client.opensearch.core . There is no writeTo method here. |
@kdh6429 You're using the class in opensearch-java, which is the recommended Java client. The class in question here is from the rest client built into the OpenSearch distribution, and is no longer recommended in favor of opensearch-java. |
SQL plugin team presents...
Describe the bug
Deserialization of a serialized
SearchRequest
crashes.To Reproduce
Run a unit test from the attached diff:
SearchRequest-deserialization-test.patch
I added this test in
server/src/test/java/org/opensearch/action/search/SearchRequestTests.java
Exception stack:
Expected behavior
Test should pass
Plugins
N/A
Screenshots
N/A
Host/Environment
main
@ a201400Additional context
Detected on
SearchRequest
, but scope could be much bigger.The text was updated successfully, but these errors were encountered: