Skip to content

Commit 1d6cbe3

Browse files
committed
fix test case and correct log info
1 parent 0a87f24 commit 1d6cbe3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/alipay/oceanbase/hbase/util/OHBufferedMutatorImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ private void batchExecute(boolean flushAll) throws IOException {
191191
execBuffer.clear();
192192
} catch (Exception ex) {
193193
// do not recollect error operations, notify outside
194-
LOGGER.error(LCD.convert("01-00026"), ex);
194+
LOGGER.error("error happens: table name = ", tableName.getNameAsString(), ex);
195195
if (ex.getCause() instanceof RetriesExhaustedWithDetailsException) {
196-
LOGGER.error(tableName + ": One or more of the operations have failed after retries.");
196+
LOGGER.error(tableName.getNameAsString() + ": One or more of the operations have failed after retries.", ex);
197197
RetriesExhaustedWithDetailsException retryException = (RetriesExhaustedWithDetailsException) ex.getCause();
198198
if (listener != null) {
199199
listener.onException(retryException, this);

src/test/java/com/alipay/oceanbase/hbase/HTableTestBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5189,7 +5189,7 @@ public void testCellTTL() throws Exception {
51895189
try {
51905190
tryPut(hTable, errorPut);
51915191
} catch (Exception e) {
5192-
assertTrue(e.getCause().toString().contains("Unknown column 'TTL'"));
5192+
assertTrue(e.getCause().getCause().toString().contains("Unknown column 'TTL'"));
51935193
}
51945194
// test put and get
51955195
tryPut(hTable, put1);

0 commit comments

Comments
 (0)