Skip to content

Very long (10 - 30 seconds) transaction failure timeout while offline #2877

Closed
@larssn

Description

@larssn

[READ] Step 1: Are you in the right place?

I was sent here by firebase/flutterfire#6736 (comment).

I've reproduced this in a Flutter project, but the guys over there thought it to be an underlying problem with the android SDK.

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: Using VSCode
  • Firebase Component: Firestore
  • Component version: 23.0.3

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

  1. Setup a new project that has a button for a transaction that gets a document (doesnt matter which - we're offline).
  2. Kill the internet for the tablet. It shouldn't matter how you do this.
  3. Press the button and wait for the transaction to fail, and note the time it takes. Do this several times. It should fail quick at first (30ms - 50ms), but after 6ish clicks the time will jump to 10+ seconds. The times will get progressively worse until the tablet has "rested" for a few minutes, after which it returns to failing in milliseconds and the cycle starts over.

I hope those directions are sufficient without me having to set up a new environment. 😅

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions