[EventHubs] claim_ownership in checkpointstoreblob mutates argument #19963
Labels
Client
This issue points to a problem in the data-plane of the library.
Event Hubs
Messaging
Messaging crew
MQ
This issue is part of a "milestone of quality" initiative.
P0
Milestone
Currently,
claim_ownership
onCheckpointStoreBlob
mutates theownership
object that is passed in. It also unnecessarily adds ametadata
withownerid
toownership
dict althoughowner_id
is already inownership
. Need to:metadata
here and here, and remove passing inmetadata
. createmetadata = ownerid: ownership['owner_id']
before this line.updated_ownership
object before here and addetag
andlast_modified
to the new object, so that the original object is not mutatedThe text was updated successfully, but these errors were encountered: