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

[HOLD #44269] HIGH: [API] Multiple redundant ReconnectApp calls upon waking client #43639

Closed
6 tasks
muttmuure opened this issue Jun 13, 2024 · 18 comments
Closed
6 tasks
Assignees
Labels
AutoAssignerNewDotQuality Used to assign quality issues to engineers Bug Something is broken. Auto assigns a BugZero manager. Weekly KSv2

Comments

@muttmuure
Copy link
Contributor

muttmuure commented Jun 13, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: v1.4.82-4
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @quinthar
Slack conversation: https://expensify.slack.com/archives/C05LX9D6E07/p1718128174597309

Action Performed:

Break down in numbered steps

  1. Open NewDot in a chat or in a room
  2. Open the Network console
  3. Close your laptop lid
  4. Wait for 10-15 seconds
  5. Open the lid

Expected Result:

Describe what you think should've happened

There should be one ReconnectApp call upon waking the client

Actual Result:

Describe what actually happened

The client queues multiple, successive ReconnectApp calls

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

N/A

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Image

View all open jobs on GitHub

@muttmuure muttmuure added AutoAssignerNewDotQuality Used to assign quality issues to engineers Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Jun 13, 2024
Copy link

melvin-bot bot commented Jun 13, 2024

Triggered auto assignment to @adelekennedy (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Jun 13, 2024

Triggered auto assignment to @thienlnam (AutoAssignerNewDotQuality)

@melvin-bot melvin-bot bot added the Weekly KSv2 label Jun 13, 2024
@thienlnam
Copy link
Contributor

Will be able to start investigating next week - I have a suspicious this is related to the useNetwork hook. When I open my laptop lid from sleep, I consistently see the offline indicator for a moment and and then will see that it resolves

@melvin-bot melvin-bot bot added the Overdue label Jun 17, 2024
Copy link

melvin-bot bot commented Jun 17, 2024

@thienlnam, @adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick!

@adelekennedy
Copy link

I've experienced this as well @thienlnam!

@thienlnam
Copy link
Contributor

Been testing a few things that haven't been successful - I still think the issue is around how waking up after sleep the network is temporarily unstable and we shoot off the duplicated call in the beginning

@justinpersaud
Copy link
Contributor

I'm noticing this issue as well this morning. Since I see mentions of network here, I will note that I am tethering off a slow cellular connection.

I did not wake my laptop from sleep or anything here. I just opened NewDot web in production and see it continuously calling ReconnectApp

@melvin-bot melvin-bot bot added the Overdue label Jun 21, 2024
@adelekennedy
Copy link

@thienlnam is there anything that external contributors can help with here? I'm guessing no at the moment

@melvin-bot melvin-bot bot removed the Overdue label Jun 24, 2024
Copy link

melvin-bot bot commented Jun 24, 2024

@thienlnam, @adelekennedy Eep! 4 days overdue now. Issues have feelings too...

@thienlnam
Copy link
Contributor

This is actually likely a problem that can be solved externally.

We call ReconnectApp because the network on wake is unstable, but it doesn't seem like we have a mechanism to prevent calling this again even if the passed initialLastUpdateIDAppliedToClient is the same.

I'm not too familiar with the SequentialQueue, so this is perhaps something we could get a contributor to look into in #newdot-quality

Copy link

melvin-bot bot commented Jun 27, 2024

@thienlnam @adelekennedy this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Jun 27, 2024
@thienlnam
Copy link
Contributor

Discussion here, this likely has the same root cause as this so we'll hold for that

@melvin-bot melvin-bot bot removed the Overdue label Jun 27, 2024
@thienlnam thienlnam changed the title HIGH: [API] Multiple redundant ReconnectApp calls upon waking client [HOLD #44269] HIGH: [API] Multiple redundant ReconnectApp calls upon waking client Jun 27, 2024
@melvin-bot melvin-bot bot added the Overdue label Jul 1, 2024
Copy link

melvin-bot bot commented Jul 1, 2024

@thienlnam, @adelekennedy Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@adelekennedy
Copy link

Still on hold!

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jul 1, 2024
Copy link

melvin-bot bot commented Jul 5, 2024

@thienlnam, @adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick!

@adelekennedy
Copy link

#44269 is still in progress

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jul 8, 2024
@thienlnam thienlnam removed the Daily KSv2 label Jul 10, 2024
@thienlnam
Copy link
Contributor

#44269 is still in progress

@melvin-bot melvin-bot bot removed the Overdue label Jul 10, 2024
@muttmuure
Copy link
Contributor Author

I think let's close this for focus as the linked issue is the stated root cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoAssignerNewDotQuality Used to assign quality issues to engineers Bug Something is broken. Auto assigns a BugZero manager. Weekly KSv2
Projects
Status: Done
Development

No branches or pull requests

4 participants