Skip to content

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

Open
mihirpat1 wants to merge 1 commit intosonic-net:masterfrom
mihirpat1:appl_db_del
Open

Delete PROC_INFO table in APPL_DB using DEL command during non warm-reboot scenario#15453
mihirpat1 wants to merge 1 commit intosonic-net:masterfrom
mihirpat1:appl_db_del

Conversation

@mihirpat1
Copy link
Copy Markdown
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)

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