From 50dfa3b9e886c02298bfebe1385e8eaecf7d1195 Mon Sep 17 00:00:00 2001 From: "zeli.lwb" Date: Mon, 20 Nov 2023 21:37:25 +0800 Subject: [PATCH] [Test] add batch test --- .../com/alipay/oceanbase/hbase/HTableTestBase.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/test/java/com/alipay/oceanbase/hbase/HTableTestBase.java b/src/test/java/com/alipay/oceanbase/hbase/HTableTestBase.java index e07912a2..60e812fb 100644 --- a/src/test/java/com/alipay/oceanbase/hbase/HTableTestBase.java +++ b/src/test/java/com/alipay/oceanbase/hbase/HTableTestBase.java @@ -253,6 +253,19 @@ public void testMultiPut() throws IOException { puts.add(put1); puts.add(put2); hTable.put(puts); + + // put same k, q, t + Put put3 = new Put(Bytes.toBytes("testKey")); + put3.add(toBytes(family), toBytes(column1), -100L, toBytes(value1)); + put3.add(toBytes(family), toBytes(column1), -100L, toBytes(value1)); + + Put put4 = new Put(Bytes.toBytes("testKey")); + put4.add(toBytes(family), toBytes(column1), System.currentTimeMillis(), toBytes(value1)); + put4.add(toBytes(family), toBytes(column1), System.currentTimeMillis(), toBytes(value1)); + puts = new ArrayList(); + puts.add(put3); + puts.add(put4); + hTable.put(puts); } @Test