From fb2f3fede30e97e9254b4d89e55953c6541df5c9 Mon Sep 17 00:00:00 2001 From: Pravin Bhat Date: Fri, 8 Nov 2024 15:17:55 -0500 Subject: [PATCH] Fixed metrics issue when trackRun was disabled. --- src/main/java/com/datastax/cdm/job/DiffJobSession.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/datastax/cdm/job/DiffJobSession.java b/src/main/java/com/datastax/cdm/job/DiffJobSession.java index c9e597a3..3d421f0b 100644 --- a/src/main/java/com/datastax/cdm/job/DiffJobSession.java +++ b/src/main/java/com/datastax/cdm/job/DiffJobSession.java @@ -179,6 +179,8 @@ protected void processPartitionRange(PartitionRange range) { } else if (null != trackRunFeature) { jobCounter.globalIncrement(); trackRunFeature.updateCdmRun(runId, min, TrackRun.RUN_STATUS.PASS, jobCounter.getThreadCounters(true)); + } else { + jobCounter.globalIncrement(); } } catch (Exception e) { jobCounter.threadIncrement(JobCounter.CounterType.ERROR,