hollow/src/main/java/com/netflix/hollow/api/producer/metrics/AbstractProducerMetricsListener.java
@Override
    public void onCycleSkip(CycleSkipReason reason) {
        cycleMetricsBuilder.setConsecutiveFailures(consecutiveFailures);

        lastCycleSuccessTimeNanoOptional.ifPresent(cycleMetricsBuilder::setLastCycleSuccessTimeNano);

        // isCycleSuccess and cycleDurationMillis are not set for skipped cycles
        cycleMetricsBuilder.setConsecutiveFailures(consecutiveFailures);

        cycleMetricsReporting(cycleMetricsBuilder.build());
    }
@Override
    public void onCycleSkip(CycleSkipReason reason) {
        cycleMetricsBuilder.setConsecutiveFailures(consecutiveFailures);

        lastCycleSuccessTimeNanoOptional.ifPresent(cycleMetricsBuilder::setLastCycleSuccessTimeNano);

        // isCycleSuccess and cycleDurationMillis are not set for skipped cycles
        cycleMetricsBuilder.setConsecutiveFailures(consecutiveFailures);

        cycleMetricsReporting(cycleMetricsBuilder.build());
    }
@ Override public void onCycleSkip ( CycleSkipReason reason ) { cycleMetricsBuilder . setConsecutiveFailures ( consecutiveFailures ) ; lastCycleSuccessTimeNanoOptional . ifPresent ( cycleMetricsBuilder :: setLastCycleSuccessTimeNano ) ; // isCycleSuccess and cycleDurationMillis are not set for skipped cycles cycleMetricsBuilder . setConsecutiveFailures ( consecutiveFailures ) ; cycleMetricsReporting ( cycleMetricsBuilder . build ( ) ) ; }
Reports metrics for when cycle is skipped due to reasons such as the producer not being the leader in a multiple-producer setting.
In a multiple producer setting, leader election typically favors long-lived leaders to avoid producer runs from frequently requiring
to reload the full state before publishing data. When a cycle is skipped because the producer wasn't primary, the current value of
no. of consecutive failures and most recent cycle success time are retained, and no cycle status (success or fail) is reported.
@param reason Reason why the run was skipped
Reports metrics for when cycle is skipped due to reasons such as the producer not being the leader in a multiple - producer setting . In a multiple producer setting leader election typically favors long - lived leaders to avoid producer runs from frequently requiring to reload the full state before publishing data . When a cycle is skipped because the producer wasn t primary the current value of no . of consecutive failures and most recent cycle success time are retained and no cycle status ( success or fail ) is reported .