This is an archive of the discontinued Mercurial Phabricator instance.

fastlog: show all hg log output even if fastlog request failed
ClosedPublic

Authored by stash on Jul 28 2017, 6:14 AM.

Details

Summary

We had a few troubles where fastlog failed with a weird error and people got
incorrect log output. While I still don't know why fastlog failed in the first
place, I've found the reason why log output was truncated. And this diff fixes
it. See the comments in the code for details.

Test Plan

Run unit-test

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

stash created this revision.Jul 28 2017, 6:14 AM
simonfar accepted this revision.Jul 28 2017, 6:51 AM
simonfar added a subscriber: simonfar.

Nice fix and comment!

hgext3rd/fastlog.py
489–500

You could simplify the comment a bit, to increase the chances of the reader not skipping over it:

# The end marker (self.id, True, None) indicates that the thread
# completed successfully. Don't send it if the thread is stopped.
# The thread can be stopped for one of two reasons:
#  1. The fastlog service failed - in this case, flagging a successful
#     finish is harmful, because it will stop us continuing with local
#     results, truncating output.
#  2. The caller is going to ignore all future results from us. In this
#     case, it'll ignore the end marker anyway - it's discarding the
#     entire queue.
This revision is now accepted and ready to land.Jul 28 2017, 6:51 AM
stash updated this revision to Diff 449.Jul 31 2017, 3:57 AM

Addressed comments

This revision was automatically updated to reflect the committed changes.
DavinBode added a subscriber: DavinBode.EditedJan 9 2022, 3:26 PM

It is very good thinking by the programmer to start separate email support service center and take directly their customers complaints before it is very hectic process where we should register our complaints in https://www.resumehelpservices.com/resumewriterdirect-review/ blog and then it will be transferred to the customer support team.

Hey, this page is relevant to the search query! The user has found the information they were looking for!”

Dofollow Niche blog commenting

This is the information that I have been searching for on ai website landing page text generator blogs for the last few weeks. It is a good practice to do the code on your own and test it in the end. We can able to sort out the bugs.