mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-26 12:44:10 +00:00
* fix(meta-srv): treat a missing region in the downgrade reply as a failure A closing region is no longer found on the datanode while its in-flight manifest updates may still be written, so a reply saying the region does not exist does not prove that the leader has stopped. Handle it as a retryable downgrade failure: retry, then wait until the leader region lease deadline before upgrading the candidate. Signed-off-by: jeremyhi <fengjiachun@gmail.com> * test(meta-srv): reuse send_mock_reply in the missing region test Signed-off-by: jeremyhi <fengjiachun@gmail.com> * fix(meta-srv): handle every downgrade reply of a batch A failed region no longer ends the handling of a batch reply early, so the last entry ids of the other regions are still recorded. Signed-off-by: jeremyhi <fengjiachun@gmail.com> * fix(meta-srv): log each missing region and test the first failure of a batch Log a missing region where its reply is handled, so that it is reported even when an earlier reply of the batch already failed. Test that a batch returns its first failure in reply order, and list the retry causes of the downgrade by the retry hint of the reply. Signed-off-by: jeremyhi <fengjiachun@gmail.com> * docs(meta-srv): qualify the missing region retry cause Signed-off-by: jeremyhi <fengjiachun@gmail.com> * refactor(meta-srv): state the first failure policy of a downgrade batch Drop the warn log of a missing region, since the retry and failure logs already print the reason, and reword the retry doc of a missing region. Signed-off-by: jeremyhi <fengjiachun@gmail.com> --------- Signed-off-by: jeremyhi <fengjiachun@gmail.com>