Projects tigase _server server-core Issues #826
UserRepository caches force synchronization even if caching is disabled (#826)
Closed
Andrzej Wójcik (Tigase) opened 7 years ago

Instances of RepoPool classes used in @ UserRepository@ and JDBCRepository forcing synchronized access even if caching is disabled due to an instance of RepoPool being wrapped by @Collections.synchronizedMap()@.

Synchronization should be moved inside this RepoPool class as instance of SizedCache needs to be synchronized and we may synchronize required methods manually with usage of synchronized (cache) { } block.

Andrzej Wójcik (Tigase) commented 5 years ago

Removed synchronization when cache is disabled

issue 1 of 1
Type
Bug
Priority
Blocker
Assignee
RedmineID
5500
Version
tigase-server-8.1.0
Spent time
10h
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#826
Please wait...
Page is in error, reload to recover