Starting in version 4.0, MongoDB has no limit on the amount of data that can be rolled back.
In previous versions, a mongod instance will not roll back more than 300 megabytes of data and requires manual intervention if more than 300 megabytes of data need to be rolled back.
Turns out, this is not 100% accurate. There are conditions under which the 300MB limit is still enforced after 4.0.
There are two methods used for rollback:
1. "Rollback to Timestamp" (default)
2. "Rollback-via-Refetch" - used when "enableMajorityReadConcern=false"
Under condition #1 the 300MB is indeed no longer enforced post-4.0. But under condition #2, the limit is still enforced, and users can still get the following assertions:
This distinction appears here in SERVER-23392.