Github user srowen commented on the issue:
https://github.com/apache/spark/pull/16527
How about this: change all three instances to trim the retained data to the
configured maximum, but, to remove at least (0.1 * maxRetained) items.
If max is 100 and there are 150 items, it would trim to leave 100 rather
than all the way to 90.
If max is 100 and there are 101 items it would trim 10 (0.1 * 100) to leave
91, not just 100.
That addresses the concern, maintains current behavior in more cases, and
actually restores some behavior from before the previous change.
That and a small note in the docs that this is a target maximum and that
fewer elements may be retained in some circumstances.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]