Firestore listeners stop receive updates - Java
@cherylEnkidu 已经在做这个了。
开始于 2024年7月24日。
评估
这个 Issue 还没有评估数据。
描述
Java Spring Boot 3.0.2
Firestore Listeners ( 7 )
Region FireStore - Sao paulo
Region Server - Sao Paulo AWS
Issue related : https://github.com/googleapis/google-cloud-java/issues/3514
https://github.com/googleapis/google-cloud-java/issues/13118
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..
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.
im using this
https://firebase.google.com/docs/admin/setup#java
implementation 'com.google.firebase:firebase-admin:9.2.0'
##########################
Resource resource = resourceLoader.getResource("classpath:prod-firebase.json");
String fileLines = new BufferedReader(new InputStreamReader(resource.getInputStream(), StandardCharsets.UTF_8))
.lines()
.collect(Collectors.joining());
InputStream serviceAccount = new ByteArrayInputStream(fileLines.getBytes());
FirebaseOptions options = new FirebaseOptions.Builder()
.setCredentials(GoogleCredentials.fromStream(serviceAccount))
.setDatabaseUrl("realtimedatabaseurl") //we are using realtimedatabase
.build();
FirebaseApp.initializeApp(options);
databaseReference = FirebaseDatabase.getInstance().getReference();
dbfirestore = FirestoreClient.getFirestore(); // firestore instance
the problem is higher workload .. i check three times the workload and if we see the listener drop when the workload if high. the clock below each graph show us.. everytime have a peak drop listener.
now..i dont know what to do.. :(
Can someone help me?
- 主要语言
- Java
- 星标
- 620
- 派生
- 305
- 平均合并
- 3 小时 23 分钟
- 30 天内合并 PR
- 1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
firebase/firebase-admin-java 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 48/100
firebase/firebase-admin-java#1231 ·
-
api: core
firebase/firebase-admin-java#1198 · 3 条评论 · 已指派 1 人 ·
-
api: remoteconfig
firebase/firebase-admin-java#1196 · 1 条评论 · 已指派 2 人 ·
-
难度 3/5 1-2 天 新手友好度 45/100
firebase/firebase-admin-java#1192 · 3 条评论 ·
-
needs-triage type: feature request
难度 3/5 1-2 天 新手友好度 45/100
firebase/firebase-admin-java#1149 · 1 条评论 ·
查看 firebase/firebase-admin-java 的全部 Issue
相似的 Issue
-
bug untriaged
难度 2/5 1-3 小时 新手友好度 84/100
opensearch-project/ml-commons#5094 ·
-
bug
难度 2/5 1-3 小时 新手友好度 85/100
-
emitter:client:csharp feature
难度 2/5 1-3 小时 新手友好度 72/100
-
affects/8.10 affects/8.9 component/clients kind/bug likelihood/mid severity/mid
难度 2/5 1-3 小时 新手友好度 78/100
-
bug frontend maui-pilot
难度 2/5 1-3 小时 新手友好度 72/100