Currently we are using OceanBase as a MySQL flavored db backend of kine, this db is able to act almost the same as MySQL except one key difference: it cannot promise that the incremental id would be incremented with step 1. For example, in normal cases, the id colomn of table kine will be 1->2->3->... as inserting, but when OB switches its master (may happen several times a day), the next id will be a million number, resulting the id colomn to be 1->2->1000001->1000002->..., and this will cause kine ending up to insert numerious gaps and pause the whole watch.
So here's my questions:
In normal cases, which situation will lead to a MODREVISION GAP?
What's the purpose of filling gaps (as it will soon be deleted by compact)?
In the case above, is there a way to avoid watch pause?
Currently we are using OceanBase as a MySQL flavored db backend of kine, this db is able to act almost the same as MySQL except one key difference: it cannot promise that the incremental id would be incremented with step 1. For example, in normal cases, the
id
colomn of tablekine
will be 1->2->3->... as inserting, but when OB switches its master (may happen several times a day), the next id will be a million number, resulting theid
colomn to be 1->2->1000001->1000002->..., and this will cause kine ending up to insert numerious gaps and pause the whole watch.So here's my questions: