[
https://issues.apache.org/jira/browse/SPARK-62325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyukjin Kwon reassigned SPARK-62325:
------------------------------------
Assignee: Hyukjin Kwon
> Release the slabs that a merge-replaced map value and a cleared or replaced
> singular message field of the drop-in's protobuf runtime pin, and bound its
> unpin walk to what is left to unpin
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SPARK-62325
> URL: https://issues.apache.org/jira/browse/SPARK-62325
> Project: Spark
> Issue Type: Bug
> Components: Connect
> Affects Versions: 5.0.0
> Reporter: Hyukjin Kwon
> Assignee: Hyukjin Kwon
> Priority: Major
> Labels: pull-request-available
>
> From a post-merge review of SPARK-62318 (#978) and SPARK-62313 (#979) on
> e65557a0:
> (1) A map value replaced by a message-level merge stays pinned: containers.rs
> merge_entries, and codec.rs's object-path map-entry parse, drop the replaced
> MapValue::Message without release_held. With a 300-entry MlParams, keep v =
> p.params["k7"], p.MergeFrom(...) with "k7" set, del p: 3 slab messages stay.
> (2) Singular Slot::Message children are never unpinned: dealloc, ClearField,
> and a oneof switch through set_slot. With _proto_whole_limit(0), x =
> r.join.left.project; del r keeps 14 slab messages (28 for a grandchild of a
> container item). The default limit of 256 leaves at most about 2 boundary
> slabs.
> (3) unpin_within walks up to 1,024 object steps even when nothing is left to
> unpin: popping all 400 materialized items of 511 messages each takes 32 ms
> against upb's 0.1 ms; releasing such a container while a list keeps the
> items, 31.7 ms.
> (4) RepeatedComposite::remove always unpins: the loop's clone of the item is
> alive when release_held runs.
> (5) About 48 B leak per class-changing registration followed by a read
> (keep_class). Fix: reuse the record of a (type, class) pair already seen.
> (6) AddressHasher's doc says it uses the high bits of the product, but it
> returns the whole product.
> Hardening: Python::assume_attached in the Drop of
> RepeatedComposite/MapContainer is sound only while no container with items is
> dropped detached; use try_attach or a debug assert.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]