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

Support async DB update for both ZMQ producer&consumer table. #821

Merged
merged 6 commits into from
Oct 12, 2023

Conversation

liuh-80
Copy link
Contributor

@liuh-80 liuh-80 commented Sep 27, 2023

Why I did it

Some scenarios require sonic-gnmi side update data to APPL_DB.

How I did it

Move async DB update code to AsyncDBUpdater.
Reuse AsyncDBUpdater in both ZmqProducerStateTable and ZmqConsumerStateTable

How to verify it

Pass all UT and E2E test cases.
Add new UT.

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Support async DB update for both ZMQ producer&consumer table.

Link to config_db schema for YANG module changes

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

@liuh-80 liuh-80 marked this pull request as ready for review September 27, 2023 11:08
@liuh-80 liuh-80 requested a review from qiluo-msft September 27, 2023 11:08
@qiluo-msft qiluo-msft requested a review from Pterosaur October 2, 2023 23:41
@qiluo-msft qiluo-msft requested a review from prsunny October 3, 2023 00:14
#include "selectableevent.h"
#include "table.h"
#include "zmqserver.h"

#define MQ_RESPONSE_MAX_COUNT (4*1024*1024)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This MACRO has been defined in asyncdbupdater.h, why redefine it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, remove these dupe macro

@liuh-80 liuh-80 merged commit 1c18502 into sonic-net:master Oct 12, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants