SweepResults runOneIteration(TableReference tableRef, byte[] startRow, SweepBatchConfig batchConfig) { try { SweepResults results = sweepRunner.run(tableRef, batchConfig, startRow); logSweepPerformance(tableRef, startRow, results); return results; } catch (RuntimeException e) { // This error may be logged on some paths above, but I prefer to log defensively. logSweepError(tableRef, startRow, batchConfig, e); throw e; } }
SweepResults runOneIteration(TableReference tableRef, byte[] startRow, SweepBatchConfig batchConfig) { try { SweepResults results = sweepRunner.run(tableRef, batchConfig, startRow); logSweepPerformance(tableRef, startRow, results); return results; } catch (RuntimeException e) { // This error may be logged on some paths above, but I prefer to log defensively. logSweepError(tableRef, startRow, batchConfig, e); throw e; } }