DPS: recover from a start/prepare whose response was lost
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 18/100
Direzione di ricerca
Start with DataPlaneSignalingClient and DataPlaneSignalingFlowController in data-plane-signaling-core, and with DataPlaneSelectorService for data plane selection. The shared EdcHttpClient retry behaviour is the first cause to trace. Done means a lost start or prepare response is recovered by checking GET /dataflows/{id}/status, and the same data plane is reused on retry. This needs a design decision on the spec change before any code.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Which Areas Would Be Affected?
Data Plane Signaling in the control plane (data-plane-signaling-core): DataPlaneSignalingClient, DataPlaneSignalingFlowController, and possibly the data plane selection (DataPlaneSelectorService). Possibly a follow-up for the Data Plane Signaling specification.
Why Is the Feature Desired?
Since #6234, the transfer process state machine retries transient signaling failures (timeouts, I/O errors, 5xx), see #6177. One case is still not recoverable: the response to a start or prepare is lost (e.g. it times out) after the data plane has created the data flow.
- The request is sent again for the same
dataFlowId. First the HTTP client re-sends it: the runtime's sharedEdcHttpClientretries any exception, including a read timeout after the request reached the data plane, within about 0.5 s. Then the state machine retries it after its backoff. - The data plane must reject a repeated request. The Data Plane Signaling specification requires a 4xx for an existing
dataFlowId(e.g.409 Data flow with id … already exists). The 4xx is final, so the transfer process is terminated even though its data flow exists. - The lost response can't be obtained again.
GET /dataflows/{id}/statusreturns onlydataFlowIdandstate. When a synchronousstartsucceeded but its response was lost, its data address can't be recovered. For PULL, that's the endpoint and token the consumer needs. - A retry may go to another data plane. Every attempt selects the data plane again (
randomstrategy by default), and the data plane id is stored on the transfer process only after a successful response. With several data planes matching a transfer, a retry may create a second flow elsewhere and leave the first one orphaned.
This shows up with slow or overloaded data planes: #6177 observed it with siglet under load. The transfer is then terminated, while the data flow stays on the data plane.
Solution Proposal
These can be combined:
- No HTTP-level retry for signals. Send signals with a client that has no retry policy, so that only the state machine retries. That avoids the immediate re-send and doesn't block a worker during HTTP retries. It can be done within the signaling extension (its own
EdcHttpClientImplwith a no-retry policy), or with a newEdcHttpClientmethod in the SPI. - Check the status on a 4xx for
start/prepare: callGET /dataflows/{id}/status.- No flow (404): the 4xx is genuine, fail.
PREPARING/STARTING: continue as an asynchronous flow, since the address arrives through theprepared/startedcallback.PREPARED/STARTED: the response was lost. Terminate the flow on the data plane and fail with an explicit error.
- Keep the data plane across retries. Store the selected data plane id on the transfer process when a
start/preparefails withERROR_RETRY, and send retries to that data plane (findById) instead of selecting again. - Specification follow-up (Data Plane Signaling): make
start/prepareidempotent, so that a repeated request for an existingdataFlowIdwith the same content returns the original response. That is the only way to recover a lost synchronous response.
- Lingua principale
- Java
- Stelle
- 429
- Fork
- 302
- Merge medio
- 10h 46m
- PR unite (30g)
- 75
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi 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 eclipse-edc/Connector
-
triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 54/100
eclipse-edc/Connector#6293 ·
I maintainer di solito rispondono entro 1 giorno
-
Implement conditional extension loading (DR 2026-11-24)Forse già presa @paullatzelsperger l’ha presa 5 giorni fa. Apertafeature_request triage
eclipse-edc/Connector#6275 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Don't hold a DB connection during token validation of incoming negotiation and transfer messagesApertafeature_request triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 54/100
eclipse-edc/Connector#6183 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
feature_request triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
eclipse-edc/Connector#6182 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
feature_request triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
eclipse-edc/Connector#6178 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di eclipse-edc/Connector
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
testng-team/testng#3672 ·
I maintainer di solito rispondono entro 1 giorno
-
triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
eclipse-edc/IdentityHub#1296 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
cloudfoundry/uaa#4194 ·
I maintainer di solito rispondono entro 1 giorno
-
ui: 進捗状況線ダイアログが日本語表示で英語のままApertaarea: ui priority: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
tetsuji16/microProject#1721 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni