Locking ClientKnowledgeBase correctly
Correcting offsets of read/write and adding support for multiple partitions at the same time