Can't shutdown background threads [Firebase Admin SDK 4.1.5]
还没有人认领这个 Issue。
评估
调研方向
复现从 FirebaseApp.initializeApp、FirebaseDatabase.getInstance 和 entry.setValue 开始的 Java 8 示例。跟踪 callback 之后仍然存在的后台线程,并确定受支持的生命周期行为;当 daemon-thread 或 shutdown 行为得到明确确认并处理后,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Running this on local machine with Java 8
FirebaseOptions options = new FirebaseOptions.Builder()
.setCredential(FirebaseCredentials.applicationDefault())
.setDatabaseUrl("https://" + ServiceOptions.getDefaultProjectId() + ".firebaseio.com/")
.build();
firebaseDatabase = FirebaseDatabase.getInstance(FirebaseApp.initializeApp(options));
final DatabaseReference entry = firebaseDatabase.getReference("somereference");
entry.setValue("data",(databaseError, databaseReference) -> System.out.println("ok"));
How can i choose to use daemon threads? And if not, why don't you have a shutdown/close option?
I notice that entry.setValue("data") shutdowns threads normally.
- 主要语言
- Java
- 星标
- 241
- 派生
- 148
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
firebase/quickstart-java 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 30/100
firebase/quickstart-java#50 ·
-
Error : Error getting access token for service account: Remote host terminated the handshake, iss: 未关闭
难度 4/5 3-5 天 新手友好度 25/100
firebase/quickstart-java#49 ·
-
outdated 未关闭
难度 2/5 1-3 小时 新手友好度 45/100
firebase/quickstart-java#41 ·
-
难度 3/5 1-2 天 新手友好度 25/100
firebase/quickstart-java#32 · 3 条评论 ·
-
firebase/quickstart-java#31 · 2 条评论 · 已指派 1 人 ·
查看 firebase/quickstart-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