)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":31664,"name":"Omer Schwartz","email":"oschwart@redhat.com","username":"oschwart"},"change_message_id":"cd2eae0e773960b48f205937484ad86f2e0ee4e3","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"3226a466_2ceb8b08","updated":"2026-09-30 09:54:30.000000000","message":"Thanks for adding recovery for stranded records. I left a few comments inline","commit_id":"d0ef59ad6b0d4e4028019ca5063b1a231d559436"},{"author":{"_account_id":30176,"name":"Michiel Piscaer","email":"michiel@piscaer.com","username":"masterpe"},"change_message_id":"ad103bb4ce976b4a80baeef0bcea026101ea8382","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":6,"id":"5bbf06fb_8837e1a3","updated":"2026-10-02 12:43:08.000000000","message":"recheck","commit_id":"4bf21f287bfc92823d757ca19ab0a77ada8f656f"}],"designate/storage/sqlalchemy/__init__.py":[{"author":{"_account_id":31664,"name":"Omer Schwartz","email":"oschwart@redhat.com","username":"oschwart"},"change_message_id":"cd2eae0e773960b48f205937484ad86f2e0ee4e3","unresolved":true,"context_lines":[{"line_number":657,"context_line":"        stranded_record \u003d select(literal_column(\u00271\u0027)).where("},{"line_number":658,"context_line":"            tables.records.c.zone_id \u003d\u003d tables.zones.c.id,"},{"line_number":659,"context_line":"            tables.records.c.status \u003d\u003d \u0027PENDING\u0027,"},{"line_number":660,"context_line":"            tables.records.c.serial \u003c\u003d tables.zones.c.serial,"},{"line_number":661,"context_line":"        ).exists()"},{"line_number":662,"context_line":"        query \u003d select(tables.zones.c.id).where("},{"line_number":663,"context_line":"            tables.zones.c.shard.between(begin_shard, end_shard),"}],"source_content_type":"text/x-python","patch_set":5,"id":"c8392171_8c12248e","line":660,"range":{"start_line":660,"start_character":12,"end_line":660,"end_character":60},"updated":"2026-09-30 09:54:30.000000000","message":"The lost-flag race this change aims to repair leaves the record serial greater than the published zone serial. For example, a PENDING record at 1101 in an ACTIVE zone at 1100 is excluded here and will remain stranded. Could the finder cover that case too, and could a storage test exercise both serial relationships? The current worker test mocks this finder.","commit_id":"d0ef59ad6b0d4e4028019ca5063b1a231d559436"},{"author":{"_account_id":30176,"name":"Michiel Piscaer","email":"michiel@piscaer.com","username":"masterpe"},"change_message_id":"145c30695743a1b497d4d879dd73771bb2db23db","unresolved":false,"context_lines":[{"line_number":657,"context_line":"        stranded_record \u003d select(literal_column(\u00271\u0027)).where("},{"line_number":658,"context_line":"            tables.records.c.zone_id \u003d\u003d tables.zones.c.id,"},{"line_number":659,"context_line":"            tables.records.c.status \u003d\u003d \u0027PENDING\u0027,"},{"line_number":660,"context_line":"            tables.records.c.serial \u003c\u003d tables.zones.c.serial,"},{"line_number":661,"context_line":"        ).exists()"},{"line_number":662,"context_line":"        query \u003d select(tables.zones.c.id).where("},{"line_number":663,"context_line":"            tables.zones.c.shard.between(begin_shard, end_shard),"}],"source_content_type":"text/x-python","patch_set":5,"id":"28f48f86_dfafbeaa","line":660,"range":{"start_line":660,"start_character":12,"end_line":660,"end_character":60},"in_reply_to":"c8392171_8c12248e","updated":"2026-10-02 10:54:29.000000000","message":"Acknowledged","commit_id":"d0ef59ad6b0d4e4028019ca5063b1a231d559436"}],"designate/worker/tasks/zone.py":[{"author":{"_account_id":31664,"name":"Omer Schwartz","email":"oschwart@redhat.com","username":"oschwart"},"change_message_id":"cd2eae0e773960b48f205937484ad86f2e0ee4e3","unresolved":true,"context_lines":[{"line_number":969,"context_line":"            # NOTIFY + poll so update_status flips the record ACTIVE. This"},{"line_number":970,"context_line":"            # mirrors PeriodicIncrementSerialTask and heals both the"},{"line_number":971,"context_line":"            # flag-clobber and the consensus-lag variants of the race."},{"line_number":972,"context_line":"            self.central_api.increment_zone_serial(self.context, zone)"},{"line_number":973,"context_line":"            if zone.action \u003d\u003d \u0027NONE\u0027:"},{"line_number":974,"context_line":"                zone.action \u003d \u0027UPDATE\u0027"},{"line_number":975,"context_line":"                zone.status \u003d \u0027PENDING\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"6a6761fa_5b366fe8","line":972,"range":{"start_line":972,"start_character":0,"end_line":972,"end_character":70},"updated":"2026-09-30 09:54:30.000000000","message":"This RPC returns the newly published serial, but the worker receives zone with its old serial. Polling accepts a nameserver that still reports the old serial, so recovery can mark the record ACTIVE before the new publication reaches DNS. Please put the returned serial on the zone passed to update_zone.","commit_id":"d0ef59ad6b0d4e4028019ca5063b1a231d559436"},{"author":{"_account_id":30176,"name":"Michiel Piscaer","email":"michiel@piscaer.com","username":"masterpe"},"change_message_id":"145c30695743a1b497d4d879dd73771bb2db23db","unresolved":false,"context_lines":[{"line_number":969,"context_line":"            # NOTIFY + poll so update_status flips the record ACTIVE. This"},{"line_number":970,"context_line":"            # mirrors PeriodicIncrementSerialTask and heals both the"},{"line_number":971,"context_line":"            # flag-clobber and the consensus-lag variants of the race."},{"line_number":972,"context_line":"            self.central_api.increment_zone_serial(self.context, zone)"},{"line_number":973,"context_line":"            if zone.action \u003d\u003d \u0027NONE\u0027:"},{"line_number":974,"context_line":"                zone.action \u003d \u0027UPDATE\u0027"},{"line_number":975,"context_line":"                zone.status \u003d \u0027PENDING\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"4b82fa2b_863c17a9","line":972,"range":{"start_line":972,"start_character":0,"end_line":972,"end_character":70},"in_reply_to":"6a6761fa_5b366fe8","updated":"2026-10-02 10:54:29.000000000","message":"Acknowledged","commit_id":"d0ef59ad6b0d4e4028019ca5063b1a231d559436"},{"author":{"_account_id":31664,"name":"Omer Schwartz","email":"oschwart@redhat.com","username":"oschwart"},"change_message_id":"cd2eae0e773960b48f205937484ad86f2e0ee4e3","unresolved":true,"context_lines":[{"line_number":970,"context_line":"            # mirrors PeriodicIncrementSerialTask and heals both the"},{"line_number":971,"context_line":"            # flag-clobber and the consensus-lag variants of the race."},{"line_number":972,"context_line":"            self.central_api.increment_zone_serial(self.context, zone)"},{"line_number":973,"context_line":"            if zone.action \u003d\u003d \u0027NONE\u0027:"},{"line_number":974,"context_line":"                zone.action \u003d \u0027UPDATE\u0027"},{"line_number":975,"context_line":"                zone.status \u003d \u0027PENDING\u0027"},{"line_number":976,"context_line":"            self.worker_api.update_zone(self.context, zone)"},{"line_number":977,"context_line":""},{"line_number":978,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1bab6877_a299c89c","line":975,"range":{"start_line":973,"start_character":12,"end_line":975,"end_character":39},"updated":"2026-09-30 09:54:30.000000000","message":"These assignments only change the local object; the database zone remains ACTIVE/NONE. After an unsuccessful poll, is_current_action_valid() sees NONE and stops retries. update_status() can then mark the matching record ERROR, which also removes it from this finder’s PENDING search. Please make the recovery action consistent with the stored zone state, or provide a polling path that handles an ACTIVE/NONE recovery.","commit_id":"d0ef59ad6b0d4e4028019ca5063b1a231d559436"},{"author":{"_account_id":30176,"name":"Michiel Piscaer","email":"michiel@piscaer.com","username":"masterpe"},"change_message_id":"145c30695743a1b497d4d879dd73771bb2db23db","unresolved":false,"context_lines":[{"line_number":970,"context_line":"            # mirrors PeriodicIncrementSerialTask and heals both the"},{"line_number":971,"context_line":"            # flag-clobber and the consensus-lag variants of the race."},{"line_number":972,"context_line":"            self.central_api.increment_zone_serial(self.context, zone)"},{"line_number":973,"context_line":"            if zone.action \u003d\u003d \u0027NONE\u0027:"},{"line_number":974,"context_line":"                zone.action \u003d \u0027UPDATE\u0027"},{"line_number":975,"context_line":"                zone.status \u003d \u0027PENDING\u0027"},{"line_number":976,"context_line":"            self.worker_api.update_zone(self.context, zone)"},{"line_number":977,"context_line":""},{"line_number":978,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"dce68739_b6596586","line":975,"range":{"start_line":973,"start_character":12,"end_line":975,"end_character":39},"in_reply_to":"1bab6877_a299c89c","updated":"2026-10-02 10:54:29.000000000","message":"Acknowledged","commit_id":"d0ef59ad6b0d4e4028019ca5063b1a231d559436"}]}
