Adding a foreign key to an existing table, and concurrently replicating a statement that changes the parent so that it violates the FK constraint, may result in the applier failing and reporting the constraint violation.
The scenario is as follows:
ALTER adds FK in node1 successfully
On node2 UPDATE/DELETE is in pre_commit (FK is not violated, as FK is not applied yet)
On node2 ALTER BF aborts UPDATE/DELETE, after pre_commit certified it successfully e
Applying of UPDATE/DELETE fails due to FK constraint violation and causes crash
Adding a foreign key to an existing table, and concurrently replicating a statement that changes the parent so that it violates the FK constraint, may result in the applier failing and reporting the constraint violation.
The scenario is as follows: