Fix race condition in `helm list` (#4620)
* Fix race in helm list when partitioning Problem: The chunks slice that is passed through the channel is reused for each partition. This means that encoding the release into a message is racing with populating the next partition, causing the results to sometimes not fit in the message, and the release list to be incorrect Solution: Allocate a new slice for each partition Issue #3322 Signed-off-by: Brian Marshall <bmarshall13@users.noreply.github.com> (cherry picked from commit a0858e29d877b8aa19478133865e45958ff21a9e) * fix import sorting Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com> * ref(release_server_test): use NewReleaseServer() Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com> * add unit test for race condition in `helm list` Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
Showing
Please
register
or
sign in
to comment