ozone icon indicating copy to clipboard operation
ozone copied to clipboard

HDDS-7090. EC: delete empty closed EC container

Open JacksonYao287 opened this issue 2 years ago • 1 comments

What changes were proposed in this pull request?

we need to check more states for EC container and delete empty closed EC container.

What is the link to the Apache JIRA

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

How was this patch tested?

Unit test

JacksonYao287 avatar Aug 06 '22 15:08 JacksonYao287

We are refactoring how the container checks are handled in the new RM in #3743, so once that goes in this one will need changed to work in the way described there.

sodonnel avatar Sep 09 '22 09:09 sodonnel

see @siddhantsangwan has already completed this work, so this patch just add the handler to RM. @adoroszlai @sodonnel @umamaheswararao please take a look!

i will create another jira to implement DeletingContainerHandler

JacksonYao287 avatar Oct 21 '22 02:10 JacksonYao287

We have left this new handler out of the RM chain deliberately for now, as its not really complete without the deleting handler. The plan is to implement the deleting handler and then add both it and this handler to the chain in the next PR.

Feel free to go ahead with implementing this change and the deleting handler in the next PR.

sodonnel avatar Oct 25 '22 10:10 sodonnel

We have left this new handler out of the RM chain deliberately for now, as its not really complete without the deleting handler. The plan is to implement the deleting handler and then add both it and this handler to the chain in the next PR.

Feel free to go ahead with implementing this change and the deleting handler in the next PR.

i have implemented deleting container handler, #3881 , please take a look! @sodonnel

JacksonYao287 avatar Oct 25 '22 11:10 JacksonYao287

since #3881 is merged , we can merge this patch now, please take a look! @sodonnel @siddhantsangwan

JacksonYao287 avatar Oct 29 '22 01:10 JacksonYao287

@sodonnel @siddhantsangwan since this patch is simple, if no more comments from you, i will merge it tomorrow!

JacksonYao287 avatar Nov 02 '22 12:11 JacksonYao287

LGTM!

DaveTeng0 avatar Nov 02 '22 23:11 DaveTeng0

thanks @sodonnel @DaveTeng0 @adoroszlai for the review!

JacksonYao287 avatar Nov 03 '22 02:11 JacksonYao287

Hi @JacksonYao287, do we need to cherry-pick this PR and HDDS-7384 to ozone-1.3 branch?

kaijchen avatar Nov 03 '22 08:11 kaijchen

Hi @JacksonYao287, do we need to cherry-pick this PR and HDDS-7384 to ozone-1.3 branch?

yea , please cherry-pick both HDDS-7090 and HDDS-7384, thanks! @kaijchen

JacksonYao287 avatar Nov 03 '22 08:11 JacksonYao287