Hi all,

Following up on this thread after the Community Sync, I'd like to take a
first step for FSIP-9: an offline-copy POC with Apache SeaTunnel, as Aman
suggested above, written up as a migration guide (settings, security,
compute needs).

This picks up from the March thread "End support of mySQL and MariaDB;
migration tooling related to FSIP-9". Jose noted that pgloader struggles
with large transaction and journal-entry tables, and Sifiso mentioned
around 40 MFIs on MariaDB, so I'll start with MariaDB and run pgloader on
the same data as a baseline. On Matrix, Aman mentioned that a few hours of
downtime can be acceptable in banking (Aman, please correct me), so I'd
start with an offline copy and leave zero-downtime/CDC for a later phase.

Plan:

1. Seed MariaDB, on the same Fineract release as the target, with the
integration tests (they already run on MariaDB in CI and cover savings,
deposits and shares) plus part of the Cucumber E2E suite.
2. Start Fineract on a fresh PostgreSQL so Liquibase creates the schema.
3. Copy the data with SeaTunnel's JDBC to JDBC connector [1], and with
pgloader for comparison.
4. Verify: row counts per table, sums of money columns and the trial
balance, Fineract starting on the copied data, and the same API responses
from both instances.

What I've found so far:

- Jira and GitHub have no earlier SeaTunnel work for Fineract; on this list
it has only been proposed so far.
- The E2E suite has 200 feature files, almost all loans (only 2 for
savings), and CI only runs it against PostgreSQL, so it may need fixes to
run on MariaDB.
- Liquibase seeds reference data (permissions, configurations, codes,
reports), and about 200 changesets are MySQL-only and 220 PostgreSQL-only.
Report SQL, for example, is seeded in a PostgreSQL dialect, so the copy
can't simply overwrite seeded tables, and DATABASECHANGELOG must not be
copied.
- Other things to check: sequences, boolean columns, dates/time zones, the
tenant store, user-created datatables, and custom reports written in MySQL
SQL.

Questions:

1. Sifiso, Campbell: could you share rough sizes (database size, loan and
transaction counts) and the Fineract release you run, so the compute
numbers are realistic?
2. Does anyone need MySQL as a source, or is MariaDB enough to start?
3. Which seeded tables should keep the target's rows (e.g. reports) and
which should take the source's (e.g. configurations)?
4. Would a page in the deployment section of fineract-doc be the right home
for the guide?

Thanks,
Abhishek

[1]
https://www.google.com/url?q=https://seatunnel.apache.org/docs/getting-started/recipes/jdbc-to-jdbc/&source=gmail&ust=1795896497484000&sa=E

On Thu, Nov 12, 2026 12:01 PM, Aman Mittal <[email protected]>
wrote:

> I researched that over 80% of migration problems can be solved with Apache
> SeaTunnel (https://seatunnel.apache.org/) itself, as a sister project. We
> could build around it for more Fineract-specific needs.
>
> On Thu, Nov 12, 2026 at 11:34 AM Aman Mittal <[email protected]>
> wrote:
>
>> Also looking for Apache SeaTunnel if it can replace the need.
>>
>> On Thu, Nov 12, 2026 at 10:27 AM Aman Mittal <
>> [email protected]> wrote:
>>
>>> Hi All,
>>>
>>> We have long voted on and accepted FSIP-9. Since the community suggested
>>> and the majority agreed, provided that "Proper migration steps were
>>> considered for Postgres," I want to revive discussions on the next steps.
>>>
>>>
>>> https://cwiki.apache.org/confluence/spaces/FINERACT/pages/406622736/FSIP-9+Standardize+on+PostgreSQL
>>>
>>> I think we can brainstorm ideas for the migration steps. One of the
>>> suggestion it received was that we can use pgloader. However, many
>>> companies or vendors are concerned that their data volume may be large
>>> based on their organizational size.
>>>
>>> I suggest we create a dedicated plugin or perhaps a shared plugin that
>>> exists outside of Fineract Core.
>>>
>>> What the plugin will do: (It will parallelly sync and monitor the
>>> migration in real time 1:1 with MariaDB or MySQL). Then the vendors can
>>> implement and sync to PostgreSQL via CDC or other available methods.
>>>
>>> When the data keeps syncing to PostgreSQL. Vendors can validate and test
>>> schema changes live without incurring downtime.
>>>
>>> HARD Requirement: Plugin dependency should be ASF compliant (Category A
>>> dependencies)
>>>
>>> I think this idea is worth exploring.
>>>
>>> Regards
>>> Aman
>>>
>>

Reply via email to