-
Notifications
You must be signed in to change notification settings - Fork 66
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
Firestore client stops functioning after 10 snapshot listeners are registered - JAVA #1511
Comments
now.. 7 listeners and loss 1 and after 7 again.. the problem is stop working some principal listeners. Im trying to do this dbfirestore = FirestoreClient.getFirestore(); |
Again, we are having a strange behavior of listeners. We have 7 listeners active and some time just 6..just 5.. and back to 7 ..but with this behavior we can put our plataform in production stage.
implementation 'com.google.firebase:firebase-admin:9.1.1'
|
if we change te firestore instance to this line dbfirestore = FirestoreClient.getFirestore();
|
Can you describe the execution environment? Is this running in an EC2 container or something? Are there any exceptions in the Java logs? |
Lets Go. No exception, just stop listening.. Im running a API in SpringBoot inside a EC2 Linux ( Normal Java Application API) work like a charm no problem with the api. The realtime database work good! firestore work too but some times the listener drop, i know because the document is not deleted from collection and not saving in database inside API. This is NOT expected behavior because listener drop and not delete other 500 messages.. its not equals count read, write, delete.. This is right EXPECTED behavior, because listener is active, read, process and delete .. I have 7 listeners and this is expected, not drop But this behavior is not expected I will try to put this code and check if resolve something, i will set pool size 2.. but i thinks is not necessary.. we talking about 7 listeners only.. dbfirestore = FirestoreClient.getFirestore(); im glad someone can help me resolve my problem with firestore. |
i did now a stress work load... Drop a lot os listeners.. @gregfenton i have to restart the server to back the listeners again.. if i have a higher workload.. firestore drop the listener.. |
@schmidt-sebastian @lanbochen is related with this issue? ( the difference is nodejs to java ) |
i change my code just to check the workload. for(int i=0;i<=50;i++)
|
im using this https://firebase.google.com/docs/admin/setup#java implementation 'com.google.firebase:firebase-admin:9.2.0' |
Issue related : googleapis/google-cloud-java#3514
I have this kind of problem @schmidt-sebastian
i have 7 listeners, but always disconnecting some listeners and stop registering information in database. Im using Java.
What i have to do..to stop this behavior..?? because its intermitent situation.
I have to move to realtime database? or have some config extra to fix that? Because when i restart the server the listener back again..
Can someone help me?
The text was updated successfully, but these errors were encountered: