-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make reset crm polling interval effective immediately #451
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
orchagent/crmorch.cpp
Outdated
@@ -236,6 +236,10 @@ void CrmOrch::handleSetCommand(const string& key, const vector<FieldValueTuple>& | |||
if (field == CRM_POLLING_INTERVAL) | |||
{ | |||
m_pollingInterval = chrono::seconds(to_uint<uint32_t>(value)); | |||
auto timer = static_cast<ExecutableTimer *>(Orch::getExecutor("CRM_COUNTERS_POLL"))->getSelectableTimer(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timer [](start = 21, length = 5)
It is easier to get the time from ctor (executor). #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As comment
What I did
make reset crm polling interval effective immediately
Why I did it
it takes too long to run the crm test
How I verified it
passing swss integration test
Details if related