Conversation
|
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
| } | ||
|
|
||
| public void validateOpType(String opType) { | ||
| if (null != opType && !"create".equals(opType.toLowerCase(Locale.US))) { |
There was a problem hiding this comment.
also please use == false for comparison
There was a problem hiding this comment.
@s1monw I just made the requested changes.
|
@elasticmachine ok to test |
s1monw
left a comment
There was a problem hiding this comment.
left one suggestion, can you fix that then I will merge it
| return RestIndexAction.this.prepareRequest(request, client); | ||
| } | ||
|
|
||
| public void validateOpType(String opType) { |
There was a problem hiding this comment.
maybe make this static and pkg private?
There was a problem hiding this comment.
@s1monw what about private (or pkg private) and final?
It cannot be set to static as the inner class CreateHandler itself is not static.
9ac5312 to
7a2a35a
Compare
|
merged thanks |
* es/master: (38 commits) Backport wait_for_initialiazing_shards to cluster health API Carry over version map size to prevent excessive resizing (#27516) Fix scroll query with a sort that is a prefix of the index sort (#27498) Delete shard store files before restoring a snapshot (#27476) Replace `delimited_payload_filter` by `delimited_payload` (#26625) CURRENT should not be a -SNAPSHOT version if build.snapshot is false (#27512) Fix merging of _meta field (#27352) Remove unused method (#27508) unmuted test, this has been fixed by #27397 Consolidate version numbering semantics (#27397) Add wait_for_no_initializing_shards to cluster health API (#27489) [TEST] use routing partition size based on the max routing shards of the second split Adjust CombinedDeletionPolicy for multiple commits (#27456) Update composite-aggregation.asciidoc Deprecate `levenstein` in favor of `levenshtein` (#27409) Automatically prepare indices for splitting (#27451) Validate `op_type` for `_create` (#27483) Minor ShapeBuilder cleanup muted test Decouple nio constructs from the tcp transport (#27484) ...
Currently any
op_typepassed to_createis simply set tocreatewithout any validation.This PR will validate the passed
op_typeto_createas discussed in commentCC @javanna