title: MongoDB Java client allowDiskUse does not work
body: <p>I used the allowDiskUse option with the MongoTemplate :</p>
  <pre><code>AggregateIterable&lt;Document&gt; results = mongoTemplate.getCollection(&quot;match&quot;)
              .aggregate(...).allowDiskUse(true)
  </code></pre>
  <p>And still get this error :</p>
  <blockquote>
  <p>Exceeded memory limit for $group, but didn't allow external sort. Pass allowDiskUse:true to opt in.</p>
  </blockquote>
  <p>Is it bugged ?</p>
  <p>Note that I use the mongo java client 3.11 and a mongo atlas M2 (v 4.2.9)</p>
  <p>I also tried with batchSize and useCursor but it didn't work</p>