Repository navigation
Conversation
5355c94 to
937d93e
Compare
|
I'm not sure why this one is needed? Shouldn't the files from the library be removed from C as any other structure that has files? If there's a leak, it is from the C side, right? |
|
You're right that there is a leak on the C side too. But freeing the template only drops the library's reference to the files. The files belong to whoever declared them, not to the library. Here the declarer is
So the user has no way to undeclare them, and they stay on every worker until the manager exits. This PR makes |
937d93e to
a489c98
Compare
|
@btovar I also fixed the leaks in the C part |
|
I think we should hold this one out. This is the same pattern we would have for a regular task that is created, filled, but never submitted? If so, I rather solve it in the general. |
6c9208c to
bd905ac
Compare
|
Yes, I think you are right! Now it follows the same pattern as a regular task, so a library that's never installed is covered too. |
69450e9
into
cooperative-computing-lab:master
This brings upstream master with it: the new hash_table (cooperative-computing-lab#4556) and the merged release of a removed library's files (cooperative-computing-lab#4495). hash_table is upstream's as it is, and the callers follow its interface: no hash_table_compact() in compact_tables() and vine_manager_data_service_compact(), hash_table_keys() for the names a worker loses, and upstream's vine_manager_release_random_worker(). itable and set keep their compaction.

Proposed Changes
remove_library()now leaves the files thatcreate_library_from_functions()declared for the library, so they stay on every worker until the manager exits. Instead,remove_library()should undeclare them upon removalMerge Checklist
The following items must be completed before PRs can be merged.
Check these off to verify you have completed all steps.
make testRun local tests prior to pushing.make formatFormat source code to comply with lint policies. Note that some lint errors can only be resolved manually (e.g., Python)make lintRun lint on source code prior to pushing.