[
https://issues.apache.org/jira/browse/GEODE-2612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15924850#comment-15924850
]
Barry Oglesby commented on GEODE-2612:
--------------------------------------
I added a boolean parameter to {{SnapshotOptions}} to invoke callbacks if
desired. The default is to not invoke them.
Using API during import, set the boolean like:
{noformat}
Region region = ...;
File snapshotFile = ...;
RegionSnapshotService service = region.getSnapshotService();
SnapshotOptions options = service.createOptions();
options.invokeCallbacks(true);
service.load(snapshotFile, SnapshotFormat.GEMFIRE, options);
{noformat}
Using gfsh during import, set the invoke-callbacks boolean like:
{noformat}
import data --region=myRegion --member=myMember --file=myRegion.gfd
--invoke-callbacks=true
{noformat}
> Add option to invoke callbacks while loading a snapshot
> -------------------------------------------------------
>
> Key: GEODE-2612
> URL: https://issues.apache.org/jira/browse/GEODE-2612
> Project: Geode
> Issue Type: New Feature
> Components: lucene
> Reporter: Barry Oglesby
> Assignee: Barry Oglesby
>
> As a work-around to recreating a lucene index (which is not currently
> supported), the recommendation is to:
> - export user region
> - destroy indexes and user region
> - recreate index
> - recreate user region
> - import user region
> The lucene index is populated using an hidden AsyncEventQueue, but currently
> import doesn't invoke callbacks. This feature request is to add an option to
> SnapshotOptions to cause callbacks to be invoked, so that the index is
> repopulated during import.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)