-
Notifications
You must be signed in to change notification settings - Fork 85
rebuild mysql conn when retry failed chunks and support --transactional-consistency
parameter
#199
Conversation
Should be merged after #190 |
i suggest we avoid the obscure abbreviation since |
I think changing the name is okay, but we should keep this behavior the same as before, which means |
Yes the default should be 1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fix some typo in 91dcef2 |
trx-consistency-only
parameter--transactional-consistency
parameter
…l-consistency` parameter (pingcap#199) * support rebuild mysql connection to retry failed chunks * refine consistency variables * add --transactional-consistency and support rebuilding mysql conn to retry
…l-consistency` parameter (pingcap#199) * support rebuild mysql connection to retry failed chunks * refine consistency variables * add --transactional-consistency and support rebuilding mysql conn to retry
…l-consistency` parameter (pingcap#199) * support rebuild mysql connection to retry failed chunks * refine consistency variables * add --transactional-consistency and support rebuilding mysql conn to retry
…l-consistency` parameter (pingcap#199) * support rebuild mysql connection to retry failed chunks * refine consistency variables * add --transactional-consistency and support rebuilding mysql conn to retry
…l-consistency` parameter (pingcap/dumpling#199) * support rebuild mysql connection to retry failed chunks * refine consistency variables * add --transactional-consistency and support rebuilding mysql conn to retry
What problem does this PR solve?
#178
When we retry on failed chunks, if mysql connection is broken, the retry will fail directly and will take no effect.
What is changed and how it works?
--transactional-consistency
option. The default value is true. If it isfalse
, dumpling won't release locks until the dumping progress is finished.--transactional-consistency
= false). Before rebuilding MySQL connection we should also check that whether the mysql lock connection is still alive.Check List
Tests
Test kill the socket mysql connection. The connection can be rebuilt and dump data correctly.
Side effects
Related changes
Release note
--transactional-consistency
parameter and support rebuild mysql connections during retry.