: Thanks for replying. We are using Solr 6.1 version. Even I saw that it is : bounded by 1K count, but after looking at heap dump I was amazed how can it : keep more than 1K entries. But Yes I see around 7M entries according to : heap dump and around 17G of memory occupied by BytesRef there.
what exactly are you looking at when you say you see "7M entries" ? are you sure you aren't confusing the keys in oldDeletes with other instances of BytesRef in the JVM? : It would be better to know why old deletes Map is used there. I am still : digging, If I find something then I will share that. See UpdateLog.lookupVersion for where the mapping is used if you are curious. Replicas recieving updates need to be able to verify (and in some casees ask the leader via RTG) for the version used when a doc was deleted in the even of concurrent/out-of-order updates for the same uniqueKey. -Hoss http://www.lucidworks.com/