Skip to content

Issue 6280 - Changelog trims updates from a given RID even if a consu…#6281

Merged
tbordaz merged 1 commit into
389ds:mainfrom
tbordaz:issue_6280
Aug 26, 2024
Merged

Issue 6280 - Changelog trims updates from a given RID even if a consu…#6281
tbordaz merged 1 commit into
389ds:mainfrom
tbordaz:issue_6280

Conversation

@tbordaz

@tbordaz tbordaz commented Jul 31, 2024

Copy link
Copy Markdown
Contributor

…mer has not received any of them

Bug description:
If a consumer has not received any of the updates from a given RID, the RUV
(in the replication agreement) contains no csn.
In such case, the changelog trimming thread compute the starting purge csn
using the supplier RUV instead of the RA RUV.
Later the supplier will miss this csn to update the consumer and
replication is broken

Fix description:
The function that iterates the elements of the replication agreement RUV
should call the callback (_cl5EnumConsumerRUV) with all elements even those
containing empty CSN.
The callback (_cl5EnumConsumerRUV) should remove the RID
from the replica RUV in case the RA.RUV is empty.

relates: #6280

Reviewed by:

@tbordaz
tbordaz force-pushed the issue_6280 branch 2 times, most recently from 9ee16b0 to 79a8b18 Compare August 5, 2024 09:07

@progier389 progier389 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@droideck droideck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

…mer has not received any of them

Bug description:
        If a consumer has not received any of the updates from a given RID, the RUV
        (in the replication agreement) contains no csn.
        In such case, the changelog trimming thread compute the starting purge csn
        using the supplier RUV instead of the RA RUV.
        Later the supplier will miss this csn to update the consumer and
        replication is broken

Fix description:
	The function that iterates the elements of the replication agreement RUV
        should call the callback (_cl5EnumConsumerRUV) with all elements even those
        containing empty CSN.
	The callback (_cl5EnumConsumerRUV) should remove the RID
	from the replica RUV in case the RA.RUV is empty.

relates: 389ds#6280

Reviewed by: Pierre Rogier, Simon Pichugin (Thanks)
@tbordaz
tbordaz merged commit 0cfe9f2 into 389ds:main Aug 26, 2024
tbordaz added a commit that referenced this pull request Aug 26, 2024
…mer has not received any of them (#6281)

Bug description:
        If a consumer has not received any of the updates from a given RID, the RUV
        (in the replication agreement) contains no csn.
        In such case, the changelog trimming thread compute the starting purge csn
        using the supplier RUV instead of the RA RUV.
        Later the supplier will miss this csn to update the consumer and
        replication is broken

Fix description:
	The function that iterates the elements of the replication agreement RUV
        should call the callback (_cl5EnumConsumerRUV) with all elements even those
        containing empty CSN.
	The callback (_cl5EnumConsumerRUV) should remove the RID
	from the replica RUV in case the RA.RUV is empty.

relates: #6280

Reviewed by: Pierre Rogier, Simon Pichugin (Thanks)
tbordaz added a commit that referenced this pull request Aug 26, 2024
…mer has not received any of them (#6281)

Bug description:
        If a consumer has not received any of the updates from a given RID, the RUV
        (in the replication agreement) contains no csn.
        In such case, the changelog trimming thread compute the starting purge csn
        using the supplier RUV instead of the RA RUV.
        Later the supplier will miss this csn to update the consumer and
        replication is broken

Fix description:
	The function that iterates the elements of the replication agreement RUV
        should call the callback (_cl5EnumConsumerRUV) with all elements even those
        containing empty CSN.
	The callback (_cl5EnumConsumerRUV) should remove the RID
	from the replica RUV in case the RA.RUV is empty.

relates: #6280

Reviewed by: Pierre Rogier, Simon Pichugin (Thanks)
tbordaz added a commit that referenced this pull request Aug 26, 2024
…mer has not received any of them (#6281)

Bug description:
        If a consumer has not received any of the updates from a given RID, the RUV
        (in the replication agreement) contains no csn.
        In such case, the changelog trimming thread compute the starting purge csn
        using the supplier RUV instead of the RA RUV.
        Later the supplier will miss this csn to update the consumer and
        replication is broken

Fix description:
	The function that iterates the elements of the replication agreement RUV
        should call the callback (_cl5EnumConsumerRUV) with all elements even those
        containing empty CSN.
	The callback (_cl5EnumConsumerRUV) should remove the RID
	from the replica RUV in case the RA.RUV is empty.

relates: #6280

Reviewed by: Pierre Rogier, Simon Pichugin (Thanks)
tbordaz added a commit that referenced this pull request Aug 26, 2024
…mer has not received any of them (#6281)

Bug description:
        If a consumer has not received any of the updates from a given RID, the RUV
        (in the replication agreement) contains no csn.
        In such case, the changelog trimming thread compute the starting purge csn
        using the supplier RUV instead of the RA RUV.
        Later the supplier will miss this csn to update the consumer and
        replication is broken

Fix description:
	The function that iterates the elements of the replication agreement RUV
        should call the callback (_cl5EnumConsumerRUV) with all elements even those
        containing empty CSN.
	The callback (_cl5EnumConsumerRUV) should remove the RID
	from the replica RUV in case the RA.RUV is empty.

relates: #6280

Reviewed by: Pierre Rogier, Simon Pichugin (Thanks)
tbordaz added a commit that referenced this pull request Aug 26, 2024
…mer has not received any of them (#6281)

Bug description:
        If a consumer has not received any of the updates from a given RID, the RUV
        (in the replication agreement) contains no csn.
        In such case, the changelog trimming thread compute the starting purge csn
        using the supplier RUV instead of the RA RUV.
        Later the supplier will miss this csn to update the consumer and
        replication is broken

Fix description:
	The function that iterates the elements of the replication agreement RUV
        should call the callback (_cl5EnumConsumerRUV) with all elements even those
        containing empty CSN.
	The callback (_cl5EnumConsumerRUV) should remove the RID
	from the replica RUV in case the RA.RUV is empty.

relates: #6280

Reviewed by: Pierre Rogier, Simon Pichugin (Thanks)
tbordaz added a commit that referenced this pull request Aug 26, 2024
…mer has not received any of them (#6281)

Bug description:
        If a consumer has not received any of the updates from a given RID, the RUV
        (in the replication agreement) contains no csn.
        In such case, the changelog trimming thread compute the starting purge csn
        using the supplier RUV instead of the RA RUV.
        Later the supplier will miss this csn to update the consumer and
        replication is broken

Fix description:
	The function that iterates the elements of the replication agreement RUV
        should call the callback (_cl5EnumConsumerRUV) with all elements even those
        containing empty CSN.
	The callback (_cl5EnumConsumerRUV) should remove the RID
	from the replica RUV in case the RA.RUV is empty.

relates: #6280

Reviewed by: Pierre Rogier, Simon Pichugin (Thanks)
tbordaz added a commit that referenced this pull request Aug 26, 2024
…mer has not received any of them (#6281)

Bug description:
        If a consumer has not received any of the updates from a given RID, the RUV
        (in the replication agreement) contains no csn.
        In such case, the changelog trimming thread compute the starting purge csn
        using the supplier RUV instead of the RA RUV.
        Later the supplier will miss this csn to update the consumer and
        replication is broken

Fix description:
	The function that iterates the elements of the replication agreement RUV
        should call the callback (_cl5EnumConsumerRUV) with all elements even those
        containing empty CSN.
	The callback (_cl5EnumConsumerRUV) should remove the RID
	from the replica RUV in case the RA.RUV is empty.

relates: #6280

Reviewed by: Pierre Rogier, Simon Pichugin (Thanks)
tbordaz added a commit that referenced this pull request Aug 26, 2024
…mer has not received any of them (#6281)

Bug description:
        If a consumer has not received any of the updates from a given RID, the RUV
        (in the replication agreement) contains no csn.
        In such case, the changelog trimming thread compute the starting purge csn
        using the supplier RUV instead of the RA RUV.
        Later the supplier will miss this csn to update the consumer and
        replication is broken

Fix description:
	The function that iterates the elements of the replication agreement RUV
        should call the callback (_cl5EnumConsumerRUV) with all elements even those
        containing empty CSN.
	The callback (_cl5EnumConsumerRUV) should remove the RID
	from the replica RUV in case the RA.RUV is empty.

relates: #6280

Reviewed by: Pierre Rogier, Simon Pichugin (Thanks)
tbordaz added a commit that referenced this pull request Aug 26, 2024
…mer has not received any of them (#6281)

Bug description:
        If a consumer has not received any of the updates from a given RID, the RUV
        (in the replication agreement) contains no csn.
        In such case, the changelog trimming thread compute the starting purge csn
        using the supplier RUV instead of the RA RUV.
        Later the supplier will miss this csn to update the consumer and
        replication is broken

Fix description:
	The function that iterates the elements of the replication agreement RUV
        should call the callback (_cl5EnumConsumerRUV) with all elements even those
        containing empty CSN.
	The callback (_cl5EnumConsumerRUV) should remove the RID
	from the replica RUV in case the RA.RUV is empty.

relates: #6280

Reviewed by: Pierre Rogier, Simon Pichugin (Thanks)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants