amplab/tachyon — pull request #535 by shaoshal (2014-11-18 22:08:55+00:00)
Title: FIX TACHYON-232: Add warning messages to guard against illegal input to ...

When running Tachyon, we have seen cases that some illegal positions (such as -1) were passed to the seek function, leading to wrong blocks getting fetched. We should catch this problem early, e.g. in HdfsFileInputStream.java.
One way to handle this is to throw an exception when an illegal offset is encountered.

File touched:
https://github.com/shimingfei/tachyon/blob/7be9bb0e527a696e840b39c5e0365226a631a61d/core/src/main/java/tachyon/hadoop/HdfsFileInputStream.java