-
Notifications
You must be signed in to change notification settings - Fork 906
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
Transaction.get/.getAll hangs forever with Firestore emulator #1440
Comments
I'll try to reproduce this, thanks for the report |
@ryanpbrewster thank you for the quick response, as usual! i do not expect to hear back when reporting bugs after midnight usually :) sorry for filing two on you, but this one is the more critical one, because we are unable to use transactions when developing locally and doing thank you again and great work on the emulator, we have been throwing quite a bit of testing at it and it works great for 99.99% of cases. |
it is also worth mentioning that identical operations work with the emulator when not executed in a transaction. |
Huh, having trouble reproducing this. I'm using Here's the code I'm using:
which prints out
Do you see anything obvious that I'm doing differently? |
I don't see anything obvious that you're doing differently, no. I suppose I am calling the future |
Bumping this: it would be super helpful to have a repro of this issue. |
@ryanpbrewster I've tried to reproduce this, but I just haven't been able to catch it, and we're no longer seeing it in production. Would it be best to re-open once I can isolate it? |
Sounds like a plan. Feel free to re-open with more info even if you can't fully isolate or reproduce it. |
Hey, I just ran into this issue on the latest version libraries I've personally run into this a couple of times because I am working with a set of document refs that could be length zero to many and it's necessary to spread the array of references to use this particular function. The work around is obviously to check you won't be spreading an empty array of document references into the function before you do. It's worth noting the function correctly throws an error when you provide no arguments at all (without a ReadOptions). It's only when there's a ReadOptions argument and no references it seems to hang indefinitely. This should reproduce the problem for anyone:
Probably worth adding another assertion to prevent this weirdness happening to anyone else. I hope this helps. |
[REQUIRED] Environment info
firebase-tools:
6.10.0
Platform:
macOS 10.14.5
[REQUIRED] Test case
On it!
[REQUIRED] Steps to reproduce
Transaction.get
orTransaction.getAll
against one or more known-missing document references[REQUIRED] Expected behavior
It should just return
null
, or do whatever the normal failure behavior is, when you try toget(DocumentReference)
, orgetAll(DocumentReference)
during aTransaction
.[REQUIRED] Actual behavior
It seems to hang forever, although our tests timeout at 3 minutes.
The text was updated successfully, but these errors were encountered: