-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Fix the matter server shutdown flow and add DataModelShutdown #38515
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
base: master
Are you sure you want to change the base?
Fix the matter server shutdown flow and add DataModelShutdown #38515
Conversation
a4d73d5
to
4eddd6e
Compare
59e4055
to
7028444
Compare
PR #38515: Size comparison from 37948e2 to 6df1418 Increases above 0.2%:
Full report (24 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, qpg, stm32, telink)
|
PR #38515: Size comparison from 37948e2 to 720ea1c Increases above 0.2%:
Full report (55 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
720ea1c
to
1bcb1ea
Compare
PR #38515: Size comparison from 36c5265 to 1bcb1ea Increases above 0.2%:
Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
1bcb1ea
to
291897f
Compare
PR #38515: Size comparison from 4e8a75c to 291897f Increases above 0.2%:
Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
291897f
to
7e0794c
Compare
b5a34f1
to
22b18df
Compare
PR #38515: Size comparison from 7460361 to 22b18df Increases above 0.2%:
Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #38515: Size comparison from 79faaa3 to 245ad43 Increases above 0.2%:
Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
245ad43
to
d05639f
Compare
PR #38515: Size comparison from 53ed908 to d05639f Increases above 0.2%:
Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
c92a17e
to
03f5e5d
Compare
PR #38515: Size comparison from feba8fd to 03f5e5d Increases above 0.2%:
Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
03f5e5d
to
547fbb8
Compare
PR #38515: Size comparison from 576b957 to 547fbb8 Increases above 0.2%:
Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
547fbb8
to
00c52de
Compare
PR #38515: Size comparison from 7c1536e to 00c52de Increases above 0.2%:
Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
src/app/server/Server.cpp
Outdated
@@ -651,6 +651,9 @@ void Server::Shutdown() | |||
#if CHIP_CONFIG_ENABLE_ICD_SERVER | |||
app::DnssdServer::Instance().SetICDManager(nullptr); | |||
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER | |||
|
|||
app::InteractionModelEngine::GetInstance()->Shutdown(); |
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.
I would expect shutdown to just happen in reverse order from init, though this code seems to be doing a terrible job of that.
But just in terms of safety, why are we moving where IM engine shutdown happens? Why didn't we just add the new call sometime after that point?
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.
Revered the shutdown sequence and use an existing API to ShutdownActiveReads
which was guarded by CONFIG_BUILD_FOR_HOST_UNIT_TEST
00c52de
to
82ef723
Compare
PR #38515: Size comparison from a7cf007 to 82ef723 Increases above 0.2%:
Full report (3 builds for cc32xx, stm32)
|
Co-authored-by: Boris Zbarsky <[email protected]>
server shutdown sequence.
82ef723
to
a1c6f42
Compare
PR #38515: Size comparison from d761e1b to a1c6f42 Increases above 0.2%:
Full report (41 builds for cc32xx, cyw30739, efr32, linux, nrfconnect, psoc6, qpg, stm32, telink, tizen)
|
PR #38515: Size comparison from d761e1b to 22eaff4 Increases above 0.2%:
Full report (41 builds for cc32xx, cyw30739, efr32, linux, nrfconnect, psoc6, qpg, stm32, telink, tizen)
|
Problem
Changes
ShutdownDataModelForTesting
which consumesMatter*PluginServerShutdownCallback
andemberAf*ClusterShutdownCallback
to shutdown the clusters initializations.Testing
Server::Shutdown
API by calling it from application.