Skip to content
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

AndrYurk
Copy link

@AndrYurk AndrYurk commented Dec 17, 2024

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

@AndrYurk AndrYurk requested a review from ndr-brt as a code owner December 17, 2024 21:59
@AndrYurk AndrYurk requested a review from ndr-brt December 18, 2024 22:37
@AndrYurk AndrYurk requested a review from ndr-brt December 19, 2024 12:54
Copy link

@ndr-brt ndr-brt left a 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

@AndrYurk AndrYurk requested a review from ndr-brt December 20, 2024 08:27
ndr-brt
ndr-brt previously approved these changes Dec 20, 2024
Copy link

@ndr-brt ndr-brt left a 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){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private StartedTransferContext assertTransferProcessIsStarted(String assetId){
private StartedTransferContext startTransferProcess(String assetId){

@AndrYurk AndrYurk closed this Dec 20, 2024
@AndrYurk AndrYurk added the bug Something isn't working label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

Termination of pull transfer process from consumer side not success in real but stated as "TERMINATED".
2 participants