Avoid 48 years delay at startup.

This commit is contained in:
Chuanyi Li
2018-08-17 19:54:57 +08:00
parent 10a80b2752
commit a6abe7fa82

View File

@@ -13,7 +13,7 @@ import java.util.concurrent.atomic.AtomicLong;
*/
public class PrometheusCanalEventDownStreamHandler extends AbstractCanalEventDownStreamHandler<List<Event>> {
private final AtomicLong latestExecuteTime = new AtomicLong(0L);
private final AtomicLong latestExecuteTime = new AtomicLong(System.currentTimeMillis());
private final AtomicLong transactionCounter = new AtomicLong(0L);
private final AtomicLong rowEventCounter = new AtomicLong(0L);
private final AtomicLong rowsCounter = new AtomicLong(0L);