sapling/eden/mononoke/bookmarks
Viet Hung Nguyen 578207d0dc mononoke/repo_import: add hg sync checker
Summary:
Related diff: D22816538 (3abc4312af)

In repo_import tool once we move a bookmark to reveal commits to users, we want to check if hg_sync has received the commits. To do this, we extract the largest log id from bookmarks_update_log to compare it with the mutable_counter value related to hg_sync. If the counter value is larger or equal to the log id, we can move the bookmark to the next batch of commits. Otherwise, we sleep, retry fetching the mutable_counter value and compare the two again.
mutable_counters is an sql table that can track bookmarks log update instances with a counter.
This diff adds the functionality to extract the mutable_counters value for hg_sync.

======================
SQL query fix:
In the previous diff (D22816538 (3abc4312af)) we didn't cover the case where we might not get an ID which should return None. This diff fixes this error.

Reviewed By: StanislavGlebik

Differential Revision: D22864223

fbshipit-source-id: f3690263b4eebfe151e50b01a13b0193009e3bfa
2020-08-03 04:01:27 -07:00
..
bookmarks_types bookmarks: add 'pagination' filter to 'list' 2020-07-02 07:53:12 -07:00
dbbookmarks mononoke/repo_import: add hg sync checker 2020-08-03 04:01:27 -07:00
src mononoke: add method for creating publishing bookmarks 2020-07-30 07:28:43 -07:00
warm_bookmarks_cache mononoke: add allow_bookmark_update_delay 2020-07-31 03:09:24 -07:00
Cargo.toml bookmarks: extract BundleReplayData from BookmarkUpdateReason 2020-07-10 04:50:24 -07:00