cshannon commented on PR #3332: URL: https://github.com/apache/accumulo/pull/3332#issuecomment-1528807830
> I wonder if instead of creating `FencedReader` and `IndexedFileSKVIterator` the existing objects should be modified to include the fence Range. I think the fence Range should be required, not optional. I think that would make the code less confusing in the future - one way of doing things vs the developer having to make the "right" choice later. I've been going back and forth with this idea. We could ultimately decide to do this but I talked to @keith-turner about this a bit yesterday and and he thought having it separate is nice for testing and for optimization as we can leave out all the extra code for handing fencing in the iterator stack if there's no fence effective fencing going on. Even if we make it required it still could be effectively optional and ignored if it is an infinite range or covers the entire file. On the other hand we could probably write it in such a way that even if we require a fence object in the RFile we could essentially avoid the performance penalty by skipping all the checks and seeks and stuff if we can detect that the rfile fits entirely in the fence. I can let @keith-turner comment here too if he wants to elaborate more on this thoughts about this. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
