Skip to content

Commit

Permalink
0006071: Prevented sym_node from getting updated unnecessarily when h…
Browse files Browse the repository at this point in the history
…eartbeat.update.node.with.batch.status parameter is disabled
  • Loading branch information
evan-miller-jumpmind committed Oct 30, 2023
1 parent 07cb7c7 commit 5870b29
Showing 1 changed file with 11 additions and 11 deletions.
Expand Up @@ -119,17 +119,17 @@ public void heartbeat(Node me) {
|| (engine.getParameterService().isRegistrationServer() && !Version.version().equals(me.getConfigVersion()))
|| !symmetricDialect.getName().equals(me.getDatabaseType())
|| !symmetricDialect.getVersion().equals(me.getDatabaseVersion())
|| me.getBatchInErrorCount() != batchInErrorCount
|| me.getBatchToSendCount() != outgoingUnsentCount
|| me.getLastSuccessfulSyncDate() != lastSuccessfulSyncTime
|| me.getMostRecentActiveTableSynced() != mostRecentActiveTableSynced
|| me.getPurgeOutgoingLastMs() != purgeOutgoingLastMs
|| me.getPurgeOutgoingLastRun() != purgeOutgoingLastRun
|| me.getPurgeOutgoingAverageMs() != purgeOutgoingAverage
|| me.getRoutingAverageMs() != routingAveragetMs
|| me.getRoutingLastRun() != routingLastRun
|| me.getRoutingLastMs() != routingLastMs
|| me.getSymDataSize() != symDataSize) {
|| (updateWithBatchStatus && (me.getBatchInErrorCount() != batchInErrorCount
|| me.getBatchToSendCount() != outgoingUnsentCount
|| me.getLastSuccessfulSyncDate() != lastSuccessfulSyncTime
|| me.getMostRecentActiveTableSynced() != mostRecentActiveTableSynced
|| me.getPurgeOutgoingLastMs() != purgeOutgoingLastMs
|| me.getPurgeOutgoingLastRun() != purgeOutgoingLastRun
|| me.getPurgeOutgoingAverageMs() != purgeOutgoingAverage
|| me.getRoutingAverageMs() != routingAveragetMs
|| me.getRoutingLastRun() != routingLastRun
|| me.getRoutingLastMs() != routingLastMs
|| me.getSymDataSize() != symDataSize))) {
log.info("Some attribute(s) of node changed. Recording changes");
me.setDeploymentType(engine.getDeploymentType());
me.setDeploymentSubType(engine.getDeploymentSubType());
Expand Down

0 comments on commit 5870b29

Please sign in to comment.