Skip to content

Conversation

@Jinny-Wang
Copy link
Contributor

@Jinny-Wang Jinny-Wang commented Sep 11, 2025

Description

  • change Engine.Result#setTranslogLocation() setTook() freeze() to be public so that they can be called from extension of Engine

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • [done ] Functionality includes testing.
  • [N/A ] API changes companion pull request created, if applicable.
  • [N/A ] Public documentation issue/PR created, if applicable.

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.

Issue #19276

@Jinny-Wang Jinny-Wang force-pushed the publicize-engine-calls branch from c194078 to b06de0c Compare September 11, 2025 22:51
Signed-off-by: jinnyw <[email protected]>
@Jinny-Wang
Copy link
Contributor Author

Hi @yupeng9 @msfroh @andrross Could you help review this? It's a follow up of #19091
#19132

@github-actions
Copy link
Contributor

✅ Gradle check result for 91978ce: SUCCESS

@codecov
Copy link

codecov bot commented Sep 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.94%. Comparing base (c012a51) to head (91978ce).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #19275      +/-   ##
============================================
+ Coverage     72.92%   72.94%   +0.01%     
+ Complexity    69779    69778       -1     
============================================
  Files          5665     5665              
  Lines        320521   320521              
  Branches      46396    46396              
============================================
+ Hits         233739   233791      +52     
+ Misses        67854    67840      -14     
+ Partials      18928    18890      -38     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@yupeng9 yupeng9 left a comment

Choose a reason for hiding this comment

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

this looks reasonably safe change to me

Copy link
Contributor

@msfroh msfroh left a comment

Choose a reason for hiding this comment

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

Given that we have the freeze method already to lock down these mutators, making them public should only open them up to custom Engine implementations, which is the whole point of this PR.

@msfroh msfroh merged commit bd914cb into opensearch-project:main Sep 12, 2025
31 checks passed
jainankitk pushed a commit to jainankitk/OpenSearch that referenced this pull request Sep 22, 2025
opensearch-project#19275)

Make Engine.Result#setTransLogLocation(), setTook(), and freeze() public
so that they can be called from plugins that implement a custom Engine.

---------

Signed-off-by: jinnyw <[email protected]>
Co-authored-by: jinnyw <[email protected]>
jainankitk pushed a commit to jainankitk/OpenSearch that referenced this pull request Sep 22, 2025
opensearch-project#19275)

Make Engine.Result#setTransLogLocation(), setTook(), and freeze() public
so that they can be called from plugins that implement a custom Engine.

---------

Signed-off-by: jinnyw <[email protected]>
Co-authored-by: jinnyw <[email protected]>
Signed-off-by: Ankit Jain <[email protected]>
jainankitk pushed a commit to jainankitk/OpenSearch that referenced this pull request Sep 22, 2025
opensearch-project#19275)

Make Engine.Result#setTransLogLocation(), setTook(), and freeze() public
so that they can be called from plugins that implement a custom Engine.

---------

Signed-off-by: jinnyw <[email protected]>
Co-authored-by: jinnyw <[email protected]>
Signed-off-by: Ankit Jain <[email protected]>
asimmahmood1 pushed a commit to jainankitk/OpenSearch that referenced this pull request Sep 23, 2025
opensearch-project#19275)

Make Engine.Result#setTransLogLocation(), setTook(), and freeze() public
so that they can be called from plugins that implement a custom Engine.

---------

Signed-off-by: jinnyw <[email protected]>
Co-authored-by: jinnyw <[email protected]>
pranikum pushed a commit to pranikum/OpenSearch that referenced this pull request Sep 23, 2025
opensearch-project#19275)

Make Engine.Result#setTransLogLocation(), setTook(), and freeze() public
so that they can be called from plugins that implement a custom Engine.

---------

Signed-off-by: jinnyw <[email protected]>
Co-authored-by: jinnyw <[email protected]>
vinaykpud pushed a commit to vinaykpud/OpenSearch that referenced this pull request Sep 26, 2025
opensearch-project#19275)

Make Engine.Result#setTransLogLocation(), setTook(), and freeze() public
so that they can be called from plugins that implement a custom Engine.

---------

Signed-off-by: jinnyw <[email protected]>
Co-authored-by: jinnyw <[email protected]>
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.

4 participants