[ https://issues.apache.org/jira/browse/HADOOP-9495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13655099#comment-13655099 ]
Steve Loughran commented on HADOOP-9495: ---------------------------------------- I've concluded that allowing a seek to go back in range is the ideal story, as then the sequence {{{seek(P1);seek(P2)}}} can be elided to {{{seek(P2)}}} and we can pretend that {{{seek(P1)}}} never happened, though as all seek operations may fail if P1 > length(file), I'm not sure you really can get away with it. > Define behaviour of Seekable.seek(), write tests, fix all hadoop > implementations for compliance > ----------------------------------------------------------------------------------------------- > > Key: HADOOP-9495 > URL: https://issues.apache.org/jira/browse/HADOOP-9495 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs > Affects Versions: 1.2.0, 3.0.0 > Reporter: Steve Loughran > Assignee: Steve Loughran > Attachments: HADOOP-9495.patch > > > {{Seekable.seek()}} seems a good starting point for specifying, testing and > implementing FS API compliance: one method, relatively non-ambiguous > semantics, easily assessed used in the Hadoop codebase. Specify and test it > first -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira