Have an ODS counter for the backsyncer batch size

Summary: We want an alarm if the backsyncer Tupperware job is doing significant work; it only does anything if the pushredirect logic is buggy, or in rare cases where it wins a race. Log to ODS when this task sees a queue, so that we can investigate

Reviewed By: StanislavGlebik

Differential Revision: D18450577

fbshipit-source-id: 6aac1c8638c6275fad5db3db1bb4915c1b824930
This commit is contained in:
Simon Farnsworth 2019-11-12 08:40:48 -08:00 committed by Facebook Github Bot
parent acc0524f2b
commit 6813447b6c

View File

@ -614,6 +614,20 @@ impl BlobRepo {
.read_next_bookmark_log_entries(ctx, id, self.get_repoid(), limit, freshness)
}
pub fn count_further_bookmark_log_entries(
&self,
ctx: CoreContext,
id: u64,
exclude_reason: Option<BookmarkUpdateReason>,
) -> impl Future<Item = u64, Error = Error> {
self.bookmarks.count_further_bookmark_log_entries(
ctx,
id,
self.get_repoid(),
exclude_reason,
)
}
/// Get Pull-Default (Pull-Default is a Mercurial concept) bookmarks by prefix, they will be
/// read from cache or a replica, so they might be stale.
pub fn get_pull_default_bookmarks_maybe_stale(