Skip to content

Commit

Permalink
0002975: Generating a snapshot can fail if the SYM_NODE_COMMUNICATION
Browse files Browse the repository at this point in the history
table has issues while being added
  • Loading branch information
jumpmind-josh committed Jan 31, 2017
1 parent 9d2aa96 commit f0a58bf
Showing 1 changed file with 8 additions and 4 deletions.
Expand Up @@ -226,10 +226,14 @@ public static File createSnapshot(ISymmetricEngine engine) {

extract(export, new File(tmpDir, "sym_trigger_hist.csv"),
TableConstants.getTableName(tablePrefix, TableConstants.SYM_TRIGGER_HIST));

if (!parameterService.is(ParameterConstants.CLUSTER_LOCKING_ENABLED)) {
engine.getNodeCommunicationService().persistToTableForSnapshot();
engine.getClusterService().persistToTableForSnapshot();
try {
if (!parameterService.is(ParameterConstants.CLUSTER_LOCKING_ENABLED)) {
engine.getNodeCommunicationService().persistToTableForSnapshot();
engine.getClusterService().persistToTableForSnapshot();
}
}
catch (Exception e) {
log.warn("Unable to add SYM_NODE_COMMUNICATION to the snapshot.", e);
}

extract(export, new File(tmpDir, "sym_lock.csv"),
Expand Down

0 comments on commit f0a58bf

Please sign in to comment.