Github user zuyu commented on a diff in the pull request:
    --- Diff: query_execution/PolicyEnforcerBase.hpp ---
    @@ -163,6 +174,8 @@ class PolicyEnforcerBase {
       // Key = query ID, value = QueryManagerBase* for the key query.
       std::unordered_map<std::size_t, std::unique_ptr<QueryManagerBase>> 
    +  std::unordered_set<std::size_t> removed_query_ids_;
    --- End diff --
    Yes, and this set is used in 
 to check `query_id` in 
    It is required if we do above check, as some query (without any rebuilds) 
may finish earlier (thus being removed from `admitted_queries_`) than when the 
`QueryInitiateResponseMessage` replies back from a `Shiftboss`.
    Finally, as a `TODO`, we could do some `GC` on `removed_query_ids_`, if we 
finish checks for older removed `query_id`s.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

Reply via email to