Skip to content

[ML] addresses preview bug, and adds check to PUT#41803

Merged
benwtrent merged 1 commit intoelastic:masterfrom
benwtrent:feature/ml-df-preview-bug-fix
May 6, 2019
Merged

[ML] addresses preview bug, and adds check to PUT#41803
benwtrent merged 1 commit intoelastic:masterfrom
benwtrent:feature/ml-df-preview-bug-fix

Conversation

@benwtrent
Copy link
Copy Markdown
Member

Bug fixes:

  • NPE error on _preview if source index does not exists
  • NPE error on put if destination index exists and security is enabled

Additionally checks for the following dest.index and source.index are done:

  • That any of the source index names match (simple regex) the dest.index
  • That any of the concrete indices behind the source index names match dest.index
  • That dest.index is NOT a simple regex pattern, and if it exists, is not backed by more than one index
  • If the dest.index exists, that its concrete index is not contained in source.index concrete index names

@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/ml-core

Copy link
Copy Markdown

@hendrikmuhs hendrikmuhs left a comment

Choose a reason for hiding this comment

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

LGTM

@benwtrent benwtrent merged commit 3e4736f into elastic:master May 6, 2019
@benwtrent benwtrent deleted the feature/ml-df-preview-bug-fix branch May 6, 2019 12:14
benwtrent added a commit to benwtrent/elasticsearch that referenced this pull request May 6, 2019
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request May 7, 2019
* elastic/master: (414 commits)
  Add tasks to build Docker build context artifacts (elastic#41819)
  Replace more uses of immutable map builder (elastic#41823)
  Force selection of calendar or fixed intervals in date histo agg (elastic#33727)
  Switch run task to use real distro (elastic#41590)
  Clarify that path_match also considers object fields. (elastic#41658)
  [DOCS] remove 'es.scripting.update.ctx_in_params' system property for 7.0 (elastic#41643)
  Clarify _doc is a permanent part of certain document APIs. (elastic#41727)
  Remove the jdk directory to save space on bwc tests (elastic#41743)
  Fix full text queries test that start with now (elastic#41854)
  Remove `nonApplicationWrite` from `SSLDriver` (elastic#41829)
  SQL: [Docs] Add example for custom bucketing with CASE (elastic#41787)
  Cleanup Bulk Delete Exception Logging (elastic#41693)
  [DOCS] Rewrite `term` query docs for new format (elastic#41498)
  Mute PermissionsIT#testWhen[...]ByILMPolicy (elastic#41858)
  ReadOnlyEngine assertion fix (elastic#41842)
  [ML] addresses preview bug, and adds check to PUT (elastic#41803)
  Fix javadoc in WrapperQueryBuilder
  Testsclusters use seprate configurations per version (elastic#41504)
  Skip explain fetch sub phase when request holds only suggestions (elastic#41739)
  remove unused import
  ...
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants