diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e4e63d83cdd7..2350702495beb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,7 +50,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Add RangeSemver for `dependencies` in `plugin-descriptor.properties` ([#19939](https://github.com/opensearch-project/OpenSearch/pull/19939)) - Refactor the FieldDataStats and CompletionStats class to use the Builder pattern instead of constructors ([#19936](https://github.com/opensearch-project/OpenSearch/pull/19936)) - Thread Context Preservation by gRPC Interceptor ([#19776](https://github.com/opensearch-project/OpenSearch/pull/19776)) - +- Update NoOpResult constructors in the Engine to be public ([#19950](https://github.com/opensearch-project/OpenSearch/pull/19950)) ### Fixed - Fix Allocation and Rebalance Constraints of WeightFunction are incorrectly reset ([#19012](https://github.com/opensearch-project/OpenSearch/pull/19012)) diff --git a/server/src/main/java/org/opensearch/index/engine/Engine.java b/server/src/main/java/org/opensearch/index/engine/Engine.java index 2c42a72005c95..42fa1bfdee22d 100644 --- a/server/src/main/java/org/opensearch/index/engine/Engine.java +++ b/server/src/main/java/org/opensearch/index/engine/Engine.java @@ -686,11 +686,11 @@ public boolean isFound() { @PublicApi(since = "1.0.0") public static class NoOpResult extends Result { - NoOpResult(long term, long seqNo) { + public NoOpResult(long term, long seqNo) { super(Operation.TYPE.NO_OP, 0, term, seqNo); } - NoOpResult(long term, long seqNo, Exception failure) { + public NoOpResult(long term, long seqNo, Exception failure) { super(Operation.TYPE.NO_OP, failure, 0, term, seqNo); }