Skip to content

Commit 8cbda3b

Browse files
committed
Merge remote-tracking branch 'upstream/main' into fix_max_score
2 parents dd22139 + f1825fd commit 8cbda3b

File tree

40 files changed

+349
-201
lines changed

40 files changed

+349
-201
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77
### Added
88
- Add support for Warm Indices Write Block on Flood Watermark breach ([#18375](https://github.com/opensearch-project/OpenSearch/pull/18375))
99
- Add support for custom index name resolver from cluster plugin ([#18593](https://github.com/opensearch-project/OpenSearch/pull/18593))
10+
- Rename WorkloadGroupTestUtil to WorkloadManagementTestUtil ([#18709](https://github.com/opensearch-project/OpenSearch/pull/18709))
1011
- Disallow resize for Warm Index, add Parameterized ITs for close in remote store ([#18686](https://github.com/opensearch-project/OpenSearch/pull/18686))
1112
- Ability to run Code Coverage with Gradle and produce the jacoco reports locally ([#18509](https://github.com/opensearch-project/OpenSearch/issues/18509))
13+
- [Workload Management] Update logging and Javadoc, rename QueryGroup to WorkloadGroup ([#18711](https://github.com/opensearch-project/OpenSearch/issues/18711))
1214
- Add NodeResourceUsageStats to ClusterInfo ([#18480](https://github.com/opensearch-project/OpenSearch/issues/18472))
1315
- Introduce SecureHttpTransportParameters experimental API (to complement SecureTransportParameters counterpart) ([#18572](https://github.com/opensearch-project/OpenSearch/issues/18572))
1416
- Create equivalents of JSM's AccessController in the java agent ([#18346](https://github.com/opensearch-project/OpenSearch/issues/18346))
@@ -41,6 +43,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4143
- Bump `org.bouncycastle:bcpkix-fips` from 2.0.7 to 2.0.8 ([#18668](https://github.com/opensearch-project/OpenSearch/pull/18668))
4244
- Bump `org.bouncycastle:bcpg-fips` from 2.0.10 to 2.0.11 ([#18668](https://github.com/opensearch-project/OpenSearch/pull/18668))
4345
- Bump `com.password4j:password4j` from 1.8.2 to 1.8.3 ([#18668](https://github.com/opensearch-project/OpenSearch/pull/18668))
46+
- Bump `com.azure:azure-core` from 1.55.3 to 1.55.5 ([#18691](https://github.com/opensearch-project/OpenSearch/pull/18691))
4447

4548
### Deprecated
4649

@@ -56,6 +59,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5659
- Fix the backward compatibility regression with COMPLEMENT for Regexp queries introduced in OpenSearch 3.0 ([#18640](https://github.com/opensearch-project/OpenSearch/pull/18640))
5760
- Fix Replication lag computation ([#18602](https://github.com/opensearch-project/OpenSearch/pull/18602))
5861
- Fix max_score is null when sorting on score firstly ([#18715](https://github.com/opensearch-project/OpenSearch/pull/18715))
62+
- Fixed Staggered merge - load average replace with AverageTrackers, some Default thresholds modified ([#18666](https://github.com/opensearch-project/OpenSearch/pull/18666))
5963

6064
### Security
6165

modules/autotagging-commons/common/src/main/java/org/opensearch/rule/autotagging/Rule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* of a rule. The indexed view may differ in representation.
3232
* {
3333
* "id": "fwehf8302582mglfio349==",
34-
* "description": "Assign Query Group for Index Logs123"
34+
* "description": "Assign Workload Group for Index Logs123"
3535
* "index_pattern": ["logs123"],
3636
* "workload_group": "dev_workload_group_id",
3737
* "updated_at": "01-10-2025T21:23:21.456Z"

plugins/repository-azure/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ opensearchplugin {
4444
}
4545

4646
dependencies {
47-
api 'com.azure:azure-core:1.55.3'
47+
api 'com.azure:azure-core:1.55.5'
4848
api 'com.azure:azure-json:1.5.0'
4949
api 'com.azure:azure-xml:1.2.0'
5050
api 'com.azure:azure-storage-common:12.29.0'

plugins/repository-azure/licenses/azure-core-1.55.3.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
93227034496e2a0dc0b7babcbba57f5a6bb8b4cb

plugins/workload-management/src/main/java/org/opensearch/plugin/wlm/action/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
*/
88

99
/**
10-
* Package for the action classes related to query groups in WorkloadManagementPlugin
10+
* Package for the action classes related to workload groups in WorkloadManagementPlugin
1111
*/
1212
package org.opensearch.plugin.wlm.action;

plugins/workload-management/src/main/java/org/opensearch/plugin/wlm/rest/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
*/
88

99
/**
10-
* Package for the rest classes related to query groups in WorkloadManagementPlugin
10+
* Package for the rest classes related to workload groups in WorkloadManagementPlugin
1111
*/
1212
package org.opensearch.plugin.wlm.rest;

plugins/workload-management/src/main/java/org/opensearch/plugin/wlm/service/WorkloadGroupPersistenceService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class WorkloadGroupPersistenceService {
5454
/**
5555
* max WorkloadGroup count setting name
5656
*/
57-
public static final String QUERY_GROUP_COUNT_SETTING_NAME = "node.workload_group.max_count";
57+
public static final String WORKLOAD_GROUP_COUNT_SETTING_NAME = "node.workload_group.max_count";
5858
/**
5959
* default max workloadGroup count on any node at any given point in time
6060
*/
@@ -67,7 +67,7 @@ public class WorkloadGroupPersistenceService {
6767
* max WorkloadGroup count setting
6868
*/
6969
public static final Setting<Integer> MAX_QUERY_GROUP_COUNT = Setting.intSetting(
70-
QUERY_GROUP_COUNT_SETTING_NAME,
70+
WORKLOAD_GROUP_COUNT_SETTING_NAME,
7171
DEFAULT_MAX_QUERY_GROUP_COUNT_VALUE,
7272
0,
7373
WorkloadGroupPersistenceService::validateMaxWorkloadGroupCount,
@@ -116,7 +116,7 @@ public void setMaxWorkloadGroupCount(int newMaxWorkloadGroupCount) {
116116
*/
117117
private static void validateMaxWorkloadGroupCount(int maxWorkloadGroupCount) {
118118
if (maxWorkloadGroupCount > DEFAULT_MAX_QUERY_GROUP_COUNT_VALUE || maxWorkloadGroupCount < MIN_QUERY_GROUP_COUNT_VALUE) {
119-
throw new IllegalArgumentException(QUERY_GROUP_COUNT_SETTING_NAME + " should be in range [1-100].");
119+
throw new IllegalArgumentException(WORKLOAD_GROUP_COUNT_SETTING_NAME + " should be in range [1-100].");
120120
}
121121
}
122122

@@ -162,7 +162,7 @@ ClusterState saveWorkloadGroupInClusterState(final WorkloadGroup workloadGroup,
162162

163163
// check if maxWorkloadGroupCount will breach
164164
if (existingWorkloadGroups.size() == maxWorkloadGroupCount) {
165-
logger.warn("{} value exceeded its assigned limit of {}.", QUERY_GROUP_COUNT_SETTING_NAME, maxWorkloadGroupCount);
165+
logger.warn("{} value exceeded its assigned limit of {}.", WORKLOAD_GROUP_COUNT_SETTING_NAME, maxWorkloadGroupCount);
166166
throw new IllegalStateException("Can't create more than " + maxWorkloadGroupCount + " WorkloadGroups in the system.");
167167
}
168168

plugins/workload-management/src/main/java/org/opensearch/plugin/wlm/service/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
*/
88

99
/**
10-
* Package for the service classes related to query groups in WorkloadManagementPlugin
10+
* Package for the service classes related to workload groups in WorkloadManagementPlugin
1111
*/
1212
package org.opensearch.plugin.wlm.service;

plugins/workload-management/src/test/java/org/opensearch/plugin/wlm/WorkloadManagementPluginTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public void testGetFeatureTypeReturnsWorkloadGroupFeatureType() {
138138
assertEquals("workload_group", featureType.getName());
139139
}
140140

141-
public void testGetSettingsIncludesMaxQueryGroupCount() {
141+
public void testGetSettingsIncludesMaxWorkloadGroupCount() {
142142
List<?> settings = plugin.getSettings();
143143
assertTrue(settings.contains(WorkloadGroupPersistenceService.MAX_QUERY_GROUP_COUNT));
144144
}

0 commit comments

Comments
 (0)