Hi there,
I'm facing a persistent issue with snapshotting when using Debezium 2.3 with MySQL (managed in DigitalOcean). When I shut down the connectors for a while and the binlogs are purged by the database automatically in the intervening period, when I restart the connector it will attempt to snapshot using the last binlog location last used and run through the entire snapshot process (around 24 hours for us) before finally concluding that the binlog has been purged and restarting.
My understanding of `when_needed` is that it checks that the binlogs and GTID are available on the server before proceeding, but it does not seem to do that. From the docs:
```when_needed - the connector runs a snapshot upon startup whenever it deems it necessary. That is, when no offsets are available, or when a previously recorded offset specifies a binlog location or GTID that is not available in the server.```
If I run `show binary logs` on the server before running the connector then I can see that the binlog has been purged already. I can see that on the topic `dbserver1` (also topic prefix) that the last binlog recorded is the purged one, but I'm not sure why it's reading from there if we're using `when_needed.
Is there something I'm missing here? Are we meant to reset the binlog location manually somehow before proceeding with a snapshot?
Thank you