@@ -130,13 +130,13 @@ public void printCounts(String finalStr) {
130
130
private void diff (Row sourceRow , Row astraRow ) {
131
131
if (astraRow == null ) {
132
132
missingCounter .incrementAndGet ();
133
- logger .error ("Data is missing in Target : " + getKey (sourceRow ));
133
+ logger .error ("Missing target row found for key : " + getKey (sourceRow ));
134
134
//correct data
135
135
136
136
if (autoCorrectMissing ) {
137
137
astraSession .execute (bindInsert (astraInsertStatement , sourceRow , null ));
138
138
correctedMissingCounter .incrementAndGet ();
139
- logger .error ("Corrected missing data in Target : " + getKey (sourceRow ));
139
+ logger .error ("Inserted missing row in target : " + getKey (sourceRow ));
140
140
}
141
141
142
142
return ;
@@ -145,7 +145,7 @@ private void diff(Row sourceRow, Row astraRow) {
145
145
String diffData = isDifferent (sourceRow , astraRow );
146
146
if (!diffData .isEmpty ()) {
147
147
mismatchCounter .incrementAndGet ();
148
- logger .error ("Data mismatch found - Key : " + getKey (sourceRow ) + " Data : " + diffData );
148
+ logger .error ("Mismatch row found for key : " + getKey (sourceRow ) + " Mismatch : " + diffData );
149
149
150
150
if (autoCorrectMismatch ) {
151
151
if (isCounterTable ) {
@@ -154,7 +154,7 @@ private void diff(Row sourceRow, Row astraRow) {
154
154
astraSession .execute (bindInsert (astraInsertStatement , sourceRow , null ));
155
155
}
156
156
correctedMismatchCounter .incrementAndGet ();
157
- logger .error ("Corrected mismatch data in Target : " + getKey (sourceRow ));
157
+ logger .error ("Updated mismatch row in target : " + getKey (sourceRow ));
158
158
}
159
159
160
160
return ;
@@ -172,7 +172,7 @@ private String isDifferent(Row sourceRow, Row astraRow) {
172
172
173
173
boolean isDiff = dataType .diff (source , astra );
174
174
if (isDiff ) {
175
- diffData .append (" (Index: " + index + " Origin: " + source + " Target: " + astra + " ) " );
175
+ diffData .append ("(Index: " + index + " Origin: " + source + " Target: " + astra + " ) " );
176
176
}
177
177
});
178
178
0 commit comments