Skip to content

Commit 08899a2

Browse files
update NoOpResult constructors to be public
Signed-off-by: Varun Bharadwaj <varunbharadwaj1995@gmail.com>
1 parent 0ff0db6 commit 08899a2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4747
- Refactor the Condition.Stats and DirectoryFileTransferTracker.Stats class to use the Builder pattern instead of constructors ([#19862](https://github.com/opensearch-project/OpenSearch/pull/19862))
4848
- Refactor the RemoteTranslogTransferTracker.Stats and RemoteSegmentTransferTracker.Stats class to use the Builder pattern instead of constructors ([#19837](https://github.com/opensearch-project/OpenSearch/pull/19837))
4949
- Add RangeSemver for `dependencies` in `plugin-descriptor.properties` ([#19939](https://github.com/opensearch-project/OpenSearch/pull/19939))
50+
- Update NoOpResult constructors in the Engine to be public ([#19950](https://github.com/opensearch-project/OpenSearch/pull/19950))
5051

5152
### Fixed
5253
- Fix Allocation and Rebalance Constraints of WeightFunction are incorrectly reset ([#19012](https://github.com/opensearch-project/OpenSearch/pull/19012))

server/src/main/java/org/opensearch/index/engine/Engine.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,11 +686,11 @@ public boolean isFound() {
686686
@PublicApi(since = "1.0.0")
687687
public static class NoOpResult extends Result {
688688

689-
NoOpResult(long term, long seqNo) {
689+
public NoOpResult(long term, long seqNo) {
690690
super(Operation.TYPE.NO_OP, 0, term, seqNo);
691691
}
692692

693-
NoOpResult(long term, long seqNo, Exception failure) {
693+
public NoOpResult(long term, long seqNo, Exception failure) {
694694
super(Operation.TYPE.NO_OP, failure, 0, term, seqNo);
695695
}
696696

0 commit comments

Comments
 (0)