WEBHOOKS-114 WebHookListenerCachingStore is not cluster safe

Merged
#74 · Created  · Last updated

Merged pull request

Merged in WEBHOOKS-114-webhooks-listener-cache-is- (pull request #74)

7f4ff54·Author: ·Closed by: ·2015-08-30

Description

The original code used a map guarded by a cluster lock to cache listeners, however configuration changes were not being replicated across a cluster. I've reworked the caching store to use an atlassian-cache CachedReference instead.

The existing code had a copy on write pattern to avoid invalidating the entire map when one listener is added or removed. This optimisation has been lost but I wouldn't think it would have a big impact (cluster locks are expensive so this would be somewhat offset anyway). Thoughts welcome.

0 attachments

0 comments

Loading commits...