-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
query error after run es_indices_clean.sh #622
Comments
Today i tried Release 1.2.0, get the same error. |
@black-adder could it be the timezone issue? The ticket was booked Dec 26, 2017, so I assume the script was run on the same date, so it looks strange that it removed these indices:
|
ill try to reproduce |
@meilihao You're deleting the currently-active index. This removes the index's mapping, which is created by the collectors on start-up. This issue explains it in a bit more detail: #374
The only way to avoid this is by not deleting an index that's still being used - since you're posting on Dec 26th, and you deleted two indices marked |
Hi, any progress here? -- I have the same issue.
indices in ES:
|
It was not fixed after date change as suggested by @dmitrygusev here: #374 (comment) |
I have seen the same problem with bad mappings. You will need to either: A. Shutdown all jaeger collectors, delete the bad indexes, then restart the collectors and lose the data or |
@mikelduke, @sta-szek, @oiooj are you able to provide a reproducer? |
This issue is related to #374. Steps to reproduce: Start jaeger
|
I have fixed this by creating an index template
I think jaeger-collector should create the template on startup. The create index would just create an index and mapping would be derived from the template stored in ES. Maybe we could even omit creating the index and it would be created automatically once data is inserted. |
I fixed it for my use by creating a template from an exported copy of a working index. It would be great to see either Jaeger create the template on startup, or allow for exporting the template from the binary using the command line. This would allow for template creation using different users or a separate ci process. |
I think I will submit a PR where the collector creates a template at startup. A command for generating the template is an interesting idea. Rollover script could also make use it. We could talk about it in a separate issue. |
is creating a template idempotent? There are many collectors starting. |
@pavolloffay |
thx @mikelduke ! , your post helped me solve this weird error that was, at least for me, likely caused by the ES being recreated but collectors werent reset/restarted. and me then spending few hours to debug until I stumbled over your precious hint ❤️ and noticed the index templates were missing !! |
jaeger version: cba413e
storage: elasticsearch 6.1.1, Build: bd92e7f/2017-12-17T20:23:25.338Z, JVM: 9.0.1
It's work before clean.
My operation process:
Then visit
http://local:16686/search
, get error:The text was updated successfully, but these errors were encountered: