Skip to content

HDDS-7384. EC: ReplicationManager - implement deleting container handler#3881

Merged
siddhantsangwan merged 9 commits intoapache:masterfrom
JacksonYao287:HDDS-7384
Oct 28, 2022
Merged

HDDS-7384. EC: ReplicationManager - implement deleting container handler#3881
siddhantsangwan merged 9 commits intoapache:masterfrom
JacksonYao287:HDDS-7384

Conversation

@JacksonYao287
Copy link
Contributor

What changes were proposed in this pull request?

implement deleting container handler

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-7384

How was this patch tested?

unit test

@sodonnel
Copy link
Contributor

This change looks much better now. There is just a little more work to do to remove the ContainerManager dependency from the TestEmptyContainerHandler and then I think it is good.

It would be good for @siddhantsangwan to have a look too, as he has been working in this area too recently.

@siddhantsangwan
Copy link
Contributor

@JacksonYao287 Thanks for working on this. I'll review soon.

Copy link
Contributor

@sodonnel sodonnel left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for taking the changes onboard. Lets let @siddhantsangwan have a look before we commit please.

Copy link
Contributor

@siddhantsangwan siddhantsangwan left a comment

Choose a reason for hiding this comment

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

The changes look good. I just have a few minor comments. Also, do we need another test for confirming the handler returns true for DELETED containers?

@JacksonYao287
Copy link
Contributor Author

@siddhantsangwan thanks for the review! i have updated this patch , please take a look

@siddhantsangwan
Copy link
Contributor

@JacksonYao287 Changes look good. The test failure is in Replication Manager. Can you please check?

@JacksonYao287
Copy link
Contributor Author

@JacksonYao287 Changes look good. The test failure is in Replication Manager. Can you please check?

this test successes locally on my laptop, i am not sure why it fails here. i retrigger CI to see whether it can be reproduced!

@JacksonYao287
Copy link
Contributor Author

@siddhantsangwan PTAL!

@siddhantsangwan siddhantsangwan merged commit c187a8f into apache:master Oct 28, 2022
@JacksonYao287 JacksonYao287 deleted the HDDS-7384 branch October 28, 2022 12:19
/**
* If a container is in Deleting state and no replica exists,
* change the state of the container to DELETED.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm~ just for myself learning~~ is it possible something goes wrong in Deleting state, then the container is not deleted successfully?

Copy link
Contributor Author

@JacksonYao287 JacksonYao287 Nov 1, 2022

Choose a reason for hiding this comment

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

for now , a container is deleted means its state is changed to DELETED. it is not be removed from scm , so scm still has the reference of this container.

#3360 this patch is trying to remove the reference from scm when its state is DELETED.

I am not sure whether i have answered your question. if not , please let me know!

Copy link
Contributor

Choose a reason for hiding this comment

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

ohh!! Yes! Thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants