Skip to content

Commit

Permalink
Add additional info on topology activation timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
rbx committed Apr 16, 2024
1 parent 0dd0027 commit f2234d3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/internal/requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,26 @@
| Terminate | mTopology->ChangeState |
| Shutdown | - |
| Status | - |


Run
topoFilepath()
requestTimeout("topoFilepath..execute")
submit
makeParams
execPlugin
execute
submitDDSAgents
requestTimeout("wait_for lock in submitDDSAgents")
waitForNumActiveSlots
requestTimeout("waitForNumActiveSlots..waitForNumSlots<dds::tools_api::CSession::EAgentState::active>")
getAgentInfo
requestTimeout("getAgentInfo..syncSendRequest<SAgentInfoRequest>")
attemptSubmitRecovery
getNumSlots
requestTimeout("getNumSlots..syncSendRequest<SAgentCountRequest>")
activate
activateDDSTopology
requestTimeout("wait_for lock in activateDDSTopology")
waitForState
requestTimeout("WaitForState {expState}")
14 changes: 14 additions & 0 deletions odc/Controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,20 @@ bool Controller::activateDDSTopology(const CommonParams& common, Session& sessio
success = false;
fillAndLogError(common, error, ErrorCode::RequestTimeout, "Timed out waiting for topology activation");
OLOG(error, common) << error;

auto agentInfo = getAgentInfo(common, session);
OLOG(info, common) << agentInfo.size() << " DDS agents active:";
for (const auto& ai : agentInfo) {
OLOG(info, common)
<< " Agent ID: " << ai.m_agentID
<< "; host: " << ai.m_host
<< "; path: " << ai.m_DDSPath
<< "; group: " << ai.m_groupName
<< "; slots: " << ai.m_nSlots
<< " (idle: " << ai.m_nIdleSlots
<< ", executing: " << ai.m_nExecutingSlots << ").";
}

} else {
// try {
// if (!session.mCollections.empty()) {
Expand Down

0 comments on commit f2234d3

Please sign in to comment.