Adds immediate migration results in progress

This commit is contained in:
torsten committed 2026-08-19 11:18:24 +02:00
1 parent 8453e104c5
commit 3bb6e89496
2102 files changed
+17482 -15071

No files matched your search

@@ -82,7 +82,7 @@ public:
DEBUG_LOG() << Q_FUNC_INFO << " START"
DEBUG_LOG(m_logger) << Q_FUNC_INFO << " START"
<< ", domainId = " << domainId
<< ", domainIdReplay = " << domainIdReplay
<< ", tcpConnectionUrl = " << tcpConnectionUrl.toDisplayString()
@@ -107,7 +107,7 @@ public:
}
DEBUG_LOG() << Q_FUNC_INFO << " idToUse = " << idToUse;
DEBUG_LOG(m_logger) << Q_FUNC_INFO << " idToUse = " << idToUse;
@@ -120,7 +120,7 @@ public:
connect(repl.proc, &QProcess::errorOccurred,
this, [this, idToUse](const QProcess::ProcessError &error)
{
ERROR_LOG() << "QProcess::ProcessError occured: "
ERROR_LOG(m_logger) << "QProcess::ProcessError occured: "
<< ", idToUse = " << idToUse;
qCritical() << "QProcess::ProcessError: " << error;
} );
@@ -130,11 +130,11 @@ public:
connect(proc, &QProcess::readyReadStandardError, this, [this, idToUse, proc]()
{
DEBUG_LOG() << "REPLAY #" << idToUse << " [!]: " << QString::fromUtf8(proc->readAllStandardError());
DEBUG_LOG(m_logger) << "REPLAY #" << idToUse << " [!]: " << QString::fromUtf8(proc->readAllStandardError());
});
connect(proc, &QProcess::readyReadStandardOutput, this, [this, idToUse, proc]()
{
DEBUG_LOG() << "REPLAY #" << idToUse << " [ ]: " << QString::fromUtf8(proc->readAllStandardOutput());
DEBUG_LOG(m_logger) << "REPLAY #" << idToUse << " [ ]: " << QString::fromUtf8(proc->readAllStandardOutput());
});
repl.fi = nullptr;
@@ -158,9 +158,9 @@ public:
m_replayPartitions.insert(idToUse, repl);
DEBUG_LOG() << Q_FUNC_INFO << " repl.proc->start()...";
DEBUG_LOG(m_logger) << Q_FUNC_INFO << " repl.proc->start()...";
repl.proc->start();
DEBUG_LOG() << Q_FUNC_INFO << " repl.proc->start()...DONE";
DEBUG_LOG(m_logger) << Q_FUNC_INFO << " repl.proc->start()...DONE";
if (wait)
{
@@ -187,7 +187,7 @@ public:
NOTICE_LOG(m_logger) << " LtsUtils::awaitWithCancelationSignal ... DONE";
processStarted(proc, idToUse);
DEBUG_LOG() << "Replay started: " << idToUse;
DEBUG_LOG(m_logger) << "Replay started: " << idToUse;
return idToUse;
}
catch (const std::exception &ex)
@@ -207,7 +207,7 @@ public:
if (bIsStartedSuccessfully)
{
processStarted(proc, idToUse);
DEBUG_LOG() << "Replay started: " << idToUse;
DEBUG_LOG(m_logger) << "Replay started: " << idToUse;
return idToUse;
}
else
@@ -250,7 +250,7 @@ public:
if (proc->exitCode() != 0 || proc->exitStatus() != QProcess::NormalExit)
{
WARNING_LOG() << "SituationReplay process exited with error: " << proc->exitCode()
WARNING_LOG(m_logger) << "SituationReplay process exited with error: " << proc->exitCode()
<< ", status: " << proc->exitStatus()
<< ", stdout: " << proc->readAllStandardOutput()
<< ", stderr: " << proc->readAllStandardError();
@@ -270,7 +270,7 @@ public:
auto it = m_replayPartitions.find(replayId);
if (it == m_replayPartitions.end())
{
WARNING_LOG() << "Got a processStarted signal from a process for replay " << replayId
WARNING_LOG(m_logger) << "Got a processStarted signal from a process for replay " << replayId
<< " but found not corresponding entry in m_replayPartitions";
return;
}
@@ -323,7 +323,7 @@ public:
proc->kill();
const auto err(proc->readAllStandardError());
if (!err.isEmpty())
WARNING_LOG() << "stderr: " << err;
WARNING_LOG(m_logger) << "stderr: " << err;
delete proc;
};
@@ -332,12 +332,12 @@ public:
{
try
{
DEBUG_LOG() << "Waiting for replay to process to shutdown... Replay id: " << rp.id();
DEBUG_LOG(m_logger) << "Waiting for replay to process to shutdown... Replay id: " << rp.id();
LtsUtils::awaitTimeout(10000, rp.proc, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished), true);
}
catch (...)
{
WARNING_LOG() << "Timeout waiting for the replay process to quit gracefully - killing the process! Replay id: " << rp.id();
WARNING_LOG(m_logger) << "Timeout waiting for the replay process to quit gracefully - killing the process! Replay id: " << rp.id();
cb();
}
}