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

Add comment to XContentBuilder.toString() #13809

Merged
merged 3 commits into from
Jun 3, 2024
Merged

Conversation

chishui
Copy link
Contributor

@chishui chishui commented May 24, 2024

Description

Add comments to XContentBuilder.toString() to call out that calling this method could close the builder.

Related Issues

Resolves #13731

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • API changes companion pull request created.
  • Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • Public documentation issue/PR created

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>
@chishui
Copy link
Contributor Author

chishui commented May 24, 2024

Changelog is not needed.

Copy link
Contributor

❕ Gradle check result for 17f01d1: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link

codecov bot commented May 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.76%. Comparing base (b15cb0c) to head (e7e736e).
Report is 333 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #13809      +/-   ##
============================================
+ Coverage     71.42%   71.76%   +0.34%     
- Complexity    59978    61378    +1400     
============================================
  Files          4985     5065      +80     
  Lines        282275   288124    +5849     
  Branches      40946    41719     +773     
============================================
+ Hits         201603   206777    +5174     
- Misses        63999    64278     +279     
- Partials      16673    17069     +396     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>
Copy link
Contributor

❌ Gradle check result for 5cc0a04: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions github-actions bot added the Libraries Lucene Upgrades and Libraries, Any 3rd party library that Core depends on, ex: nebula; team is respo label May 24, 2024
Copy link
Contributor

❌ Gradle check result for 5cc0a04: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

❌ Gradle check result for 5cc0a04: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@andrross
Copy link
Member

❌ Gradle check result for 5cc0a04: FAILURE

#10006
#13473

Copy link
Contributor

❌ Gradle check result for 5cc0a04: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

github-actions bot commented Jun 3, 2024

✅ Gradle check result for e7e736e: SUCCESS

@chishui
Copy link
Contributor Author

chishui commented Jun 3, 2024

@dblock the change your requested has been addressed, could you take a look?

@dblock dblock added the backport 2.x Backport to 2.x branch label Jun 3, 2024
@dblock dblock merged commit bf43678 into opensearch-project:main Jun 3, 2024
33 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 3, 2024
* Add comment to XContentBuilder.toString

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>

* Fix typo

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>

---------

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>
(cherry picked from commit bf43678)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dblock pushed a commit that referenced this pull request Jun 3, 2024
* Add comment to XContentBuilder.toString



* Fix typo



---------


(cherry picked from commit bf43678)

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this pull request Jun 5, 2024
* Add comment to XContentBuilder.toString

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>

* Fix typo

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>

---------

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>
parv0201 pushed a commit to parv0201/OpenSearch that referenced this pull request Jun 10, 2024
* Add comment to XContentBuilder.toString

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>

* Fix typo

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>

---------

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>
kkewwei pushed a commit to kkewwei/OpenSearch that referenced this pull request Jul 24, 2024
…pensearch-project#13932)

* Add comment to XContentBuilder.toString

* Fix typo

---------

(cherry picked from commit bf43678)

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: kkewwei <kkewwei@163.com>
wdongyu pushed a commit to wdongyu/OpenSearch that referenced this pull request Aug 22, 2024
* Add comment to XContentBuilder.toString

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>

* Fix typo

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>

---------

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch bug Something isn't working Libraries Lucene Upgrades and Libraries, Any 3rd party library that Core depends on, ex: nebula; team is respo skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] XContentBuilder.toString() will close the builder itself
4 participants