sentric/hannibal — pull request #9 by alexandre-normand (2012-12-19 06:40:23+00:00)
Title: Fix the log offset handling so that we are not always fetching 1 MB prior to the end of the log

I had stupidly used the regionServer instance as the key for the map that keeps the log offsets for each. Since it doesn't have proper hashCode and equals, that only worked on my fork because I believe we always kept the same regionServer instances. However, after getting the latest changes after the refactor, I noticed we were always falling into the "initial fetch" case because we never found a log file offset for region servers.

I changed the key from RegionServer to the server name string.

The good news is, it should be even faster now on subsequent fetches. :)