Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1741898 - Don't enqueue multiple stop command on uploader dispatcher #970

Merged
merged 3 commits into from
Nov 19, 2021

Conversation

brizental
Copy link
Contributor

@brizental brizental commented Nov 19, 2021

The previous behaviour would enqueue a Stop command on the
uploader dispatcher everytime a ping submit happening while
the uploader was throttled or stopped due to other limitations.

That resulted in the dispatcher being immediatelly stopped once
it was resumed due to the throttling window being over, because
the first command it would see would be a stop command.

That could result in long lasting periods of time when the uploader
was just stopped and not processing ping requests.

Pull Request checklist

  • Quality: Make sure this PR builds and runs cleanly.
    • Inside the glean/ folder, run:
      • npm run test Runs all tests
      • npm run lint Runs all linters
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry to CHANGELOG.md or an explanation of why it does not need one
  • Documentation: This PR includes documentation changes, an explanation of why it does not need that or a follow-up bug has been filed to do that work

The previous behaviour would enqueue a Stop command on the
uploader dispatcher everytime a ping submit happening while
the uploader was throttled or stopped due to other limitations.

That resulted in the dispatcher being immediatelly stopped once
it was resumed due to the throttling window being over, because
the first command it would see would be a stop command.

That could result in long lasting periods of time when the uploader
was just stopped and not processing ping requests.
@auto-assign auto-assign bot requested a review from chutten November 19, 2021 09:54
@brizental brizental requested review from Dexterp37 and removed request for chutten November 19, 2021 09:54
@Dexterp37
Copy link
Contributor

@brizental let's kindly also add a changelog entry

@brizental brizental requested a review from Dexterp37 November 19, 2021 10:09
@brizental brizental merged commit d3a3d50 into mozilla:main Nov 19, 2021
@brizental brizental deleted the 1741898-a-throttling-bug branch November 19, 2021 10:19
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.

2 participants