-
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] Direct self-reference leading to cycle #1891
Comments
Hi @ersinoracle, Could you share the object before the serialization? the output of bulkResponse.getItems(), so we can reproduce it. In addition, could share more details about your use-case? what is the problem you are trying to solve? |
Please see the answers below. Use-case:
Problem:
Files attached (had to add |
Any updates yet? |
I labeled this for 1.3.0 so we don't miss it. @ersinoracle Try turning this into a unit test if you have a moment? |
@dblock I, unfortunately, won't have time to write a unit test for this. But, I'll be waiting for you to address and resolve the issue hopefully in 1.3.0. |
Hey @ersinoracle, Sorry for being late. are you currently try to use elasticsearch client to query OpenSearch cluster.?Because the error has elasticsearch, I want to confirm this before diving into the issue. |
Hi @anasalkouz, yes we still have been using it to query the OpenSearch cluster. |
Starting with version 7.14, multiple of the clients maintained by Elastic start to fail query OpenSearch Cluster. I would recommend update it to the equivalent OpenSearch client. See this blog for more details |
@anasalkouz this issue is tagged 2.1.0. |
Closing this issue. @ie-senol let me know if there is anything still pending on this to reopen. |
Describe the bug
When a failure is met with one or more operations included in the bulk request, the
ObjectMapper.writeValueAsString
that we use to convert the bulk response throws the following exception:and fails to convert the Bulkresponse.
With ElasticSearch, however, it works just fine and never throws this exception.
We use RestHighLevelClient for both.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
ObjectMapper.writeValueAsString should return JSON formatted text output of Bulkresponse without exception.
Plugins
Please see the list of all plugins currently enabled.
Host/Environment (please complete the following information):
Additional context
The same code doesn't throw any exception and works well with ElasticSearch.
The text was updated successfully, but these errors were encountered: