Skip to content

[Remove] types from CreateIndexRequest and companion Builder's mapping method#2498

Merged
nknize merged 2 commits intoopensearch-project:mainfrom
nknize:remove/typesFromCIRCIRBVarArg
Mar 17, 2022
Merged

[Remove] types from CreateIndexRequest and companion Builder's mapping method#2498
nknize merged 2 commits intoopensearch-project:mainfrom
nknize:remove/typesFromCIRCIRBVarArg

Conversation

@nknize
Copy link
Copy Markdown
Contributor

@nknize nknize commented Mar 17, 2022

Removes the type variable as input to CreateIndexRequest.mapping(Object...)
along with the CreateIndexRequestBuilder helper class. This also refactors the
method name to setMapping for consistency with other methods (e.g.,
setSettings).

relates #1940

Removes the type variable as input to CreateIndexRequest.mapping(Object...)
along with the CreateIndexRequestBuilder helper class. This also refactors the
method name to setMapping for consistency with other methods (e.g.,
setSettings).

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
@nknize nknize added v2.0.0 Version 2.0.0 >breaking Identifies a breaking change. Indexing & Search labels Mar 17, 2022
@nknize nknize requested a review from a team as a code owner March 17, 2022 19:06
@opensearch-ci-bot
Copy link
Copy Markdown
Collaborator

❌   Gradle Check failure 6f1b02f
Log 3497

Reports 3497

Copy link
Copy Markdown
Member

@dreamer-89 dreamer-89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM!

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
Copy link
Copy Markdown
Member

@dreamer-89 dreamer-89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@opensearch-ci-bot
Copy link
Copy Markdown
Collaborator

❌   Gradle Check failure f144716
Log 3499

Reports 3499

@nknize
Copy link
Copy Markdown
Contributor Author

nknize commented Mar 17, 2022

Opened #2499 for non-reproducible failure:

REPRODUCE WITH: ./gradlew ':server:internalClusterTest' --tests "org.opensearch.versioning.ConcurrentSeqNoVersioningIT.testSeqNoCASLinearizability" -Dtests.seed=9A51991686B5895B -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=ar-IQ -Dtests.timezone=Pacific/Johnston -Druntime.java=17
org.opensearch.versioning.ConcurrentSeqNoVersioningIT > testSeqNoCASLinearizability FAILED
    MasterNotDiscoveredException[FailedToCommitClusterStateException[publication failed]; nested: OpenSearchException[publication cancelled before committing: timed out after 5s];]; nested: FailedToCommitClusterStateException[publication failed]; nested: OpenSearchException[publication cancelled before committing: timed out after 5s];
        at __randomizedtesting.SeedInfo.seed([9A51991686B5895B:419FB77C9CA7ABEF]:0)
        at org.opensearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$2.onTimeout(TransportMasterNodeAction.java:275)
        at org.opensearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:369)
        at org.opensearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:287)
        at org.opensearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:692)
        at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:733)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.lang.Thread.run(Thread.java:833)

refiring

@nknize
Copy link
Copy Markdown
Contributor Author

nknize commented Mar 17, 2022

start gradle check

@opensearch-ci-bot
Copy link
Copy Markdown
Collaborator

✅   Gradle Check success f144716
Log 3501

Reports 3501

@nknize nknize merged commit b9f0440 into opensearch-project:main Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>breaking Identifies a breaking change. Indexing & Search v2.0.0 Version 2.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants