File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -146,10 +146,11 @@ void DependencyManager::StartOrUpdateGetRequest(
146146 object_manager_.CancelPull (*request_id);
147147 }
148148
149- if (*request_id != new_request_id) {
150- get_requests_[worker_id][new_request_id] = get_request;
151- get_requests_[worker_id].erase (*request_id);
152- }
149+ // new_request_id and *request_id should not be equal. We leave a RAY_CHECK here to
150+ // prevent subsequent modifications from making them equal.
151+ RAY_CHECK (*request_id != new_request_id);
152+ get_requests_[worker_id][new_request_id] = get_request;
153+ get_requests_[worker_id].erase (*request_id);
153154
154155 *request_id = new_request_id;
155156 RAY_LOG (DEBUG) << " Started pull for get request from worker " << worker_id
Original file line number Diff line number Diff line change @@ -301,10 +301,10 @@ class DependencyManager : public TaskDependencyManagerInterface {
301301 // / dependencies are all local or not.
302302 absl::flat_hash_map<TaskID, std::unique_ptr<TaskDependencies>> queued_task_requests_;
303303
304- // / A map from worker ID to the set of objects that the worker called
305- // / ` ray.get` on and a pull request ID for these objects . The pull request ID
306- // / should be used to cancel the pull request in the object manager once the
307- // / worker cancels the `ray.get` request.
304+ // / A map from worker ID to the multiple sets of objects that the worker multiple called
305+ // / ray.get on, and the corresponding pull request ID for each set . The pull request ID
306+ // / should be used to cancel the pull request in the object manager once the worker
307+ // / cancels the `ray.get` request.
308308 absl::flat_hash_map<WorkerID,
309309 absl::flat_hash_map<uint64_t , absl::flat_hash_set<ObjectID>>>
310310 get_requests_;
You can’t perform that action at this time.
0 commit comments