You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/action/admin/cluster/decommission/awareness/get/GetDecommissionRequest.java
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/action/admin/cluster/decommission/awareness/get/GetDecommissionResponse.java
+11-3
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,10 @@ public static GetDecommissionResponse fromXContent(XContentParser parser) throws
74
74
StringcurrentFieldName = parser.currentName();
75
75
if (attributeType.equals(currentFieldName)) {
76
76
if (parser.nextToken() != XContentParser.Token.START_OBJECT) {
77
-
thrownewOpenSearchParseException("failed to parse decommission attribute type [{}], expected object", attributeType);
77
+
thrownewOpenSearchParseException(
78
+
"failed to parse decommission attribute type [{}], expected object",
79
+
attributeType
80
+
);
78
81
}
79
82
token = parser.nextToken();
80
83
if (token != XContentParser.Token.END_OBJECT) {
@@ -85,7 +88,10 @@ public static GetDecommissionResponse fromXContent(XContentParser parser) throws
85
88
if (token == XContentParser.Token.VALUE_STRING) {
86
89
value = parser.text();
87
90
} else {
88
-
thrownewOpenSearchParseException("failed to parse attribute [{}], expected string for attribute value", fieldName);
91
+
thrownewOpenSearchParseException(
92
+
"failed to parse attribute [{}], expected string for attribute value",
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/action/admin/cluster/decommission/awareness/get/TransportGetDecommissionAction.java
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/action/admin/cluster/decommission/awareness/put/PutDecommissionRequest.java
+2-8
Original file line number
Diff line number
Diff line change
@@ -24,8 +24,7 @@ public class PutDecommissionRequest extends ClusterManagerNodeRequest<PutDecommi
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/action/admin/cluster/decommission/awareness/put/PutDecommissionRequestBuilder.java
+5-1
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,11 @@ public class PutDecommissionRequestBuilder extends ClusterManagerNodeOperationRe
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/action/admin/cluster/decommission/awareness/put/PutDecommissionResponse.java
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/action/admin/cluster/decommission/awareness/put/TransportPutDecommissionAction.java
Copy file name to clipboardexpand all lines: server/src/test/java/org/opensearch/action/admin/cluster/decommission/awareness/put/PutDecommissionRequestTests.java
+5-21
Original file line number
Diff line number
Diff line change
@@ -22,16 +22,9 @@ public void testSerialization() throws IOException {
0 commit comments