Description
if getProgress is called after scanner is closed, ClosedChannelException can cause
Here is the log
2015-11-30 17:15:09,131 ERROR org.apache.tajo.storage.rawfile.DirectRawFileScanner: java.nio.channels.ClosedChannelException at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:109) at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:252) at org.apache.tajo.storage.LocalFileInputChannel.position(LocalFileInputChannel.java:54) at org.apache.tajo.storage.rawfile.DirectRawFileScanner.getProgress(DirectRawFileScanner.java:221) at org.apache.tajo.engine.planner.physical.ExternalSortExec$PairWiseMerger.getProgress(ExternalSortExec.java:768) at org.apache.tajo.engine.planner.physical.ExternalSortExec$PairWiseMerger.getProgress(ExternalSortExec.java:768) at org.apache.tajo.engine.planner.physical.ExternalSortExec$PairWiseMerger.getProgress(ExternalSortExec.java:768) at org.apache.tajo.engine.planner.physical.ExternalSortExec.getProgress(ExternalSortExec.java:849) at org.apache.tajo.engine.planner.physical.UnaryPhysicalExec.getProgress(UnaryPhysicalExec.java:87) at org.apache.tajo.worker.TaskImpl.updateProgress(TaskImpl.java:315) at org.apache.tajo.worker.ExecutionBlockContext$Reporter$1.run(ExecutionBlockContext.java:407) at java.lang.Thread.run(Thread.java:745) 2015-11-30 17:15:09,131 ERROR org.apache.tajo.storage.rawfile.DirectRawFileScanner: java.nio.channels.ClosedChannelException