Address ENG-9290.
Added handler component that watches for NOT_ESTABLISHED and NOT_REMOVED holders and retries their processing.
Details
Details
- Started a DM thread and set image avatar.
- Changed client Blob Service URL to a fake one.
- Reset the avatar back to emoji. This caused holder removal that failed.
- Used console logs in the handler to see that it retries every 5s.
- After restoring real Blob URL, it successfully removed that holder.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
lib/handlers/holders-handler.react.js | ||
---|---|---|
4 ↗ | (On Diff #45003) | I was also considering _throttle here. There's no difference if holder changes (and failures) are infrequent.
|
44–46 ↗ | (On Diff #45003) | Just a note - I deliberately used useMemo instead of useCallback for debounce: |
lib/handlers/holders-handler.react.js | ||
---|---|---|
17 ↗ | (On Diff #45003) | You might be right, maybe increasing to 30s would be better? Or even 60? But I'm worrying about the debounce vs throttle problem I described above - perhaps we should use throttle then |