ReloadableApplications: retained-resource ledger and failure-injection matrix; reject publish after failed drain (P-RELOADABLE-05)
This commit is contained in:
1 parent
2489098478
commit
2da3971760
5 files changed
+382
-1
No files matched your search
@@ -145,6 +145,11 @@ namespace ReloadableHost
|
||||
|
||||
std::lock_guard lock{m_mutex};
|
||||
if (!quiesced) {
|
||||
// Quiescence was not reached: the transaction must not be
|
||||
// publishable. The old owner keeps its pins and the candidate fails
|
||||
// safely instead of racing a second writer.
|
||||
m_phase = ReloadPhase::Failed;
|
||||
m_outcome = ReloadOutcome::Failed;
|
||||
m_error = "drain deadline expired with pinned calls";
|
||||
return std::unexpected{
|
||||
Void::Result::Error{Void::Result::ErrorKind::timeout, m_error}};
|
||||
|
||||
Reference in new issue
Block a user