Can't shutdown background threads [Firebase Admin SDK 4.1.5]
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Reproduce the Java 8 example starting at FirebaseApp.initializeApp, FirebaseDatabase.getInstance, and entry.setValue. Trace which background threads remain after the callback and determine the supported lifecycle behavior; done means the daemon-thread or shutdown behavior is clearly established and addressed.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Java
- Stars
- 241
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/quickstart-java
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
firebase/quickstart-java#50 ·
-
Error : Error getting access token for service account: Remote host terminated the handshake, iss: Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
firebase/quickstart-java#49 ·
-
outdated Open
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
firebase/quickstart-java#41 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
firebase/quickstart-java#32 · 3 comments ·
-
Admin SDK example Open
firebase/quickstart-java#31 · 2 comments · 1 assignee ·
All issues in firebase/quickstart-java
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Two open-case totals on one screen: the Programs tile says 15,858 and the nav badge says 15,868 Openbug frontend maui-pilot
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
objectionary/eo-graphs#74 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100