File tree 1 file changed +2
-6
lines changed
src/main/java/org/xbib/elasticsearch/jdbc/strategy/standard
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -598,8 +598,6 @@ public void fetch() throws SQLException, IOException {
598
598
}
599
599
if (sourceMetric != null ) {
600
600
sourceMetric .getSucceeded ().inc ();
601
- sourceMetric .setLastExecutionStart (dateTime );
602
- sourceMetric .setLastExecutionEnd (new DateTime ());
603
601
}
604
602
} catch (SQLRecoverableException e ) {
605
603
long millis = getMaxRetryWait ().getMillis ();
@@ -617,21 +615,19 @@ public void fetch() throws SQLException, IOException {
617
615
}
618
616
if (sourceMetric != null ) {
619
617
sourceMetric .getSucceeded ().inc ();
620
- sourceMetric .setLastExecutionStart (dateTime );
621
- sourceMetric .setLastExecutionEnd (new DateTime ());
622
618
}
623
619
}
624
620
}
625
621
} catch (Exception e ) {
626
622
if (sourceMetric != null ) {
627
623
sourceMetric .getFailed ().inc ();
628
- sourceMetric .setLastExecutionStart (dateTime );
629
- sourceMetric .setLastExecutionEnd (new DateTime ());
630
624
}
631
625
throw new IOException (e );
632
626
} finally {
633
627
if (sourceMetric != null ) {
634
628
sourceMetric .incCounter ();
629
+ sourceMetric .setLastExecutionStart (dateTime );
630
+ sourceMetric .setLastExecutionEnd (new DateTime ());
635
631
}
636
632
}
637
633
}
You can’t perform that action at this time.
0 commit comments