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

MergeMappingException exception while importing exported dashboard #3882

Closed
szydan opened this issue May 19, 2015 · 1 comment · Fixed by #3913
Closed

MergeMappingException exception while importing exported dashboard #3882

szydan opened this issue May 19, 2015 · 1 comment · Fixed by #3913
Assignees
Labels
bug Fixes for quality problems that affect the customer experience v4.1.0

Comments

@szydan
Copy link
Contributor

szydan commented May 19, 2015

master branch

to reproduce:
0) create the indexPattern

  1. create a single dashboard with single visualization
  2. export all objects to a file
  3. delete .kibana index
  4. restart kibana
  5. create indexPattern
  6. Go to Settings->Import and import your exported file
    here everything is fine no error
  7. try to switch to Dashboards
    HERE is the error

MergeMappingException[Merge failed with failures {[mapper [version] of different type, current_type [long], merged_type [integer]]}]

I think that the issue is that by default elasticsearch is creating the mapping long for fields like
"version", "hits"
But then in _saved_dashboard.js or other services the mapping contains "integer" type for this properties
so at some point kibana is sending a PUT request to set the mapping
and elasticsearch throws an error as it can't change it from long to integer

The error is gone when I change in the source code (mapping in service classes) all properties which where integer to long

@biolds
Copy link

biolds commented Feb 5, 2016

The patch was reverted, see:
#5934
Can we reopen this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience v4.1.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants