ApacheHttp2Transport connection did not return to the pool when it is failed
@jonathanedey ci sta già lavorando.
Dal 1/10/2025.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Firebase Admin Java SDK v9.6.0
FirebaseOptions.Builder builder = FirebaseOptions.builder()
...
.setHttpTransport(new ApacheHttp2Transport(httpClient));
ApiFuture<BatchResponse> futures = firebaseMessaging.sendEachAsync(messages, dryRun);
BatchResponse response;
try {
response = futures.get(TIME_OUT_MS, TimeUnit.MILLISECONDS);
} catch (TimeoutException e) {
...
}
final PoolStats total = poolingAsyncClientConnectionManager.getTotalStats();
return String.format("Available=%d, leased=%d, pending=%d, max=%d",
total.getAvailable(),
total.getLeased(),
total.getPending(),
total.getMax());
Observation:
Under very busy network, FCM backend may return Unknown error while making a remote service call: Write Timeout or other errors.
Log writing (successful or failed response) become slow and slower. Afterward, all pending requests were timed out at response = futures.get(TIME_OUT_MS, TimeUnit.MILLISECONDS);
When the program just started:
Available=95, leased=5, pending=0, max=200
After some times:
Available=0, leased=0, pending=0, max=200
Update:
When using Google APIs Transports:
There is disconnect implementation in google-http-java-client
However, when using ApacheHttp2Transport:
There is no such implementation in ApacheHttp2Response
when it is disconnected, no matter the response is successfully or failed.
- Lingua principale
- Java
- Stelle
- 620
- Fork
- 305
- Merge medio
- 4g 9h
- PR unite (30g)
- 4
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di firebase/firebase-admin-java
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
firebase/firebase-admin-java#1231 ·
-
api: core
firebase/firebase-admin-java#1198 · 3 commenti · 1 assegnatario ·
-
api: remoteconfig
firebase/firebase-admin-java#1196 · 1 commento · 2 assegnatari ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
firebase/firebase-admin-java#1192 · 3 commenti ·
-
needs-triage type: feature request
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
firebase/firebase-admin-java#1149 · 1 commento ·
Tutte le issue di firebase/firebase-admin-java
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
elastic/gradle-plugins#157 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
cryptomator/hub#497 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
johanhaleby/occurrent#1120 ·