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

Added batched APIs in ProducerStateTable. #588

Merged
merged 2 commits into from
Apr 14, 2022

Conversation

mint570
Copy link
Contributor

@mint570 mint570 commented Mar 17, 2022

swss-common: Added batched APIs in ProducerStateTable.
HLD: sonic-net/SONiC#959

Signed-off-by: Runming Wu runmingwu@gmail.com

@mint570
Copy link
Contributor Author

mint570 commented Mar 24, 2022

@qiluo-msft
@prsunny

@@ -36,6 +36,17 @@ class ProducerStateTable : public TableBase, public TableName_KeySet
%}
#endif

// Batched version of set() and del(), for Google usage only.
// The batched methods are not virtual. They don't include (or use) op and
// prefix. They are written for specific use case only.
Copy link
Contributor

@qiluo-msft qiluo-msft Mar 28, 2022

Choose a reason for hiding this comment

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

If you want to add new feature in this repo, it must be implemented for all use cases. This one need cover op and prefix if technically possible. #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops. I need to remove that comment.
In the existing set() and del() API, those arguments are not used. The functions have the arguments but the implementation doesn't use them at all. That's why we remove those arguments in the batched version.
Please comment on how the batched version API should look like. We can add those arguments and not use them in implementation like the existing APIs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I deleted the Google specific comments. PTAL.

qiluo-msft
qiluo-msft previously approved these changes Apr 5, 2022
@qiluo-msft
Copy link
Contributor

qiluo-msft commented Apr 5, 2022

Could you merge latest master? The build issue should be fixed.


In reply to: 1089413051

Change-Id: Iaca58772659f5e639513b2a49c0cd639b4ba3c1b
@mint570
Copy link
Contributor Author

mint570 commented Apr 7, 2022

Could you merge latest master? The build issue should be fixed.

Need to make some change for #568.
Should be good now.
Please re-approve after the test finishes.
Thanks.

Change-Id: Ia50f92bb42abb8f7fd94390bcfb7cb4e3ca8b07d
@mint570
Copy link
Contributor Author

mint570 commented Apr 8, 2022

@qiluo-msft
The test finished, but the vstest failed.
I am not sure if the failure if related to this change or not. It shouldn't be as the new API is not used anywhere.

@mint570
Copy link
Contributor Author

mint570 commented Apr 8, 2022

@qiluo-msft
Thanks for your approval. The vs test didn't run after you approved.
This pr should be good to merge.

@mint570
Copy link
Contributor Author

mint570 commented Apr 14, 2022

@qiluo-msft
Hi Qi, can we merge this pr now if it looks good? Thanks.

@qiluo-msft qiluo-msft merged commit 372b98c into sonic-net:master Apr 14, 2022
@mint570 mint570 deleted the batched_api branch April 18, 2022 23:00
itamar-talmon pushed a commit to itamar-talmon/sonic-swss-common that referenced this pull request Jul 19, 2022
swss-common: Added batched APIs in ProducerStateTable.
HLD: sonic-net/SONiC#959
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.

2 participants