-
Notifications
You must be signed in to change notification settings - Fork 2
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
HD-3340 drain stream when receiving an error on a PUT #659
Conversation
Hello benoit-a,My role is to assist you with the merge of this Status report is not available. |
2c9f642
to
c66f4b1
Compare
c66f4b1
to
3fdb3ed
Compare
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
|
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.
Changes LGTM but given that it's a bugfix ficket, I would prefer that we also create some new unit tests to ensure that the fix is enough, and that we don't reproduce this problem again in the future
@williamlardier Maybe you did not see this comment https://github.com/scality/hdclient/pull/659/files#r1356780040 |
Hello @vietnscality , yes I saw the comment, mine is more about adding some unit tests to reproduce the initial problem and making sure we won't have any regression for this behaviour in the future |
Yes, i agree, it is a good point. The pb is AWAIU since the PR does not fix the issue, having a test will fail the CI. Ideally the unit test should go together with the fix. Or maybe I missed something? |
@vietnscality we can It's not a blocking comment anyway 😄 |
OK, fair enough, I'll let the author @benoit-a decide what is appropriate for him |
Good point for the test part, I will how I can do to detect the behaviour on a unit test Regarding the rest of the discussion, I think there is confusion ; to me, the real bug is here, hdclient MUST close the session and for that, it has to drain the stream. It should do that every time there is a response The changes in hdcontroller are merely "good practices" that could have helped slightly but the client part (cloudserver) would still exhibit issues (possibly accumulating sockets in CLOSE WAIT or file descriptor) |
* make sure the stream is ended properly
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.
LGTM!
/approve |
In the queueThe changeset has received all authorizations and has been added to the The changeset will be merged in:
The following branches will NOT be impacted:
There is no action required on your side. You will be notified here once IMPORTANT Please do not attempt to modify this pull request.
If you need this pull request to be removed from the queue, please contact a The following options are set: approve |
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue HD-3340. Goodbye benoit-a. |
No description provided.