@@ -647,7 +647,7 @@ public void batch(final List<? extends Row> actions, final Object[] results) thr
647647 try {
648648 compatOldServerBatch (actions , results , batchError );
649649 } catch (Exception e ) {
650- throw new IOException (e );
650+ throw new IOException (tableNameString + " table occurred unexpected error." , e );
651651 }
652652 } else {
653653 String realTableName = getTargetTableName (actions );
@@ -657,7 +657,7 @@ public void batch(final List<? extends Row> actions, final Object[] results) thr
657657 try {
658658 tmpResults = batch .execute ();
659659 } catch (Exception e ) {
660- throw new IOException (e );
660+ throw new IOException (tableNameString + " table occurred unexpected error." , e );
661661 }
662662 int index = 0 ;
663663 for (int i = 0 ; i != actions .size (); ++i ) {
@@ -1266,7 +1266,6 @@ private void innerDelete(Delete delete) throws IOException {
12661266 batch (Collections .singletonList (delete ));
12671267 } catch (Exception e ) {
12681268 logger .error (LCD .convert ("01-00004" ), tableNameString , e );
1269- throw new IOException ("delete table " + tableNameString + " error." , e );
12701269 }
12711270 }
12721271
@@ -1553,9 +1552,6 @@ public void flushCommits() throws IOException {
15531552 } catch (Exception e ) {
15541553 logger .error (LCD .convert ("01-00008" ), tableNameString , null , autoFlush ,
15551554 writeBuffer .size (), e );
1556- throw new IOException ("put table " + tableNameString + " error codes " + null
1557- + "auto flush " + autoFlush + " current buffer size "
1558- + writeBuffer .size (), e );
15591555 } finally {
15601556 // mutate list so that it is empty for complete success, or contains
15611557 // only failed records results are returned in the same order as the
0 commit comments