Explicit Transaction management needed in few areas and also need `pgbench` testing
Hello team, I have been testing pgroll with the examples provided. I have found few potential bugs which can cause issues in critical productions.
I have made separate issues for that,
- #905
- #906
Though both are somewhat related, these are made as two different issues because the START cmd has to be solved in one step and both COMPLETE and ROLLBACK can be solved in one step.
I have explained the entire flow in first issue and second one just focussed on the issue.
I know the window where these issues might occur is very small and only this causes a issue if there are high INSERT or UPDATE queries takes place but i feel this might be crucial for some production environment and also it increases the confidence level for users in adopting this awesome tool.
In my POV, the solution for all these is to smartly handle txn's explicitly.
@ryanslade @andrew-farries @kvch @exekias Also i would suggest to run tests parallelly with pgbench so that the actual production environment can be mimicked. This is crucial because the issue related to backfill #583 and the above mentioned issues are found when i ran pgbench parallelly. Currently I think the tests are ran with the examples without mock data via github actions.
These makes this tool more reliable in any sort of environments.
In case I have misunderstood anything, kindly correct me and if you need any details, feel free to ask.
Source: xataio/pgroll