Skip to content
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

Delete PROC_INFO table in APPL_DB using DEL command during non warm-reboot scenario #15453

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mihirpat1
Copy link
Contributor

@mihirpat1 mihirpat1 commented Jun 13, 2023

This fix is needed for sonic-net/sonic-platform-daemons/pull/377 to work in scenarios requiring OA to restart

Why I did it

It seems that currently, APPL_DB is deleted using FLUSH command during OA crash, config reload handling. This causes the subscriber XCVRD process to not receive any notification when any entry from the APPL_DB is removed.

This task is to ensure that SWSS deleted the PROC_INFO table by invoking "DEL" command so that xcvrd takes the relevant action upon receiving this event during OA crash/restart scenarios.

Work item tracking
  • Microsoft ADO (number only):
    24264739

How I did it

Calling clean_up_tables to delete PROC_INFO table. Deleting remaining entries in APPL_DB using the existing FLUSH command.

How to verify it

Please refer to the test summary attached to sonic-net/sonic-platform-daemons/pull/377.

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

…eboot scenario

Signed-off-by: Mihir Patel <patelmi@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant