@@ -912,20 +912,11 @@ private void processArrowStream(
912912 enqueueError (arrowBatchWrapperBlockingQueue , e );
913913 Thread .currentThread ().interrupt ();
914914 } catch (Exception e ) {
915- if (e .getCause () instanceof InterruptedException || Thread .currentThread ().isInterrupted ()) {
916- LOG .log (
917- Level .WARNING ,
918- "\n " + Thread .currentThread ().getName () + " Interrupted @ arrowStreamProcessor" ,
919- e );
920- enqueueError (arrowBatchWrapperBlockingQueue , e );
921- Thread .currentThread ().interrupt ();
922- } else {
923- LOG .log (
924- Level .WARNING ,
925- "\n " + Thread .currentThread ().getName () + " Error @ arrowStreamProcessor" ,
926- e );
927- enqueueError (arrowBatchWrapperBlockingQueue , e );
928- }
915+ LOG .log (
916+ Level .WARNING ,
917+ "\n " + Thread .currentThread ().getName () + " Error @ arrowStreamProcessor" ,
918+ e );
919+ enqueueError (arrowBatchWrapperBlockingQueue , e );
929920 } finally { // logic needed for graceful shutdown
930921 enqueueEndOfStream (arrowBatchWrapperBlockingQueue );
931922 }
@@ -1683,20 +1674,11 @@ private void parseAndPopulateRpcData(
16831674 }
16841675
16851676 } catch (Exception ex ) {
1686- if (ex .getCause () instanceof InterruptedException || Thread .currentThread ().isInterrupted ()) {
1687- LOG .log (
1688- Level .WARNING ,
1689- "\n " + Thread .currentThread ().getName () + " Interrupted @ populateBufferAsync" ,
1690- ex );
1691- enqueueBufferError (bigQueryFieldValueListWrapperBlockingQueue , ex );
1692- Thread .currentThread ().interrupt ();
1693- } else {
1694- LOG .log (
1695- Level .WARNING ,
1696- "\n " + Thread .currentThread ().getName () + " Error @ populateBufferAsync" ,
1697- ex );
1698- enqueueBufferError (bigQueryFieldValueListWrapperBlockingQueue , ex );
1699- }
1677+ LOG .log (
1678+ Level .WARNING ,
1679+ "\n " + Thread .currentThread ().getName () + " Error @ populateBufferAsync" ,
1680+ ex );
1681+ enqueueBufferError (bigQueryFieldValueListWrapperBlockingQueue , ex );
17001682 } finally {
17011683 enqueueBufferEndOfStream (bigQueryFieldValueListWrapperBlockingQueue );
17021684 }
0 commit comments