Implement evictionPolicy
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
No source files or tests are named. Start by reviewing keypool's current idleTimeAllowedInPool eviction behavior and the referenced commons-pool2 EvictionPolicy and DefaultEvictionPolicy documentation. Done requires identifying relevant custom-policy use cases and agreeing on the policy and configuration scope before implementation.
Written by the indexing model from the issue text.
Description
commons-pool2 functionality
In commons-pool2, an EvictionPolicy determines whether an object is evicted on each run.
The DefaultEvictionPolicy considers multiple properties, including a notion of soft eviction.
Current behavior
keypool evicts on idleTimeAllowedInPool, how long the object has been idle, and the current time.
Analysis
commons-pool2's eviction policy is more sophisticated, but its configuration is more sophisticated. With custom eviction policies, it's possible to implement policies that contradict the configuration.
Before investing heavily in this, it would be interesting to identify cases where commons-pool2 clients have implemented their own policy and why.
Workarounds
None
- Dominant language
- Scala
- Stars
- 39
- Forks
- 18
- Avg merge
- 8h 26m
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from typelevel/keypool
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
PoolSpec flake Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
commons-pool2 parity
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
All issues in typelevel/keypool
Similar issues
-
Area: Excel support
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
orbeon/orbeon-forms#7893 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
chipsalliance/rocket-chip#3833 ·
-
ShuffleManagerRegistry.register recursion guard is inverted, permits GlutenShuffleManager subclasses Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100