vvysotskyi commented on a change in pull request #1506: DRILL-6793: 
FragmentExecutor cannot send its final state for the case…
URL: https://github.com/apache/drill/pull/1506#discussion_r225853187
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/store/avro/AvroRecordReader.java
 ##########
 @@ -403,7 +403,9 @@ public void close() {
   public String toString() {
     long currentPosition = -1L;
     try {
-      currentPosition = reader.tell();
+      if (reader != null) {
+        currentPosition = reader.tell();
+      }
     } catch (IOException e) {
       logger.trace("Unable to obtain reader position: " + e.getMessage());
 
 Review comment:
   Please log the stack trace of the exception.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to