git-bug/bridge
Michael Muré 7348fb9edb
github: fix data race when closing event channel
I believe the issue was twofold:

When done importing, the calling context is likely still valid, so if the output channel is not read enough and reach capacity, some event producer down the line can be blocked trying to send in that channel. When closing it, this send is still trying to proceed, which is illegal in go.

In rateLimitHandlerClient, there was a need to 2 different type of output channel: core.ExportResult and ImportEvent. To do so, the previous code was using a single channel type RateLimitingEvent and a series of goroutines to read/cast/send to the final channel. This could result in more async goroutine being stuck trying to send in an at-capacity channel. Instead, the code now use a simple synchronous callback to directly push to the final output channel. No concurrency needed anymore and the code is simpler.

Any of those fixes could have resolved the data race, but both fixes is more correct.
2022-06-05 15:13:49 +02:00
..
core feature: Github bridge mutation rate limit (#694) 2021-09-14 22:22:28 +02:00
github github: fix data race when closing event channel 2022-06-05 15:13:49 +02:00
gitlab Allow new gitlab PAT format 2022-03-31 09:57:50 +02:00
jira jira: fix incorrect client creation reusing the same credential 2022-03-10 18:41:54 +01:00
launchpad CLI: Add non-interactive option to interactive commands (#651) 2021-05-09 11:14:45 +02:00
bridges.go Merge remote-tracking branch 'origin/master' into cheshirekow-jira 2020-02-09 20:23:38 +01:00