core icon indicating copy to clipboard operation
core copied to clipboard

TagCache might use remove on put anit-pattern

Open wezell opened this issue 10 years ago • 2 comments

Not 100% sure, I haven't had enough coffee this morning to unwind what is happening, but it looks to me like the TagInodeCacheImpl is removing on a put:

https://github.com/dotCMS/core/blob/master-3.6/src/com/dotmarketing/tag/business/TagInodeCacheImpl.java#L55

What this can do in a cluster is cause the servers to ping-pong one putting and sending invalidations to the others, then the other having to put and sending invalidations to the first.

wezell avatar Jun 03 '16 12:06 wezell

I'll look later but I think this is working

On Fri, Jun 3, 2016, 8:02 AM Will Ezell [email protected] wrote:

Not 100% sure, I haven't had enough coffee this morning to unwind what is happening, but it looks to me like the TagInodeCacheImpl is removing on a put:

https://github.com/dotCMS/core/blob/master-3.6/src/com/dotmarketing/tag/business/TagInodeCacheImpl.java#L55

What this can do in a cluster is cause the servers to ping-pong one putting and sending invalidations to the others, then the other having to put and sending invalidations to the first.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dotCMS/core/issues/9174, or mute the thread https://github.com/notifications/unsubscribe/ABfteCvxUIj0l5SdZMIYppSK_osondetks5qIBfkgaJpZM4Itdwm .

dotcmsCodeReview avatar Jun 03 '16 13:06 dotcmsCodeReview

Agreed

wezell avatar Jun 23 '16 15:06 wezell