Hi -
Yes, you can use the "file" signal to trigger the incremental
snapshot, but that won't be sufficient as write access is required
for Incremental Snapshots unless the source database supports what
is called "read-only" incremental snapshots.
By default, incremental snapshots write window markers to the
signal table. These markers are then captured in the CDC
processing loop to identify where the incremental snapshot chunk
read should be performed and what data set read from the
transaction logs should undergo a process called de-duplication so
that you don't get a snapshot and a change event for the same row.
For MySQL, MariaDB, and PostgreSQL, there is a specialization of
incremental snapshots called read-only, where these window markers
are managed in a different way that does not require write
permissions on the database. For MySQL and MariaDB, this requires
that GTID mode be enabled.
So in your case, while you can use the "file" channel to trigger
the incremental snapshot, if MySQL does not have GTID mode
enabled, then write access to the database is mandatory. For
MongoDB there is no read-only specialization, so write access is
required.
So I'm afraid without write permissions, MongoDB won't be able to
use Incremental Snapshots and potentially MySQL if you don't have
GTIDs enabled.
-cc