You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
o/confdbstate: check for ephemeral change when missing save-view hook on commit (#16889)
Although we error early if we can tell that a write affects ephemeral
data but no save-view hook is present, a change-view hook may have
written to an ephemeral path after that initial check so we need to
check again before committing.
Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
// commit fails because change-view hook wrote ephemeral data but no save-view hooks exist
597
+
c.Assert(chg.Status(), Equals, state.ErrorStatus)
598
+
599
+
commitTask:=findTask(chg, "commit-confdb-tx")
600
+
c.Assert(commitTask, NotNil)
601
+
c.Assert(strings.Join(commitTask.Log(), "\n"), Matches, `.*ERROR cannot commit transaction: write may affect ephemeral data but no save-view hook is present.*`)
0 commit comments