d434ba6518a83dfde682e52373b526df4c3933ec,python/ray/serve/controller.py,ServeController,delete_endpoint,#ServeController#Any#,370

Before Change


            del self.endpoint_state.routes[route_to_delete]

            // Remove the traffic policy entry if it exists.
            if endpoint in self.endpoint_state.traffic_policies:
                del self.endpoint_state.traffic_policies[endpoint]

            return_uuid = self._create_event_with_result({
                route_to_delete: None,
                endpoint: None
            })

After Change


        Does not modify any corresponding backends.
        
        logger.info("Deleting endpoint "{}"".format(endpoint))
        async with self.write_lock:
            self.endpoint_state.delete_endpoint(endpoint)

    async def set_backend_goal(self, backend_tag: BackendTag,
                               backend_info: BackendInfo,
                               new_id: GoalId) -> None:
        // NOTE(ilr) Must checkpoint after doing this!
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: ray-project/ray
Commit Name: d434ba6518a83dfde682e52373b526df4c3933ec
Time: 2021-01-08
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/controller.py
Class Name: ServeController
Method Name: delete_endpoint


Project Name: apache/incubator-mxnet
Commit Name: 02ae456ef0e4eef86455b0a39d5ccabfd5b29668
Time: 2020-07-23
Author: dick.carter@comcast.net
File Name: tests/python/unittest/test_gluon.py
Class Name:
Method Name: test_zero_grad


Project Name: pfnet/optuna
Commit Name: 1b12a45ddd604bdcbb01ef7016e6da491e8d3c10
Time: 2020-05-21
Author: ytsmiling@gmail.com
File Name: optuna/storages/cached_storage.py
Class Name: _CachedStorage
Method Name: set_trial_state