Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`AbstractCacheRecordStore` should update `isOwner` field while it is being cleared after migration #6983

Closed
serkan-ozal opened this issue Dec 3, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@serkan-ozal
Copy link
Contributor

commented Dec 3, 2015

After migration, ICacheService clears ICacheRecordStore instances related with migrated partitions.

AbstractCacheRecordStore has a boolean field named isOwner and this flag represents that partition, has this record store, is primary or backup. If it is backup, events and invalidation messages are ignored.

So far so good, but while record store is being cleared after migration, this field should be updated by checking that current node is the owner of the partition or not anymore.

A new reset method can be added ICacheRecordStore and this is called by ICacheService instead of clear so this reset method can be implemented inside AbstractCacheRecordStore by calling clear first and then updating isOwner field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.