Skip to content

Mirror sync: защитить YDB от перезаписи новой версии устаревшим UPSERT #131

Description

@pavlig43

????????

Mirror sync ???????? ?????????? ?? updated_at / deleted_at, ?? ?????? ? YDB ??????????? ??????? ??????????? UPSERT.

???? ??? ??????? ???????? ???????????, ???????? ????????:

  1. ?????? A ?????? remote snapshot;
  2. ?????? B ?????????? ????? ????? ?????? ??????;
  3. ?????? A ?????????? ???????????? ?????, ????? ?????? ??????;
  4. ??????????? UPSERT ?????????????? ????? remote-?????? ??????????? ???????.

?????? ??? ?? ????????? ?????????: ???????? ???????????? ???????? ?? legacy-sync, ? mirror ???????????? ??? ????????? ??????/?????????? ??????????????.

??? ??????? ?????

  • ??????? ?????? mirror-????? ????????: ????????? remote row ?????? ???? ???????? versionAt ????? ????????????.
  • ?????? deleted_at ??? ????? ?????? tombstone.
  • ????????? ????????? ? ?????? ???????? ?? ??????? YDB (?????????? ??? ???????? UPDATE/UPSERT).
  • ???????? ?????????????? ???? ? ????? ?????????, ??? ?????????? push ???????? ????? ????? ??????.

???????? ??????????

??????? push ??????????? snapshot ?? ????? ???????????? ????? ????? live-?????? ??? tombstone ? YDB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions