-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix:(DOS-1442)Termination of pull transfer process from consumer side not success in real but stated as "TERMINATED" #3
Conversation
.../edc/connector/controlplane/services/transferprocess/TransferProcessProtocolServiceImpl.java
Outdated
Show resolved
Hide resolved
.../edc/connector/controlplane/services/transferprocess/TransferProcessProtocolServiceImpl.java
Outdated
Show resolved
Hide resolved
.../connector/controlplane/services/transferprocess/TransferProcessProtocolServiceImplTest.java
Outdated
Show resolved
Hide resolved
.../testFixtures/java/org/eclipse/edc/connector/controlplane/test/system/utils/Participant.java
Outdated
Show resolved
Hide resolved
.../testFixtures/java/org/eclipse/edc/connector/controlplane/test/system/utils/Participant.java
Outdated
Show resolved
Hide resolved
...2e-transfer-test/runner/src/test/java/org/eclipse/edc/test/e2e/TransferPullEndToEndTest.java
Outdated
Show resolved
Hide resolved
...2e-transfer-test/runner/src/test/java/org/eclipse/edc/test/e2e/TransferPullEndToEndTest.java
Outdated
Show resolved
Hide resolved
.../edc/connector/controlplane/services/transferprocess/TransferProcessProtocolServiceImpl.java
Outdated
Show resolved
Hide resolved
.../edc/connector/controlplane/services/transferprocess/TransferProcessProtocolServiceImpl.java
Outdated
Show resolved
Hide resolved
.../testFixtures/java/org/eclipse/edc/connector/controlplane/test/system/utils/Participant.java
Outdated
Show resolved
Hide resolved
...2e-transfer-test/runner/src/test/java/org/eclipse/edc/test/e2e/TransferPullEndToEndTest.java
Outdated
Show resolved
Hide resolved
...2e-transfer-test/runner/src/test/java/org/eclipse/edc/test/e2e/TransferPullEndToEndTest.java
Outdated
Show resolved
Hide resolved
...2e-transfer-test/runner/src/test/java/org/eclipse/edc/test/e2e/TransferPullEndToEndTest.java
Outdated
Show resolved
Hide resolved
...2e-transfer-test/runner/src/test/java/org/eclipse/edc/test/e2e/TransferPullEndToEndTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the method scopes are a bit clunky, in a test the highlights should stay in the test main method, e.g. (pseudocode for terminateByProvider_httpPull_dataTransfer
):
start transfer (after this method the transfer will be started
assert data is accessible
terminate transfer
await consumer to be terminated
await provider to be deprovisioned
assert data is not accessible anymore
.../edc/connector/controlplane/services/transferprocess/TransferProcessProtocolServiceImpl.java
Outdated
Show resolved
Hide resolved
...2e-transfer-test/runner/src/test/java/org/eclipse/edc/test/e2e/TransferPullEndToEndTest.java
Outdated
Show resolved
Hide resolved
...2e-transfer-test/runner/src/test/java/org/eclipse/edc/test/e2e/TransferPullEndToEndTest.java
Outdated
Show resolved
Hide resolved
...2e-transfer-test/runner/src/test/java/org/eclipse/edc/test/e2e/TransferPullEndToEndTest.java
Outdated
Show resolved
Hide resolved
...2e-transfer-test/runner/src/test/java/org/eclipse/edc/test/e2e/TransferPullEndToEndTest.java
Outdated
Show resolved
Hide resolved
...2e-transfer-test/runner/src/test/java/org/eclipse/edc/test/e2e/TransferPullEndToEndTest.java
Outdated
Show resolved
Hide resolved
...2e-transfer-test/runner/src/test/java/org/eclipse/edc/test/e2e/TransferPullEndToEndTest.java
Outdated
Show resolved
Hide resolved
...2e-transfer-test/runner/src/test/java/org/eclipse/edc/test/e2e/TransferPullEndToEndTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we are ready to go upstream 🚀
return assetId; | ||
} | ||
|
||
private StartedTransferContext assertTransferProcessIsStarted(String assetId){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private StartedTransferContext assertTransferProcessIsStarted(String assetId){ | |
private StartedTransferContext startTransferProcess(String assetId){ |
What this PR changes/adds
Start termination process from data flow manager for provider when termination initiated by consumer
Why it does that
During the termination of PULL transfer process from consumer, system does not call method terminate() from DataFlowManager on provider side.
As a result process not terminated in real but transfer process had state "TERMINATED", and then it is not possible to initiate terminating process again not from consumer neither form provider side.
Further notes
After provider moved to TERMINATED state, it also should move to the DEPROVISIONING automatically
Linked Issue(s)
Closes #4637
Closes DOS-1442