Skip to content

Commit

Permalink
Comments and CHANGELOG.md
Browse files Browse the repository at this point in the history
Signed-off-by: Shubh Sahu <[email protected]>
  • Loading branch information
Shubh Sahu committed Apr 5, 2024
1 parent 4fd9bf5 commit 90bcd5e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Detect breaking changes on pull requests ([#9044](https://github.com/opensearch-project/OpenSearch/pull/9044))
- Add cluster primary balance contraint for rebalancing with buffer ([#12656](https://github.com/opensearch-project/OpenSearch/pull/12656))
- [Remote Store] Make translog transfer timeout configurable ([#12704](https://github.com/opensearch-project/OpenSearch/pull/12704))
- [Remote Store] Reallow index & cluster default Refresh Interval to be set as -1 ([#12992](https://github.com/opensearch-project/OpenSearch/pull/12992))

### Dependencies
- Bump `org.apache.commons:commons-configuration2` from 2.10.0 to 2.10.1 ([#12896](https://github.com/opensearch-project/OpenSearch/pull/12896))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4485,8 +4485,8 @@ public Durability getTranslogDurability() {
private final AtomicBoolean flushOrRollRunning = new AtomicBoolean();

/**
* Tests whether or not the shard should be Refreshed, if number of translog files breaches the
* threshold count determined by {@code index.translog.max_uncommitted_files_threshold}
* Checks if the shard need to be Refreshed depending on Translog constraints.
* Each Translog type can have it's own decider
* @return {@code true} if the shard should be Refreshed
*/
public boolean shouldRefreshShard() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -654,9 +654,9 @@ int availablePermits() {
}

/**
* Tests whether or not the shard should be Refreshed.
* This test is based on the number of Translog files compared to configured number of Translog files threshold
*
* Checks whether or not the shard should be Refreshed.
* This checks if number of translog files breaches the threshold count determined by
* {@code cluster.remote_store.max_referenced_translog_files} setting
* @return {@code true} if the shard should be Refreshed
*/
@Override
Expand Down

0 comments on commit 90bcd5e

Please sign in to comment.