Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update logstash data and mappings for single type #13001

Merged
merged 1 commit into from
Jul 20, 2017

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Jul 20, 2017

Update the logstash functional archive data and mappings.json file to support single type. Fixes testing error [illegal_argument_exception] unknown setting [index.mapping.single_type].

Steps to recreate data.

  • Manually modify mappings.json file
  • Start test server npm run test:ui:server
  • Manually modify data. In this case, we replaced "type": "apache" and "type": "nginx" with "type": "docs"
  • Load data into elasticsearch node scripts/es_archiver.js load logstash_functional
  • Archive data back from elasticsearch node scripts/es_archiver.js save logstash_functional logstash-*

@spalger said to merge without waiting for CI to pass.

@nreese nreese requested review from kobelb and spalger July 20, 2017 15:10
Copy link
Contributor

@kobelb kobelb left a comment

Choose a reason for hiding this comment

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

LGTM

@nreese nreese merged commit 7c7f571 into elastic:master Jul 20, 2017
pickypg added a commit that referenced this pull request Jul 20, 2017
This updates the function tests by:

Changing logstash_functional's _type from docs (changed in #13001) to doc.
Adding the original _type (apache or nginx) as a new field named type to logstash_functional's documents.
Updated the mappings to include the expected type field.
Did the same for makelogs by removing _default_ and other _types in favor of doc and the new type field.
Dropped the single_type setting from makelogs.
Updated associated tests that were looking for _type values of apache and nginx.
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.

2 participants