Can you be a little bit clearer on why you think that different keys with the same digest value will be treated as the same key? SkimpyOffsetMap#get and SkimpyOffsetMap#put compare the key, not just the hash digest of the key.
best, Colin On Wed, Dec 21, 2016, at 23:27, Renkai Ge wrote: > Hi,all: > I am just learning the kafka codebase, as what I saw in > https://github.com/apache/kafka/blob/6ed3e6b1cb8a73b1f5f78926ccb247a8953a554c/core/src/main/scala/kafka/log/OffsetMap.scala#L43-L43 > > if different log keys have the same digest value, they will be treated as > the same key in log compaction.Though the risk of such things happens is > very small, I still want it to be avoided.If what I thought is wrong > please > let me know, and I hope to know the thoughts of who created or > is maintaining the code.