I don't know exactly what is happening here, but according to the docs, `preferOpenPartitions` should return the previous partition, if `offset` falls at the beginning of a partition. I don't understand either why the special-casing of the default partition here.