-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into transform_API_error_handling
- Loading branch information
Showing
43 changed files
with
1,838 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
release-notes/opensearch-index-management.release-notes-2.11.0.0.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## Version 2.11.0.0 2023-10-11 | ||
|
||
Compatible with OpenSearch 2.10.0 | ||
|
||
### Maintenance | ||
* Increment version to 2.11.0-SNAPSHOT. ([#922](https://github.com/opensearch-project/index-management/pull/922)) | ||
|
||
### Enhancements | ||
* Provide unique id for each rollup job and add debug logs. ([#968](https://github.com/opensearch-project/index-management/pull/968)) | ||
|
||
### Bug fixes | ||
* Fix auto managed index always have -2 seqNo bug. ([#924](https://github.com/opensearch-project/index-management/pull/924)) | ||
|
||
### Infrastructure | ||
* Upload docker test cluster log. ([#964](https://github.com/opensearch-project/index-management/pull/964)) | ||
* Reduce test running time. ([#965](https://github.com/opensearch-project/index-management/pull/965)) | ||
* Parallel test run. ([#966](https://github.com/opensearch-project/index-management/pull/966)) | ||
* Security test filtered. ([#969](https://github.com/opensearch-project/index-management/pull/969)) | ||
|
||
### Documentation | ||
* Added 2.11 release notes. ([#1004](https://github.com/opensearch-project/index-management/pull/1004)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
...rg.opensearch.indexmanagement.spi/indexstatemanagement/model/TransformActionProperties.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.opensearch.indexmanagement.spi.indexstatemanagement.model | ||
|
||
import org.opensearch.core.common.io.stream.StreamInput | ||
import org.opensearch.core.common.io.stream.StreamOutput | ||
import org.opensearch.core.common.io.stream.Writeable | ||
import org.opensearch.core.xcontent.XContentParserUtils.ensureExpectedToken | ||
import org.opensearch.core.xcontent.ToXContent | ||
import org.opensearch.core.xcontent.ToXContentFragment | ||
import org.opensearch.core.xcontent.XContentBuilder | ||
import org.opensearch.core.xcontent.XContentParser | ||
|
||
data class TransformActionProperties( | ||
val transformId: String? | ||
) : Writeable, ToXContentFragment { | ||
|
||
override fun writeTo(out: StreamOutput) { | ||
out.writeOptionalString(transformId) | ||
} | ||
|
||
override fun toXContent(builder: XContentBuilder, params: ToXContent.Params?): XContentBuilder { | ||
if (transformId != null) builder.field(Properties.TRANSFORM_ID.key, transformId) | ||
return builder | ||
} | ||
|
||
companion object { | ||
const val TRANSFORM_ACTION_PROPERTIES = "transform_action_properties" | ||
|
||
fun fromStreamInput(sin: StreamInput): TransformActionProperties { | ||
val transformId: String? = sin.readOptionalString() | ||
return TransformActionProperties(transformId) | ||
} | ||
|
||
fun parse(xcp: XContentParser): TransformActionProperties { | ||
var transformId: String? = null | ||
|
||
ensureExpectedToken(XContentParser.Token.START_OBJECT, xcp.currentToken(), xcp) | ||
while (xcp.nextToken() != XContentParser.Token.END_OBJECT) { | ||
val fieldName = xcp.currentName() | ||
xcp.nextToken() | ||
|
||
when (fieldName) { | ||
Properties.TRANSFORM_ID.key -> transformId = xcp.text() | ||
} | ||
} | ||
|
||
return TransformActionProperties(transformId) | ||
} | ||
} | ||
|
||
enum class Properties(val key: String) { | ||
TRANSFORM_ID("transform_id") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.