You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql/import: pass deep copy of BulkOpSummary to progress
Fixes: #153480
Prior to this change, we passed the `BulkOpSummary` map directly from
`accumulatedBulkSummary` to `prog.Summary` in #152745. This caused a
`concurrent map iteration and map write` panic because the map was being
updated via `metaFn` while simultaneously being marshaled into a protobuf
during `jobs.Update` calls from `FractionProgressed`.
This change creates a deep copy of the map when assigning from
`accumulatedBulkSummary` to `prog.Summary`, eliminating the concurrency
issue by ensuring each goroutine operates on separate map instances.
Release Notes: None
0 commit comments