This is an automated email from the ASF dual-hosted git repository.

brandonwilliams pushed a commit to branch cassandra-3.0
in repository https://gitbox.apache.org/repos/asf/cassandra.git

commit c1008cc1ea7fd797c0e9fe374dd36771d866728d
Author: Aleksandr Sorokoumov <[email protected]>
AuthorDate: Sat Jan 9 15:43:37 2021 +0100

    CASSANDRA-16372 COPY FROM does not report failed rows as imported
---
 pylib/cqlshlib/copyutil.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pylib/cqlshlib/copyutil.py b/pylib/cqlshlib/copyutil.py
index e85558c..3f7c091 100644
--- a/pylib/cqlshlib/copyutil.py
+++ b/pylib/cqlshlib/copyutil.py
@@ -1238,7 +1238,7 @@ class ImportTask(CopyTask):
             attempts -= 1
 
         self.printmsg("\n%d rows imported from %d files in %s (%d skipped)." %
-                      (self.receive_meter.get_total_records(),
+                      (self.receive_meter.get_total_records() - 
self.error_handler.num_rows_failed,
                        self.feeding_result.num_sources if self.feeding_result 
else 0,
                        self.describe_interval(time.time() - self.time_start),
                        self.feeding_result.skip_rows if self.feeding_result 
else 0))


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to