Giter Club home page Giter Club logo

Comments (9)

ab-rdarts avatar ab-rdarts commented on July 24, 2024 1

Any comments? By the way it seems the same behavior on FirebaseDatabase version 3.1.2.

from firebase-ios-sdk.

schmidt-sebastian avatar schmidt-sebastian commented on July 24, 2024

Can you tell us how you are running the transactions multiple times? Do you wait for the transactions to complete before running them again?

It would also help to get debug output from your app. As one of the first lines in your app, please set "Database.setLoggingEnabled(true)". You also need to pass -FIRDebugEnabled to your app to make the logs appear.

from firebase-ios-sdk.

ab-rdarts avatar ab-rdarts commented on July 24, 2024

Yes, application runs multiple transactions one after another. And no, application doesn't wait for transaction completion before running the next one because it's called only in online mode. Do you mean that it's not possible to use multiple runTransactionBlock in offline? I didn't see such limitations in the documentation but maybe I have missed that. I will try to send log a little bit later.

from firebase-ios-sdk.

schmidt-sebastian avatar schmidt-sebastian commented on July 24, 2024

You can use multiple transactions when offline, but it changes the way we run them and if there is a race on the same database location, some transactions can get cancelled. I will be able to tell what's going on from the logs.

from firebase-ios-sdk.

ab-rdarts avatar ab-rdarts commented on July 24, 2024

@schmidt-sebastian It's strange but I cannot reproduce it now, maybe it was my mistake somewhere. So the issue can be closed at least for now.

from firebase-ios-sdk.

morganchen12 avatar morganchen12 commented on July 24, 2024

Thanks for following up @ab-rdarts. If this issue resurfaces in the future, please reopen this ticket.

from firebase-ios-sdk.

ab-rdarts avatar ab-rdarts commented on July 24, 2024

It's strange but I have the same problem with transaction during online
I've tried to add four times 100 to /jars/zv8qmAJ1IKPEQZkOUb0HNz52dB13/values/contributed
As a result I see 300 instead of 400, though I see 4 successful commits

log.txt

from firebase-ios-sdk.

ab-rdarts avatar ab-rdarts commented on July 24, 2024

@schmidt-sebastian any comments about attached log?

from firebase-ios-sdk.

schmidt-sebastian avatar schmidt-sebastian commented on July 24, 2024

Closing this due to inactivity. Please re-open if this is still an issue.

from firebase-ios-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.