-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Added logic to have a max retry count for providers returning a BUSY state #16294
Merged
harsha-rajendran
merged 1 commit into
project-chip:master
from
harsha-rajendran:Implement-provider-retry-count
Mar 18, 2022
Merged
Added logic to have a max retry count for providers returning a BUSY state #16294
harsha-rajendran
merged 1 commit into
project-chip:master
from
harsha-rajendran:Implement-provider-retry-count
Mar 18, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Damian-Nordic
approved these changes
Mar 16, 2022
pullapprove
bot
requested review from
anush-apple,
Byungjoo-Lee,
bzbarsky-apple,
carol-apple,
cecille,
chrisdecenzo,
chshu,
chulspro,
dhrishi,
electrocucaracha,
emargolis,
erjiaqing,
franck-apple,
gjc13,
hawk248,
isiu-apple,
jelderton,
jepenven-silabs,
jmartinez-silabs,
kghost,
kpschoedel,
lazarkov,
lzgrablic02,
mlepage-google,
msandstedt,
mspang and
robszewczyk
March 16, 2022 14:43
selissia
reviewed
Mar 16, 2022
selissia
reviewed
Mar 16, 2022
selissia
approved these changes
Mar 16, 2022
woody-apple
approved these changes
Mar 16, 2022
Added logic, based on our discussion this morning- @carol-apple @selissia . |
carol-apple
reviewed
Mar 16, 2022
carol-apple
reviewed
Mar 16, 2022
carol-apple
reviewed
Mar 16, 2022
PR #16294: Size comparison from f73db2f to 052d29f Increases (5 builds for cyw30739, k32w, linux, nrfconnect)
Decreases (12 builds for cyw30739, k32w, linux, mbed, nrfconnect, p6)
Full report (13 builds for cyw30739, k32w, linux, mbed, nrfconnect, p6, telink)
|
carol-apple
reviewed
Mar 17, 2022
carol-apple
reviewed
Mar 17, 2022
carol-apple
reviewed
Mar 17, 2022
carol-apple
reviewed
Mar 17, 2022
carol-apple
reviewed
Mar 17, 2022
harsha-rajendran
force-pushed
the
Implement-provider-retry-count
branch
from
March 17, 2022 20:54
2d91a4b
to
e7e66f8
Compare
Squashed and rebased. |
carol-apple
approved these changes
Mar 17, 2022
PR #16294: Size comparison from 84c150a to e7e66f8 Increases (6 builds for cyw30739, efr32, k32w, linux, nrfconnect)
Decreases (5 builds for cyw30739, efr32, k32w, linux)
Full report (27 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
Added logic to have a max retry count for providers returning a BUSY state. Added logic not to traverse the default ota list more than once only in the case of QueryImageStatus of NOT_AVAILABLE. Cleared the last used provider on reboot to ensure determinism in provider-selection.
harsha-rajendran
force-pushed
the
Implement-provider-retry-count
branch
from
March 18, 2022 00:17
e7e66f8
to
d9c9377
Compare
PR #16294: Size comparison from c4d81c8 to d9c9377 Increases (5 builds for cyw30739, efr32, k32w, nrfconnect)
Decreases (4 builds for cyw30739, efr32, k32w)
Full report (18 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
andrei-menzopol
pushed a commit
to andrei-menzopol/connectedhomeip
that referenced
this pull request
Apr 14, 2022
Added logic to have a max retry count for providers returning a BUSY state. Added logic not to traverse the default ota list more than once only in the case of QueryImageStatus of NOT_AVAILABLE. Cleared the last used provider on reboot to ensure determinism in provider-selection.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Fixes #15691
Change overview
If an OTA provider returns a BUSY response, then it will be retried a MAX_RETRY_COUNT number of times before moving on. This will prevent the Requestor from being stuck on a single OTA provider forever.
With these changes, the QueryImage logic now tries the entire list of providers until either an OTA succeeds or the end-of-list is reached. Upon failure, the 24 hours timer kicks back in.
The last used provider is also cleared on every reboot to ensure a clean-slate beginning and this will also ensure that the list is always traversed from the beginning to the end, deterministically.
Testing