sonic-buildimage/platform
mssonicbld 89f091eded
[Mellanox] set select timeout to no more than 1 sec to make sure fast shutdown (#13611) (#16449)
- Why I did it
Commit sonic-net/sonic-platform-daemons@153ea47 changed SfpStateUpdateTask from Process to Thread. In this commit, it raises an exception in SfpStateUpdateTask to make shutdown flow fast. But it does not work on Nvidia platform as Nvidia platform is passing timeout parameter of get_change_event to select. Linux select function can not be interrupted by a Python exception. There is no such issue on Nvidia platform before that commit. However, in order to comply with the commit and make shutdown flow fast, we decided to change Nvidia platform API implementation.

To fix issue #13591.

- How I did it
The select call in get_change_event should use no more than 1 second as timeout parameter.
Outside the select call, add a while loop to make sure timeout parameter of get_change_event work as expected

- How to verify it
Manual test

Co-authored-by: Junchao-Mellanox <57339448+Junchao-Mellanox@users.noreply.github.com>
2023-09-05 21:53:08 -07:00
..
barefoot [202205][Arista] Ignore poll errors during get_event_change (#16304) 2023-08-29 11:43:20 -07:00
broadcom [202205] Update Broadcom DNX SAI version to 7.1.60.4 (#16351) 2023-08-31 08:32:13 -07:00
cavium Parallel building of sonic dockers using native dockerd(dood). (#10352) 2022-04-28 08:39:37 +08:00
centec [202205] Update Linux kernel from 5.10.103 to 5.10.140 (#12660) #12874 2022-12-01 09:25:40 -08:00
centec-arm64 [centec][arm64] fix tsingma bsp compile error (#12774) 2022-12-06 18:35:30 +08:00
checkout Update cisco-8000.ini (#16387) 2023-09-05 21:42:59 -07:00
components Revert "[gearbox] use credo sai v0.9.0 (#14149)" (#15708) (#15752) 2023-07-08 08:23:35 +08:00
generic [dockers] Rename 'docker-snmp-sv2' to 'docker-snmp' (#4699) 2020-06-11 16:04:23 -07:00
innovium [innovium]: Enable syncd container autorestart for Innovium platforms (#11497) 2022-09-21 21:10:23 +00:00
marvell [202205][BRCM_SAI] update Brcm SAI dependencies (#11173) 2022-06-17 05:02:00 -07:00
marvell-arm64 Support symcrypt fips config for aboot/uboot (#10729) 2022-06-05 15:20:20 +00:00
marvell-armhf [Marvell] Update armhf sai debian (#16172) 2023-08-18 11:22:40 -07:00
mellanox [Mellanox] set select timeout to no more than 1 sec to make sure fast shutdown (#13611) (#16449) 2023-09-05 21:53:08 -07:00
nephos Parallel building of sonic dockers using native dockerd(dood). (#10352) 2022-04-28 08:39:37 +08:00
p4 Parallel building of sonic dockers using native dockerd(dood). (#10352) 2022-04-28 08:39:37 +08:00
pddf Fix for Accton platform build failure when doing incremental build (#10541) 2022-05-09 12:17:38 -07:00
template Mount directory warmboot in docker gbsyncd (#11852) 2022-08-27 16:16:17 +00:00
vs Support to add SONiC OS Version in device info (#14601) (#14624) 2023-04-17 17:30:49 -07:00