Yes, it would generate duplicate keys if you write the same content multiple times.We’re not concerned with values right now.
Duplicate keys mean exactly duplicate keys. Usually, the duplicate keys are dropped when we do a snapshot (which performs badger compaction). @JimWen please capture all the logs. When the DB crashes, I’d like to see if there were any snapshots.
Could you give me some duplicate keys here, and what’s strange is that there is only duplicate keys in ‘dgraph.type’ not in any other predicates where both of them have duplicates writes.
Yeah, I am not 100% why would there be so many duplicate type keys. @martinmr might have some clue so I’ll wait for his reply.
I also noticed that there are no snapshots in the provided data directory.