Commit 4a32b5a
authored
[y-cable] fix for logging the xcvrd metrics before writing the state to the State-DB (#208)
fix for logging the xcvrd metrics before writing the state back to the
STATE DB
Description
This PR fixes the logging for mux_metrics for writing anything to the state DB for a state transition. Basically previously xcvrd would first post the query result to the DB and only then update its own metric for state transition, but now we do the reverse.
Motivation and Context
Second change was motivated by the sequence of events which happen inside state transition for mux-metrics table. Previously orchagent reports finishing the transition before xcvrd which is not the case. Ideally xcvrd does the transition first followed by orchagent followed by linkmgr
How Has This Been Tested?
Ran the change on Arista7050cx3 testbed.
Additional Information (Optional)
Signed-off-by: vaibhav-dahiya <[email protected]>1 parent 53e1532 commit 4a32b5a
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1102 | 1102 | | |
1103 | 1103 | | |
1104 | 1104 | | |
1105 | | - | |
1106 | | - | |
1107 | | - | |
1108 | | - | |
1109 | 1105 | | |
1110 | 1106 | | |
1111 | 1107 | | |
1112 | 1108 | | |
1113 | 1109 | | |
1114 | 1110 | | |
1115 | 1111 | | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
1116 | 1117 | | |
1117 | 1118 | | |
1118 | 1119 | | |
| |||
0 commit comments