Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Make a copy of the flushers to fix race condition during shutdown #76

Merged
merged 1 commit into from
Nov 29, 2017

Conversation

xichen2020
Copy link
Contributor

cc @cw9 @jeromefroe

This PR makes a shallow copy of the flushers slice so that if the original slice is modified during task execution (e.g., new flusher is registered or old flusher is unregistered), it won't cause a race condition.

@coveralls
Copy link

coveralls commented Nov 29, 2017

Coverage Status

Coverage increased (+0.002%) to 81.785% when pulling ca56ec0 on xichen-copy-flushers-fix-race into 369997e on master.

Copy link
Contributor

@jeromefroe jeromefroe left a comment

Choose a reason for hiding this comment

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

LGTM

@xichen2020 xichen2020 merged commit ff604d0 into master Nov 29, 2017
@xichen2020 xichen2020 deleted the xichen-copy-flushers-fix-race branch November 29, 2017 20:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants