Skip to content

[system-health] Fix file handle leak#132

Closed
Junchao-Mellanox wants to merge 1 commit intomasterfrom
fix-handle-leak
Closed

[system-health] Fix file handle leak#132
Junchao-Mellanox wants to merge 1 commit intomasterfrom
fix-handle-leak

Conversation

@Junchao-Mellanox
Copy link
Copy Markdown
Owner

Why I did it

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@stephenxs
Copy link
Copy Markdown
Collaborator

stephenxs commented Feb 22, 2022

I believe this is an swss-common issue. I don't see a destructor in ConfigDBConnector_Native.
But I still treat this as a valid fix/optimization than a WA because connecting DB once is better than connecting it everytime

@Junchao-Mellanox Junchao-Mellanox deleted the fix-handle-leak branch February 25, 2022 01:36
Junchao-Mellanox pushed a commit that referenced this pull request Oct 25, 2022
79edf66 Longxiang Lyu Wed Aug 17 08:12:37 2022 +0800 Fix azure pipeline (#118)
8e0f2c6 Longxiang Lyu Wed Aug 17 08:36:07 2022 +0800 Update linkmgr health after getting default route update (#117)
b14ffb8 Jing Zhang Wed Aug 17 15:44:37 2022 -0700 [active-active] post mux metrics events (#123)
a30dbb3 Jing Zhang Thu Aug 18 18:16:04 2022 -0700 Update handleMuxConfigNotification logic (#125)
e14aaba Jing Zhang Tue Aug 23 10:02:17 2022 -0700 [active-active] Remove unnecessary mux wait timeout logs (#122)
cc83717 Longxiang Lyu Fri Sep 2 02:17:53 2022 +0800 Fix mux config (#128)
5429281 Mai Bui Thu Sep 1 17:44:04 2022 -0400 [linkmgrd] Replace memset function in link_prober (#126)
b5aaec1 Jing Zhang Fri Sep 9 14:01:03 2022 -0700 [active-active] shutdown link prober when starting as isolated (#130)
75f02cf Jing Zhang Tue Sep 13 10:34:32 2022 -0700 [active-standby] update warmboot reconciliation logic (#129)
a5a9f90 Hua Liu Fri Sep 16 09:54:32 2022 +0800 Install libyang to azure pipeline (#132)
6fe4f0f Jing Zhang Tue Sep 20 10:10:16 2022 -0700 [Active-Active] flaky LinkmgrdBootupSequence unit tests (#134)
ea68e8c Jing Zhang Wed Sep 21 10:52:18 2022 -0700 Post switchover reasons to STATE DB (#131)
60c35b5 Jing Zhang Thu Sep 22 13:00:41 2022 -0700 [Active-Active] server side admin forwarding state sync up (#133)
08e1be5 Jing Zhang Mon Sep 26 10:59:27 2022 -0700 [Active-Active] avoid being stuck in unknown after process init (#136)
2579988 Jing Zhang Mon Oct 3 09:40:55 2022 -0700 [Active-Standby] fix syslog flood caused by unkown -> standby switchovers (#137)
7e9f670 Jing Zhang Wed Oct 5 10:03:45 2022 -0700 [Active-Active] Retry config mux mode standby (#139)
23feb3b Jing Zhang Wed Oct 5 15:22:58 2022 -0700 [Active-Active] Post link prober stats to state db (#140)
e650098 Jing Zhang Fri Oct 7 15:27:17 2022 -0700 [Active-Active] Update default route shutdown heartbeat logic (#141)
d0653e7 Jing Zhang Tue Oct 11 10:22:02 2022 -0700 [Active-Standby] avoid posting mux metrics event when receiving unsolicited mux state notification (#142)

dcf6460 Longxiang Lyu Fri Oct 21 12:15:42 2022 +0800 [active-active] Add support to send/handle mux probe request (#147)
fdf42ed Longxiang Lyu Fri Oct 21 10:34:47 2022 +0800 Fix link prober state event report twice issue (#149)
5fd19a3 Longxiang Lyu Mon Oct 17 09:20:27 2022 +0800 [active-active] Fix config reload (#145)

sign-off: Jing Zhang [email protected]
Junchao-Mellanox pushed a commit that referenced this pull request Oct 28, 2022
…bmodule head (sonic-net#12264)

linkmgrd:
* 44f182b 2022-10-03 | [Active-Standby] fix syslog flood caused by `unkown -> standby` switchovers  (#137) (HEAD -> 202205) [Jing Zhang]
* 9284ce1 2022-09-26 | [Active-Active] avoid being stuck in `unknown` after process init (#136) [Jing Zhang]
* 55711d7 2022-09-16 | Install libyang to azure pipeline (#132) [Hua Liu]

swss:
* 2f7da1e 2022-09-30 | [build] add missing package libyang-dev in lgtm.yml (sonic-net#2475) (HEAD -> 202205, github/202205) [Qi Luo]

platform-daemon:
* 5b96170 2022-09-23 | add support to execute new ycable API's, add datetime field to mux_info (sonic-net#297) (HEAD -> 202205) [vdahiya12]

platform-common:
* de1bd8e 2022-09-28 | Remove shell=True (sonic-net#313) (HEAD -> 202205) [Mai Bui]
* 77760bf 2022-09-23 | [credo][ycable] remove mux-toggle inprogress flags for some API's (sonic-net#311) [vdahiya12]

Signed-off-by: Ying Xie <[email protected]>

Signed-off-by: Ying Xie <[email protected]>
Junchao-Mellanox pushed a commit that referenced this pull request Jan 12, 2023
[202012][sonic-linkmgrd] submodule update

commit efee4d5b807887bae14c16a8a297756739fcc17e (HEAD -> 202012, upstream/202012)
Author: Jing Zhang <[email protected]>
Date:   Mon Oct 3 09:40:55 2022 -0700

    [Active-Standby] fix syslog flood caused by `unkown -> standby` switchovers  (#137)
    
    Description of PR
    Summary:
    Fixes # (issue)
    
    This is to fix the syslog flood issue caused by repeated switchovers from unknown to standby. The scenario trigged the issue was when xcvrd timed out toggles requests but was able to probe:
    Linkmgrd toggles to standby
    -> toggles fails, xcvrd writes unknown
    -> linkmgrd probes mux state
    -> xcvrd writes standby
    -> linkmgrd toggles to standby (previous mux state was unknown, switching to match)
    -> toggles fails, xcvrd writes unknown
    -> ... ...
    
    sign-off: Jing Zhang [email protected]

commit d4de3d31db6512b045c050533cd9e11a92522916
Author: Jing Zhang <[email protected]>
Date:   Tue Sep 27 10:36:59 2022 -0700

    [202012][Cherry-pick] Post switchover reasons to STATE DB (#138)

    Description of PR
    Summary:
    Fixes # (issue)

    Cherry-pick conflict:
    ea68e8c Jing Zhang Wed Sep 21 10:52:18 2022 -0700 Post switchover reasons to STATE DB (#131)
    a5a9f90 Hua Liu Fri Sep 16 09:54:32 2022 +0800 Install libyang to azure pipeline (#132)

    sign-off: Jing Zhang [email protected]
Junchao-Mellanox pushed a commit that referenced this pull request Jan 30, 2023
#### Why I did it

Update submodule for sonic-swss:

e739e6c - 2023-01-27 : custom advertised prefix for primary vxlan tunnel [202012]  (sonic-net#2641) [siqbal1986]

sonic-restapi:
99c467d - 2023-01-24 : Add API support for adv prefix and custom monitoring (#133) [Prince Sunny]
347684a - 2022-11-30 : Use github code scanning instead of LGTM (#132) [Liu Shilong]
Junchao-Mellanox pushed a commit that referenced this pull request Feb 15, 2023
Update sonic-py-swsssdk submodule pointer to include the following:
* c7411ff [azp] Support Semgrep ([#132](sonic-net/sonic-py-swsssdk#132))
* 6a281c8 Use github code scanning instead of LGTM ([#131](sonic-net/sonic-py-swsssdk#131))
* 0d73e48 Use github code scanning instead of ([#GT](https://github.com/sonic-net/sonic-py-swsssdk/pull/GT))

Signed-off-by: dprital <[email protected]>
Junchao-Mellanox pushed a commit that referenced this pull request Apr 17, 2023
Why I did it
[Submodule][202211] Advance sonic-restapi pointer

The branch 202012 has already updated to commit 47e4b53.

4f6f979 Fix the redis security issue CVE-2023-28858 and CVE-2023-28859 (#139)
47e4b53 Fix adv_pfx len for ipv6 (#135)
44121be Support ipv6 prefix lenght greater than 64 and check for adv_prefix (#134)
99c467d Add API support for adv prefix and custom monitoring (#133)
347684a Use github code scanning instead of LGTM (#132)
86543d0 Updates to route PATCH API (#129)
a1af82c Install libyang to azure pipeline (#128)
2007c4c Increase coverage threshold (#126)

Work item tracking
Microsoft ADO (number only): 17705422
How I did it
How to verify it
Junchao-Mellanox pushed a commit that referenced this pull request Jul 13, 2023
…lly (sonic-net#15520)

#### Why I did it
src/sonic-gnmi
```
*   01fe667 - (HEAD -> master, origin/master, origin/HEAD) Merge pull request #134 from FengPan-Frank/fenpan_dialout_rename (3 days ago) [Feng-msft]
|\  
| * 994c69c - Rename --enable-dialout option into ENABLE_DIALOUT to follow the convention. (3 days ago) [Feng Pan]
|/  
* a9126da - Update makefile to support armhf (#132) (3 days ago) [ganglv]
* 0d80c0d -  prevent potential panic: return immediately if there exists error (#113) (7 days ago) [Mai Bui]
*   3c0fca3 - Merge pull request #131 from FengPan-Frank/fenpan_dialout (7 days ago) [Feng-msft]
|\  
| * c3d3266 - Add build flag into gnmi as --enable-dialout. (8 days ago) [Feng Pan]
|/  
* fd78c42 - add semgrep (#126) (2 weeks ago) [Mai Bui]
* 214fa1c - TranslClient: Use new translib subscription APIs (#122) (3 weeks ago) [Sachin Holla]
* 87d8eb3 - (origin/202305) TranslClient: use PathValidator to sanitize the request paths (#112) (3 weeks ago) [Sachin Holla]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Junchao-Mellanox pushed a commit that referenced this pull request Oct 8, 2023
…lly (sonic-net#15776)

#### Why I did it
src/sonic-gnmi
```
* d1467d3 - (HEAD -> 202305, origin/202305) Update makefile to support armhf (#132) (#133) (5 days ago) [ganglv]
* 88ee65d - [202305] Checkout correct branch from sonic-mgmt-common and sonic-swss-common during pipeline build (#128) (5 days ago) [Sachin Holla]
* 87d8eb3 - TranslClient: use PathValidator to sanitize the request paths (#112) (4 weeks ago) [Sachin Holla]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Junchao-Mellanox pushed a commit that referenced this pull request May 10, 2024
…automatically (sonic-net#18746)

#### Why I did it
src/sonic-mgmt-framework
```
* 0a5962d - (HEAD -> master, origin/master, origin/HEAD) Bookworm migration for all dependency packages in azurepipeline for sonic-mgmt-framework (#132) (3 days ago) [amrutasali]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Junchao-Mellanox pushed a commit that referenced this pull request Jul 18, 2024
…utomatically (sonic-net#19415)

#### Why I did it
src/sonic-host-services
```
* 02d9b55 - (HEAD -> master, origin/master, origin/HEAD) Added support to render template format of `delayed` flag on Feature Table. (#135) (28 hours ago) [abdosi]
* 60fdfea - Fixed determine/process reboot-cause service dependency (sonic-net#17406) (#132) (13 days ago) [anamehra]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Junchao-Mellanox pushed a commit that referenced this pull request Aug 8, 2024
…utomatically (sonic-net#19551)

#### Why I did it
src/sonic-host-services
```
* aea0bef - (HEAD -> 202405, origin/202405) Ignore sonic_platform package fileNotFoundError on non-chassis vs platforms (#133) (#140) (4 minutes ago) [mssonicbld]
* 0e7e4d5 - Added support to render template format of `delayed` flag on Feature Table. (#135) (#137) (11 days ago) [mssonicbld]
* 235c2a4 - Fixed determine/process reboot-cause service dependency (sonic-net#17406) (#132) (13 days ago) [anamehra]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Junchao-Mellanox pushed a commit that referenced this pull request Mar 7, 2025
…atically (sonic-net#700)

#### Why I did it
src/sonic-utilities
```
* 8ff1b081 - (HEAD -> 202412, origin/202412) [code sync] Merge code from sonic-net/sonic-utilities:202411 to 202412 (#132) (21 hours ago) [mssonicbld]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Junchao-Mellanox pushed a commit that referenced this pull request Dec 3, 2025
…ically (sonic-net#24658)

#### Why I did it
src/sonic-dash-ha
```
* b38d8fb - (HEAD -> master, origin/master, origin/HEAD) Change to DBConnector::clone_timeout_async (#132) (2 days ago) [yue-fred-gao]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Junchao-Mellanox pushed a commit that referenced this pull request Mar 18, 2026
…ically (sonic-net#25742)

#### Why I did it
src/sonic-dash-ha
```
* 8f9893d - (HEAD -> 202511, origin/master, origin/HEAD, origin/202511, master) Create bfd sessions only to NPU participating ha-set (#143) (9 days ago) [yue-fred-gao]
* a6cf697 - update dash-api submodule (10 days ago) [Jing Zhang]
* 64022eb - Change convert_pb_to_json to parse proto encoded value from binary input (#142) (10 days ago) [yue-fred-gao]
* 53fb250 - [ci] fix build error and save binaries (#144) (11 days ago) [Jing Zhang]
* d01ed94 - Add .github/copilot-instructions.md for AI-assisted development (#140) (2 weeks ago) [rustiqly]
* 2b6b37c - Write DASH_DPU_RESET_INFO_TABLE when dpu midplane or control plane down (#137) (4 weeks ago) [yue-fred-gao]
* 9b3c0bf - Add bfd rewrite on pmon change. (#136) (4 weeks ago) [dypet]
* af44396 - [build] Disable debian helper auto install for cargo project. (#135) (5 weeks ago) [Liu Shilong]
* 17e2e0b - Implement bfd pinned state (#134) (5 weeks ago) [yue-fred-gao]
* c04969e - switch to using libboost1.83 (#133) (6 weeks ago) [yijingyan2]
* b38d8fb - Change to DBConnector::clone_timeout_async (#132) (3 months ago) [yue-fred-gao]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Junchao-Mellanox pushed a commit that referenced this pull request Mar 18, 2026
…02511

8f9893d (HEAD -> master, origin/master, origin/HEAD) Create bfd sessions only to NPU participating ha-set (#143)
a6cf697 update dash-api submodule
64022eb Change convert_pb_to_json to parse proto encoded value from binary input (#142)
53fb250 [ci] fix build error and save binaries  (#144)
d01ed94 Add .github/copilot-instructions.md for AI-assisted development (#140)
2b6b37c Write DASH_DPU_RESET_INFO_TABLE when dpu midplane or control plane down (#137)
9b3c0bf Add bfd rewrite on pmon change. (#136)
af44396 [build] Disable debian helper auto install for cargo project. (#135)
17e2e0b Implement bfd pinned state (#134)
c04969e switch to using libboost1.83 (#133)
b38d8fb Change to DBConnector::clone_timeout_async (#132)

sign-off: Jing Zhang [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants