We already had a "tables" variable, which was empty ArrayList in case the compactRequest.tables was null. This just wasn't used if tokenRange wasn't set.
Also, add logging in case we get Throwable so it makes debugging easier.
Fixes #437
Tested manually:
➜ cass-operator git:(master) ✗ kubectl get cassandratask
NAME DATACENTER JOB SCHEDULED STARTED COMPLETED
example-compact dc2 compact 41s 31s
➜ cass-operator git:(master) ✗
We already had a "tables" variable, which was empty ArrayList in case the compactRequest.tables was null. This just wasn't used if tokenRange wasn't set.
Also, add logging in case we get Throwable so it makes debugging easier.
Fixes #437
Tested manually: