Hi,
I'm getting the below error in AlwaysOn secondary replica because of same object accessed by index rebuild statement in primary replica.
Msg 3961, Level 16, State 1, Line 3
Snapshot isolation transaction failed in database 'xxxx' because the object accessed by the statement has been modified by a DDL statement in another concurrent transaction since the start of this transaction. It is disallowed because the metadata is
not versioned. A concurrent update to metadata can lead to inconsistency if mixed with snapshot isolation.
I understand that by default secondary replica use snapshot Isolation in AlwaysOn setup and it use Row Versioning to store data's temporarily, due to this index metadata changes on primary will not take effect for currently running session in secondary replica.
Is there any fix for this issue?
Thanks in advance.