Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
In the original code, the cache key is built using Immutable List. of (hosts, pathInitialize, username, password). If the elements in hosts are the same but their positions change, since List is order sensitive in Java, it will be treated as different cache keys, which will affect the uniqueness of the cache.
For example, if there are two hosts lists, one is ["host1", "host2"], and the other is ["host2", "host1"], they will be treated as different keys, causing the cache to fail to hit correctly.