Skip to content

GEODE-5888: Check partitioned region is ready in bucket region#2645

Merged
pivotal-eshu merged 2 commits intodevelopfrom
feature/GEODE-5888
Oct 23, 2018
Merged

GEODE-5888: Check partitioned region is ready in bucket region#2645
pivotal-eshu merged 2 commits intodevelopfrom
feature/GEODE-5888

Conversation

@pivotal-eshu
Copy link
Copy Markdown

  • A bulk opertion could remove lockObject due to RegionDestroyedException.
  • Do not allow a new operation to proceed without checking region readiness.

…ing.

 * A bulk opertion could remove lockObject due to RegionDestroyedException.
 * Do not allow a new operation to proceed without checking region readiness.
* @return first key found in CM null means not found
*/
private LockObject searchAndLock(Object keys[]) {
LockObject searchAndLock(Object keys[]) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The caller waitUntilLocked() could return a boolean status; indicating lock is successfully acquired; based on that we could clean-up the locks from finally block.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reviewing. Will address your concern.

 * rename activeWriteLock to be primaryMoveReadLock as it is a readLock.
@pivotal-eshu pivotal-eshu merged commit 0f7769a into develop Oct 23, 2018
@pivotal-eshu pivotal-eshu deleted the feature/GEODE-5888 branch November 9, 2018 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants