3 ms·
MongoDB's random exception handling
- facorreia 11y agoWhat an odd thing! What's the purpose of that? This looks one case where a comment explaining the intention would add value. Update: It seems that what it does is to only log 10% of errors... on average. Of course that also seems to make logs non-deterministic.
- brianwawok 11y agoYes a hack to stop someone spamming the same error from bringing the server down. Not the worst of Mongo hacks by far.
- nodesocket 11y agoThis is in the Java client, not core.