)]}'
{"octavia/controller/healthmanager/health_drivers/update_db.py":[{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"c710fc1b9caccf15e9bd35101c83ff9ac36f3438","unresolved":false,"context_lines":[{"line_number":123,"context_line":"        else:"},{"line_number":124,"context_line":"            # If this is not a spare amp, log and skip it."},{"line_number":125,"context_line":"            amp \u003d self.amphora_repo.get(session, id\u003dhealth[\u0027id\u0027])"},{"line_number":126,"context_line":"            if not amp or amp.load_balancer_id:"},{"line_number":127,"context_line":"                # This is debug and not warning because this can happen under"},{"line_number":128,"context_line":"                # normal deleting operations."},{"line_number":129,"context_line":"                LOG.debug(\u0027Received a health heartbeat from amphora {0} with \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_a4347ae0","line":126,"range":{"start_line":126,"start_character":0,"end_line":126,"end_character":47},"updated":"2018-06-20 14:08:13.000000000","message":"For the opposition of this \"if\": No db_lb associated and amp exists ,amp.load_balancer_id is None.\nIt is a spare amp in some way, right? Then we set the expected_listener_count to 0 for forbiding the following amp status update. And in L171, we return. So that means we will update the amp health when len(listeners) \u003d\u003d expected_listener_count \u003d\u003d 0. eventhough a spare amp, we still check/update its status. Is it necessary?","commit_id":"5cef93df2ec4e32888d7b8406da45fb2be62e557"}]}
