[orchagent] Set ABRT signal in STATE_DB during a SAI failure#2556
[orchagent] Set ABRT signal in STATE_DB during a SAI failure#2556vivekrnv wants to merge 18 commits intosonic-net:masterfrom
Conversation
Signed-off-by: Vivek Reddy Karri <[email protected]>
Signed-off-by: Vivek Reddy Karri <[email protected]>
Signed-off-by: Vivek Reddy Karri <[email protected]>
Signed-off-by: Vivek Reddy Karri <[email protected]>
Signed-off-by: Vivek Reddy Karri <[email protected]>
Signed-off-by: Vivek Reddy Karri <[email protected]>
Signed-off-by: Vivek Reddy Karri <[email protected]>
Signed-off-by: Vivek Reddy Karri <[email protected]>
Signed-off-by: Vivek Reddy Karri <[email protected]>
Signed-off-by: Vivek Reddy Karri <[email protected]>
Signed-off-by: Vivek Reddy Karri <[email protected]>
Signed-off-by: Vivek Reddy Karri <[email protected]>
|
/azpw run Azure.sonic-swss |
|
/AzurePipelines run Azure.sonic-swss |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| DBConnector state_db("STATE_DB", 0); | ||
|
|
||
| /* Clears the ORCH_ABORT_STATUS flag in STATE_DB */ | ||
| state_db.del(ORCH_ABRT); |
There was a problem hiding this comment.
suggest have flush table at common place - https://github.com/sonic-net/sonic-buildimage/blob/master/files/scripts/swss.sh#L177
There was a problem hiding this comment.
That can be done, but clearing it here gives more time buffer to the processes dependent on this flag.
| extern bool gLogRotate; | ||
| extern string gRecordFile; | ||
|
|
||
| void notifyAbort(){ |
There was a problem hiding this comment.
API name is not aligned to the functionality. This is doing both notify and abort. API gives the indication that it is only notification. Please move abort to original code and use it only to notify or change the name to say notifyAndAbort
Signed-off-by: Vivek Reddy Karri <[email protected]>
Signed-off-by: Vivek Reddy Karri <[email protected]>
|
/azpw run Azure.sonic-swss |
|
/AzurePipelines run Azure.sonic-swss |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw run Azure.sonic-swss |
|
/AzurePipelines run Azure.sonic-swss |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw run Azure.sonic-swss |
|
/AzurePipelines run Azure.sonic-swss |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Vivek Reddy Karri [email protected]
What I did
Why I did it
How I verified it
Simulate a SAI failure:
Check if STATE_DB is updated and cleared once the orchagent is restarted
Details if related