-
Notifications
You must be signed in to change notification settings - Fork 58
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
All mutations hadn't been executed after internet connection type change #108
Comments
@DeMoss15
It looks like the device has not gotten back on the network. When the mutation processor is triggered, it checks to ensure that there is network connectivity (see link below for where the network check is made) before starting to process mutations. If there is no network connectivity, the processing is stopped. The mutation processor is triggered periodically by the SDK to ensure that it doesn't get stuck, which is why we see multiple instances of "Internet wasn't available" message in the log. Line 173 in 22dc07c
I have seen this happen in my local testing on simulators, but not on real devices. In the case of simulators, restarting the simulator usually fixes the issue. Are you facing this issue on simulators or on real devices? |
Our QA specialist got this issue on a real device three times. |
Thanks for the context. In the log you have attached, I don't see any mutation being executed at all. Every time the mutation processor is triggered, it exits immediately.
The logs you've attached only span for a couple of minutes. Could you perhaps have the QA engineer capture the logs for the entire duration (You mention 15 minutes) and attach them here? I can look through that to see if that provides any insights. |
@cbommas Sorry for long pause. It took a lot of time and efforts to catch this logs. |
@cbommas any updates? |
@ukevgen Sorry for the delayed response. @DeMoss15 Thank you for the detailed response. I scrolled through the logs and found that the mutations are canceled. I find several
|
@cbommas Please pay your attention for this log: Let's look at it closer: Here we can see the last executed mutation:
than we have a log of internet connection status change:
and here is the first failed mutation:
I think something strange is happening beyond this log:
Unfortunately, I don't understand what exactly. But it seems next line says that network is OK:
|
@cbommas @kvasukib Any updates? |
@cbommas |
I am having the same issue:
And this keeps going on and on, I am 100% sure that the phone is connected to the internet. One thing I suspect is that maybe Samsung somehow blocked internet access for my app for some security/optimisation reasons, but I can't find any indication of it in the logs. |
SDK version: 2.11.0
AppSync version: 2.7.6
It's hard to reproduce this issue.
Steps to reproduce looks like:
execute few mutations -> wait about 15 min -> switch internet connection -> mutations doesn't work
Logs looks like something wrong with queue or AppSyncOfflineMutationManager
Log of creating mutation and adding in to queue here:
SWITCH INTERNET CONNECTION ISSUE.txt
The text was updated successfully, but these errors were encountered: