binder: "intent:" target URIs that match multiple <service>s should only connect to the one of highest priority
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 35/100
- Type d'issue
- Fonctionnalité
- Clarté
- À clarifier
- Activité
- À l'abandon
- Domaine
- backend-api-design, mobile-dev
Piste de recherche
Commencez par suivre IntentNameResolver, le répartiteur de charge pick-first et BinderClientTransport afin de comprendre comment les services Android correspondants sont sélectionnés et comment les échecs de connexion déclenchent le failover. L’issue ne fournit aucun nom de fichier ni de test ; la tâche est terminée lorsque plusieurs services correspondants utilisent le service ayant la priorité la plus élevée, sans masquer les échecs de connexion transitoires par un fallback involontaire.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
More than one <service> can advertise an <intent-filter> that matches a given Intent. IntentNameResolver returns all matches to the "pick-first" load balancer which tries them in priority order. If connecting to a first Service fails, pick-first will try the second highest priority Service.
Pick-first's fail-over behavior makes sense in the networked world where clients want to tolerate server failure and spotty connectivity. In the on-device context there are only two reasons we want fail-over:
- So an unauthorized app that maliciously gives itself a high
<android:priority>can quickly be passed over by preauthorization, avoiding a denial-of-service situation. - So multiple server apps in an
<android:priority>hierarchy can independently collaborate on which of them is active by enabling/disabling only their own<service>components in PackageManager.
But BinderClientTransport can fail to connect for many transient reasons like:
- the phone/tablet is busy doing other things causing the server app to be slow to start (DEADLINE_EXCEEDED)
- the server app does many things other than host the target Service, and a bug in one of them crashes the whole process while the ServiceConnection is being established (UNAVAILABLE).
- the user "swipes away" the server app's actiivity from the "recents" UI just as the ServiceConnection is being established (UNAVAILABLE).
- the server app is manually/automatically updated to a newer version and android kills all its processes while the ServiceConnection is being established (UNAVAILABLE).
Fail-over for these other reasons is problematic because different AndroidComponentAddresss are likely different implementations of the requested interface. It would be like if you selected Chrome as your default mobile browser but when you clicked on a URL, your phone failed over to Firefox if it didn’t launch fast enough. Perhaps that’s better than failing to show the web page at all, but it's also masking the underlying problem with the explicitly configured first choice browser in a way that's surprising and non-deterministic.
- Langage dominant
- Java
- Étoiles
- 12.1k
- Forks
- 4k
- Merge moyen
- 1 j 19 h
- PR mergées (30 j)
- 42
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de grpc/grpc-java
-
Support of `dns:name` URIsOuvertedocs enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
grpc/grpc-java#10824 · 8 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
question
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
grpc/grpc-java#13129 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
xds: duplicate endpoint addresses across localities are ACKed and can panic outlier detectionPeut-être pris @valeter l’a pris il y a 11 jours. Ouverte
Difficulté 3/5 Une demi-journée Accessibilité débutants 45/100
Les mainteneurs répondent en général sous 1 jour
-
binder: `ServerStream.close()` marks the stream closed before the suffix is sent, so a flow-control-deferred send failure leaks the callPeut-être pris @kkmurthyt21 l’a pris il y a 13 jours. Ouvertebug
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
grpc/grpc-java#13097 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
binder: RuntimeException during outbound serialization leaks the call and never notifies the peerPeut-être pris @mvanhorn l’a pris il y a 18 jours. Ouvertebug
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
grpc/grpc-java#13093 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de grpc/grpc-java
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
strimzi/strimzi-kafka-operator#13328 · 1 commentaire · 3 réactions ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
OpenLiberty/ci.maven#2137 ·
Les mainteneurs répondent en général sous 1 jour
-
Payer adjustment can exceed the balance left after copay and deductible, so claim payments add up to more than the chargePeut-être pris @DG47 l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
synthetichealth/synthea#1772 ·
Les mainteneurs répondent en général sous 13 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
geonetwork/core-geonetwork#9592 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
NationalSecurityAgency/ghidra#10040 ·
Les mainteneurs répondent en général sous 2 jours