-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add the TWebFile::Close(Option_t *option)
method
#13793
Conversation
This is needed to properly close and delete the socket when closing the file in `TROOT::CloseFiles()`, preventing a potential issue when trying to close the socket afterwards
Starting build on |
Build failed on windows10/default. Errors:
|
Build failed on ROOT-ubuntu2004/python3. Failing tests: |
@phsft-bot build just on windows10/default |
Starting build on |
Build failed on windows10/default. |
@phsft-bot build just on windows10/default |
Starting build on |
if (fSocket) | ||
delete fSocket; |
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.
if (fSocket) | |
delete fSocket; | |
delete fSocket; |
fSocket = nullptr; | ||
if (fFullCache) { | ||
free(fFullCache); | ||
fFullCache = 0; |
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.
fFullCache = 0; | |
fFullCache = nullptr; |
@pcanal thanks for the review. Since it is a backport, should I also change the master and then backport those changes? |
Yes, the change technically should be in the master. However they are NFC, so not urgent. |
So I can merge this PR and apply your required changes later on in master and backport them to 6-28-00-patches, right? |
Yes. |
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. Further NFC can be done in a later PR.
@bellenot , @Axel-Naumann , we are trying to test latest ROOT 6.28 changes and our CI tests are failing with Note that 96ca920 worked fine for CMSSW, it is just the last two commits on 6-28 patches branch which are causing this error. Could this PR be the reason for these failures? [a]
|
Not sure why yet, but indeed very likely related to the addition of |
The patch is semantically wrong (the new code should have been after the |
Sorry about that. I don't see how this change can lead to the errors you see, but anyway, how can I reproduce the error? |
I am also not sure how TWebFile can cause this. I have tried to run tests multiple times 9 on different build nodes) and every time some random unit tests fail with same error ( |
OK, thanks |
So looks like issue is not with this change. All ROOT versions 6.28 and above (i.e 6.28, 6.30 and master) open a lot of files ( |
OK, thanks @smuzaffar
You mean even with previous version of 6.28 (e.g. 6.28.06)? |
yes , root 6.28 patches branch even before this change. I do not know when this behavior started (I am testing it in previous builds of root 628 releases to see if I can identify it) |
OK, thanks @smuzaffar ! |
No description provided.