diff --git a/pom.xml b/pom.xml
index beaedb9447..d1edef19fb 100755
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,8 @@
4.10.0
4.0.5
4.3.1.0
- 3.11.9
+ 3.11.10
+ 3.11.0
1.2.7
28.2-jre
2.6.1
@@ -1095,6 +1096,11 @@
java-driver-query-builder
${cassandra.version}
+
+ com.datastax.cassandra
+ cassandra-driver-core
+ ${cassandra-driver-core.version}
+
io.dropwizard.metrics
metrics-jmx
diff --git a/tools/pom.xml b/tools/pom.xml
index e3df0e08d0..99f966b283 100644
--- a/tools/pom.xml
+++ b/tools/pom.xml
@@ -54,17 +54,14 @@
org.apache.cassandra
cassandra-all
- 3.11.10
com.datastax.cassandra
cassandra-driver-core
- 3.10.1
commons-io
commons-io
- 2.5
diff --git a/tools/src/main/java/org/thingsboard/client/tools/migrator/PgCaMigrator.java b/tools/src/main/java/org/thingsboard/client/tools/migrator/PgCaMigrator.java
index afa341f880..7aec7ba5f3 100644
--- a/tools/src/main/java/org/thingsboard/client/tools/migrator/PgCaMigrator.java
+++ b/tools/src/main/java/org/thingsboard/client/tools/migrator/PgCaMigrator.java
@@ -1,3 +1,18 @@
+/**
+ * Copyright © 2016-2021 The Thingsboard Authors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.thingsboard.client.tools.migrator;
import com.google.common.collect.Lists;
@@ -122,29 +137,52 @@ public class PgCaMigrator {
}
}
- private void logLinesProcessed() {
- if (linesProcessed++ % LOG_BATCH == 0) {
- System.out.println(new Date() + " linesProcessed = " + linesProcessed + " in, castOk " + castedOk + " castErr " + castErrors);
+ private void logLinesProcessed(long lines) {
+ if (lines % LOG_BATCH == 0) {
+ System.out.println(new Date() + " lines processed = " + lines + " in, castOk " + castedOk + " castErr " + castErrors);
}
}
- private List