apache commons logging locked

Description

Environment

None

Activity

Show:
Michael Offner
March 15, 2021, 1:37 PM

Problem is that apache.commons.logging does use WeakHashtable (that extends Hashtable), that class is known for locking issues and should not be used.

here an example entry about that topic in stack overflow

https://stackoverflow.com/questions/3235297/java-hashtable-many-accesses-problem

If you are using Java5 or above, you shouldn't use Hashtable, but ConcurrentHashMap, which provides much better scalability via lock striping, thus might solve the problem instantly (in case you have a deadlock or starvation issue,

Problem we cannot fix this directly because this class is used in a library (apache httpcomponents) Lucee uses.

The only way to solve this, is to reduce the risk of a lock issue occurs by reducing the use pf that hash table, this can be done by not creating new (unnecessary) instances of the class “DefaultRedirectStrategy“.

Michael Offner
March 12, 2021, 2:31 PM

Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Michael Offner

Reporter

Michael Offner

Priority

New

Fix versions