brianmhess / cassandra-loader

Delimited file loader for Cassandra
Apache License 2.0
197 stars 93 forks source link

Fix CqlDelimLoad to return false if a future result is 0 #87

Open jcross-linkup opened 6 years ago

jcross-linkup commented 6 years ago

The future result will be 0 when there is a fatal error. Instead of adding the 0 to the total rows loaded, return false which will cause cassandra-loader to exit non-0 indicating a fatal error occurred.

jcross-linkup commented 6 years ago

In the git comment, I should have said 0 or less indicates an error. The code accounts for that.