-
Notifications
You must be signed in to change notification settings - Fork 270
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
[syncd] Fix bulk multi attrs for same key db update #761
Conversation
syncd/Syncd.cpp
Outdated
if (api == SAI_COMMON_API_BULK_SET) | ||
{ | ||
// in case of bulk set operation, it can happen that multiple | ||
// attributes will be set for the same key, then wehen we want to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wehen -> when
wonder if you add more description on the commit? |
done |
retest vs please |
@lguohan should all vs tests pass? in previous PR you mentioned that 4 tests are fine ? |
yes, if you see 4 tests failing, then it means this pr is ok. the four failed test cases are known issue. |
retest this please |
merging, since expected 4 tests failed |
issue was related to bulk set operation, when multiple attributes were set for the same key, in this case bug was causing that only last attribute was actually written to database and previous ones were skipped
attributes will be set for the same key, then when we want to, push them to redis database, we need to combine all attributes, to a single vector of attributes
issue was related to bulk set operation, when multiple attributes were set for the same key, in this case bug was causing that only last attribute was actually written to database and previous ones were skipped