In Mariadb and Galera cluster, we have 3 nodes. I update a field from 99 to 100 through node 1. If I retrieve the same field through node 2, will I get 99 instead of 100 ?
Because the field is used as a sequence number to be part of a application number. It needs to be unique and less gap numbers as far as possible (in multi node environment). If there are gap numbers, it will use up the application number very soon (we use 5 digits as part of the application number)
I understand that a sequence will have gap numbers in mariadb and galera. Instead, I would try to write a function to increment by 1 in a field in a table. But not sure it will work in multi node environment e.g. problem to get different value from different nodes
wsrep_sync_waithelps. Other topics: mysql.rjweb.org/doc.php/galera