Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Queue stat unavailable error seen during SNMP service start (soni…
…c-net#238) - What I did Ideally SNMP service starts only after swss/syncd comes up. But due to timing of bring up, It could happen that SNMP is trying to retrieve queue stat counter before it is update by syncd. This is only seen once when the SNMP service comes up, as from the next iteration, syncd has updated the queue stats and it is available for SNMP to use. ERR snmp#snmp-subagent [sonic_ax_impl] ERROR: No queue stat counters found in the Counter DB. SyncD database is incoherent. This message is seen only once in all the cases observed, which means that once the counters are populated, snmp is able to retrieve the counters. - How I did it If counters are not found, return empty dicts since SNMP is just supposed to collect data and provide the data it has. - How to verify it Added unit-test. If counters_db is not update, querying the QueueStats MIB should not return any output.
- Loading branch information