[ https://issues.apache.org/jira/browse/GEODE-7678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17066620#comment-17066620 ]
Juan Ramos commented on GEODE-7678: ----------------------------------- While working at GEODE-7670 I've noticed that the method {{CacheWriter.beforeRegionClear}} is invoked for every {{BucketRegion}} that composes the actual {{PartitionedRegion}} on which I execute the {{clear}} operation. I'm not sure if this is intended or not but, as a user, I would expect for my {{CacheWriter}} to be called just once. The documentation also mentions the following for the {{CacheWriter}}: _*Receives events only in primary data store in partitioned regions, so install one in every data store*_ but I don't know if it makes sense for the clear scenario... only the "clear coordinator node" should invoke the {{beforeRegionClear}} callback, not the other nodes hosting primary buckets, right?. > Partitioned Region clear operations must invoke cache level listeners > --------------------------------------------------------------------- > > Key: GEODE-7678 > URL: https://issues.apache.org/jira/browse/GEODE-7678 > Project: Geode > Issue Type: Sub-task > Components: regions > Reporter: Nabarun Nag > Priority: Major > Labels: GeodeCommons > > Clear operations are successful and CacheListener.afterRegionClear(), > CacheWriter.beforeRegionClear() are invoked. > > Acceptance : > * DUnit tests validating the above behavior. > * Test coverage to when a member departs in this scenario > * Test coverage to when a member restarts in this scenario > * Unit tests with complete code coverage for the newly written code. > -- This message was sent by Atlassian Jira (v8.3.4#803005)