Pcornel
Automation · Rollback & Recovery

Transaction

Cheat sheet · https://pcornel.dk/topic.php?topic=5952

Back to the Topic

Answer

A transaction groups changes so they all succeed or all fail together, such as a database transaction or NETCONF candidate commit, avoiding half-applied changes.

Remember

  • A transaction applies all changes or none.
  • Examples: database transactions, NETCONF candidate commit.
  • Not every system supports transactions.

First checks

  • NETCONF candidate + commit / commit confirmed — transactional config
  • Database transactions — atomicity
  • Terraform plan/apply (not transactional across resources) — awareness

Verify in this order

begin → changes → commit (or rollback)

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5952

Confirmation

Confirm action

Continue?