[FC] process FC after apply view#3326
Conversation
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
da85acb to
ffbd073
Compare
ffbd073 to
1536dfb
Compare
97e081f to
95b1e63
Compare
6e1f7d5 to
8dca8ef
Compare
7f0a73e to
e580645
Compare
|
Putting back delay for 60 sec as we found some cases where oper state update handling is delayed due to FC configuration after APPLY_VIEW |
| { | ||
| SWSS_LOG_ENTER(); | ||
| m_delayTimer = new SelectableTimer(timespec{.tv_sec = FLEX_COUNTER_DELAY_SEC, .tv_nsec = 0}); | ||
| if (WarmStart::isWarmStart()) |
There was a problem hiding this comment.
Just to confirm this will also handle fast-reboot.
| SWSS_LOG_ENTER(); | ||
|
|
||
| SWSS_LOG_NOTICE("Processing counters"); | ||
| m_delayTimer->stop(); |
There was a problem hiding this comment.
How about following?
if (!m_delayTimerExpired)
{
m_delayTimer->stop();
m_delayTimerExpired = true;
}
orchagent/flexcounterorch.cpp
Outdated
| } | ||
| } | ||
|
|
||
| void FlexCounterOrch::doTask(SelectableTimer &timer) |
There was a problem hiding this comment.
should we delete the timer here?
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| m_deviceMetadataConfigTable(db, CFG_DEVICE_METADATA_TABLE_NAME) | ||
| { | ||
| SWSS_LOG_ENTER(); | ||
| m_delayTimer = std::make_unique<SelectableTimer>(timespec{.tv_sec = FLEX_COUNTER_DELAY_SEC, .tv_nsec = 0}); |
There was a problem hiding this comment.
@vaibhavhd , could you review the warm boot part?
|
@stepanblyschak could you rebase your PR to resolve the conflict? Thanks |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
01e90d8 to
71b6513
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@wen587 @vaibhavhd kindly reminder. this is needed to get in as other PRs are based on that. it is crucial for 202411. @bingwang-ms please help to track it as well please. |
Depends on sonic-net/sonic-swss#3326. To address sonic-net/sonic-buildimage#20302.
* [FC] process FC after apply view What I did Simplify approach to delaying counters on warm boot and fast boot. Removed FLEX_COUNTER_DELAY_STATUS_FIELD and instead postpone all FC processing to happen after apply view to not delay data plane configuration. The CONFIG_DB should not be updated in runtime anymore for counters to be delayed. Why I did it To address sonic-net/sonic-buildimage#20302. How I verified it Run warm-boot - make sure FC orch runs only after APPLY_VIEW.
* [FC] process FC after apply view What I did Simplify approach to delaying counters on warm boot and fast boot. Removed FLEX_COUNTER_DELAY_STATUS_FIELD and instead postpone all FC processing to happen after apply view to not delay data plane configuration. The CONFIG_DB should not be updated in runtime anymore for counters to be delayed. Why I did it To address sonic-net/sonic-buildimage#20302. How I verified it Run warm-boot - make sure FC orch runs only after APPLY_VIEW. Signed-off-by: Baorong Liu <[email protected]>
What I did
Simplify approach to delaying counters on warm boot and fast boot. Removed FLEX_COUNTER_DELAY_STATUS_FIELD and instead postpone all FC processing to happen after apply view to not delay data plane configuration.
The CONFIG_DB should not be updated in runtime anymore for counters to be delayed.
Why I did it
To address sonic-net/sonic-buildimage#20302.
How I verified it
Run warm-boot - make sure FC orch runs only after APPLY_VIEW.
Details if related