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
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Moving the data between same source and destination causes the
destination to be cleared.
<!-- Issue number if applicable -->
#### Link to tracking issue
Fixes#12887
Signed-off-by: Bogdan Drutu <[email protected]>
Component(s)
pdata
What happened?
Describe the bug
If
m
anddst
are equal and not empty,m.MoveTo(dst)
results in empty mapsdst
andm
.Code:
opentelemetry-collector/pdata/pcommon/map.go
Line 248 in d79ffd3
Expectation
MoveTo()
should be a no-op ifm
anddst
or the underlying internal maps are equal (as in "using same memory region").Collector version
main branch
Environment information
No response
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: