diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java index 12d9a006101..daf9ce6df48 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java @@ -1059,9 +1059,9 @@ public class ThriftServerRunner implements Runnable { table = getTable(tableName); if (!puts.isEmpty()) table.put(puts); - for (Delete del : deletes) { - table.delete(del); - } + if (!deletes.isEmpty()) + table.delete(deletes); + } catch (IOException e) { LOG.warn(e.getMessage(), e); throw new IOError(e.getMessage());