-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
fatal error: concurrent map iteration and map write #2456
Comments
Thanks for the writeup. I'm guessing you're building off master because I don't think we've yet made an official release with the promtail push api -- would you mind telling us which build (release or commit) you're using /cc @slim-bean |
are you by any chance setting external labels? I don't see any in your config but do are you setting any from the command line? |
@owen-d Yes, I tested in the master branch, the last commit id is |
@slim-bean I set the label in the configuration file, not in the command line. The complete configuration is as follows:
|
Is this easy to reproduce? Do you have multiple promtails sending to the promtail configured with |
also I'm pretty sure I see the problem now, seeing that you are doing label extraction on the promtail which is running |
@zouwen thanks again for reporting this and providing helpful details! Would you be able to test again with the latest master and see if the issue is now gone? |
@slim-bean Now the code is running very well, thanks for you. |
Describe the bug
when a promtail push log entries to another promtail configed loki_push_api, error like this:
Environment:
Screenshots, Promtail config, or terminal output
promtail1 config
promtail2 config
I think the problem may lie in the code shown below
pkg/promtail/targets/lokipush/pushtarget.go
The text was updated successfully, but these errors were encountered: