Closed SergeyMi37 closed 3 years ago
We don't use transactions anymore?
On Tue, Jul 20, 2021 at 8:15 AM Sergey Mikhaylenko @.***> wrote:
If during the installation of a module with dependencies an error occurred and the module was not installed, then the dependent modules should not be installed either.
Previously, this was solved by rolling back the transaction.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/intersystems-community/zpm/issues/240, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVHEPZK2F3CWM3BPKBDXL3TYUA7FANCNFSM5AVA2C2Q .
We still have transactions, but they should not be so wide. Dependent modules should not be reverted if they were successfully installed.
In fact, I'm OK with that - the building process more and more goes to container-based where you don't care very much about what is installed - you jut rebuild it.
On Tue, Jul 20, 2021 at 9:05 AM Dmitry Maslennikov @.***> wrote:
We still have transactions, but they should not be so wide. Dependent modules should not be reverted if they were successfully installed.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intersystems-community/zpm/issues/240#issuecomment-883096891, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVHEP4WEGXJPPF7UCRDETTTYUGZPANCNFSM5AVA2C2Q .
transactions supposed to be as small as possible, to cover just only what needs to be covered, then commit or rollback. too big transactions may cause issues, for instance, if a module has many dependencies.
makes sense
On Tue, Jul 20, 2021 at 9:10 AM Dmitry Maslennikov @.***> wrote:
transactions supposed to be as small as possible, to cover just only what needs to be covered, then commit or rollback. too big transactions may cause issues, for instance, if a module has many dependencies.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intersystems-community/zpm/issues/240#issuecomment-883101121, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVHEP3YORQGGAUIBVYXJBLTYUHOTANCNFSM5AVA2C2Q .
ok
If during the installation of a module with dependencies an error occurred and the module was not installed, then the dependent modules should not be installed either.
Previously, this was solved by rolling back the transaction.