You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2018/10/17 09:45:48 UTC

[GitHub] vvysotskyi commented on a change in pull request #1506: DRILL-6793: FragmentExecutor cannot send its final state for the case…

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:
users@infra.apache.org


With regards,
Apache Git Services