[ https://issues.apache.org/jira/browse/GEODE-2410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15851893#comment-15851893 ]
ASF subversion and git services commented on GEODE-2410: -------------------------------------------------------- Commit d2a626e9cecb4d9a1b3599201a379eefe0dc8556 in geode's branch refs/heads/feature/GEODE-1930-2 from [~nnag] [ https://git-wip-us.apache.org/repos/asf?p=geode.git;h=d2a626e ] GEODE-2410: Lucene afterPrimary and afterSecondary calls pass through the same crit section. * afterPrimary and afterSecondary calls are passed through the same critical section. * If the caller is primary bucket, it will try to acquire a Dlock on the bucket and create the index repo. * If it is secondary it will clean up the repo - close the writer and release the locks. * If the primary changes to secondary while waiting for indexes to be created, it will exit from the critical section without acquiring the lock. > afterPrimary and afterSecondary event listeners pass through the same > critical section > -------------------------------------------------------------------------------------- > > Key: GEODE-2410 > URL: https://issues.apache.org/jira/browse/GEODE-2410 > Project: Geode > Issue Type: Bug > Components: lucene > Reporter: nabarun > Fix For: 1.1.0 > > > * afterPrimary and afterSecondary listeners will call the same critical > section. > * They will acquire a Dlock on the bucket and create the index if primary. > * If they are secondary it will close the writer and release the Dlock. > * The primary will reattempt to acquire the lock after 5seconds and continue > to loop as long as it is still primary. -- This message was sent by Atlassian JIRA (v6.3.15#6346)