Skip to content

Commit

Permalink
Update Changelog
Browse files Browse the repository at this point in the history
Signed-off-by: Rabi Panda <adnapibar@gmail.com>
  • Loading branch information
adnapibar committed Jan 18, 2023
1 parent e32414e commit bd480d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Add query for initialized extensions ([#5658](https://github.com/opensearch-project/OpenSearch/pull/5658))
- Revert 'Added jackson dependency to server' and change extension reading ([#5768](https://github.com/opensearch-project/OpenSearch/pull/5768))
- Add support to disallow search request with preference parameter with strict weighted shard routing([#5874](https://github.com/opensearch-project/OpenSearch/pull/5874))
- Add update settings allowlist for searchable snapshot ([#5907](https://github.com/opensearch-project/OpenSearch/pull/5907))

### Dependencies
- Bumps `log4j-core` from 2.18.0 to 2.19.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ public void testSearchableSnapshotIndexIsReadOnly() throws Exception {
restoreSnapshotAndEnsureGreen(client, snapshotName, repoName);

assertIndexingBlocked(restoredIndexName);
assertIndexSettingChangeBlocked(restoredIndexName);
assertAllowedIndexSettingUpdate(restoredIndexName);
assertUpdateIndexSettingsDefault(restoredIndexName);
assertUpdateIndexSettingsAllowList(restoredIndexName);
assertTrue(client.admin().indices().prepareDelete(restoredIndexName).get().isAcknowledged());
assertThrows(
"Expect index to not exist",
Expand Down Expand Up @@ -328,7 +328,7 @@ private void assertIndexingBlocked(String index) {
}
}

private void assertIndexSettingChangeBlocked(String index) {
private void assertUpdateIndexSettingsDefault(String index) {
try {
final UpdateSettingsRequestBuilder builder = client().admin().indices().prepareUpdateSettings(index);
builder.setSettings(Map.of("index.refresh_interval", 10));
Expand All @@ -339,7 +339,7 @@ private void assertIndexSettingChangeBlocked(String index) {
}
}

private void assertAllowedIndexSettingUpdate(String index) {
private void assertUpdateIndexSettingsAllowList(String index) {
final UpdateSettingsRequestBuilder builder = client().admin().indices().prepareUpdateSettings(index);
builder.setSettings(Map.of("index.max_result_window", 100));
AcknowledgedResponse settingsResponse = builder.execute().actionGet();
Expand Down

0 comments on commit bd480d1

Please sign in to comment.