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

[gbsyncd] Add asic db prefix for channel NOTIFICATIONS #1129

Merged
merged 5 commits into from
Oct 21, 2022

Conversation

jimmyzhai
Copy link
Contributor

@jimmyzhai jimmyzhai commented Sep 19, 2022

Fix #1131.

The communication channel between orchagent and gbsyncd needs different from the channel "NOTIFICATIONS" between orchagent and syncd.

/**
* @brief Table which will be used to forward notifications from gbsyncd.
*/
#define REDIS_TABLE_GBNOTIFICATIONS "GBNOTIFICATIONS"
Copy link
Collaborator

Choose a reason for hiding this comment

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

why GB needs different communication channel? channels are based on databases, for example ASIC_DB, so if GB will have different database then it will have separate communication channel for notifications and they will not colide

Copy link
Collaborator

@kcudnik kcudnik Sep 19, 2022

Choose a reason for hiding this comment

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

also this could be generalizaed by chaning notifications channel name by prefixing it by db name
for example dbAsic + REDIS_TABLE_NOTIFICATIONS, then it would be more generic, and i think this would be proffered way to make this change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The redis channel is global per instance. Do you prefer to the below?

#define REDIS_GB_ASIC_NOTIFICATIONS "GB_ASIC_NOTIFICATIONS"

"NOTIFICATIONS" has been widely referred as asic channel. I'll not rename it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

i think more preffered way would be to use that asic db prefix

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add REDIS_TABLE_NOTIFICATIONS_PER_DB(dbName)

@jimmyzhai jimmyzhai changed the title [gbsyncd] Use channelName GBNOTIFICATIONS for gbsyncd [gbsyncd] Add asic db prefix for channel NOTIFICATIONS Oct 18, 2022
kcudnik
kcudnik previously approved these changes Oct 18, 2022
@jimmyzhai
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jimmyzhai jimmyzhai merged commit b7c85ca into sonic-net:master Oct 21, 2022
yxieca pushed a commit that referenced this pull request Oct 25, 2022
Fix #1131. The communication channel between orchagent and gbsyncd needs different from
the channel "NOTIFICATIONS" between orchagent and syncd.
jimmyzhai added a commit to sonic-net/sonic-buildimage that referenced this pull request Oct 26, 2022
2022-10-21 b7c85ca: [gbsyncd] Add asic db prefix for channel NOTIFICATIONS (sonic-net/sonic-sairedis#1129) (Junhua Zhai)
richardyu-ms pushed a commit to richardyu-ms/sonic-sairedis that referenced this pull request Nov 15, 2022
Fix sonic-net#1131. The communication channel between orchagent and gbsyncd needs different from
the channel "NOTIFICATIONS" between orchagent and syncd.
richardyu-ms pushed a commit that referenced this pull request Nov 16, 2022
Fix #1131. The communication channel between orchagent and gbsyncd needs different from
the channel "NOTIFICATIONS" between orchagent and syncd.
pettershao-ragilenetworks pushed a commit to pettershao-ragilenetworks/sonic-sairedis that referenced this pull request Nov 18, 2022
Fix sonic-net#1131. The communication channel between orchagent and gbsyncd needs different from
the channel "NOTIFICATIONS" between orchagent and syncd.
skbarista pushed a commit to skbarista/sonic-sairedis that referenced this pull request Dec 2, 2022
Fix sonic-net#1131. The communication channel between orchagent and gbsyncd needs different from
the channel "NOTIFICATIONS" between orchagent and syncd.
@jimmyzhai jimmyzhai deleted the gbsyncd branch October 9, 2023 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PikeZ] ERR syslog message SAI_STATUS_INVALID_PARAMETER
4 participants