Repository navigation
Correctly clean up memory attributes and file uploads - #9672
jameskleeh wants to merge 4 commits into
Conversation
|
Can one of the admins verify this patch? |
|
@netty-bot test this please |
|
@netty-bot test this please |
|
Fixed tests |
|
@netty-bot test this please |
|
@jameskleeh @fredericBregier seeing that we need to adjust tests I now wonder if it may break some users code :/ ? |
|
@jameskleeh @normanmaurer Indeed, I had the same in my mind... Previously, any HttpData should be released once used (as any ByteBuf should be), but a specific cleanup was done on "file" data, in order to keep disk usage under control. In order to keep the previous orientation, we might introduce 2 things:
Doing this will preserve the previous semantic, but still having the possibility to clean all and everything if needed. WDYT? |
|
I think if another method is introduced for this, that method should be deprecated in the next major release and the existing methods should be changed. Just let me know how you all want to proceed |
|
@jameskleeh Changing to deprecated to removal is a long way (depends on what is a major version of course). |
|
I think this cane be closed ... Please re-open if you think I am wrong |
Motivation:
To ensure memory attributes and file uploads are cleaned up properly
Modification:
Modified the data factory to correctly clean up memory uploads and attributes, as well as refactored the methods to ensure something like this is less likely to happen again.
Result:
Fixes #8640.