Skip to content

Implement RCM code#202

Open
niranjanivivek wants to merge 1 commit intosonic-net:masterfrom
niranjanivivek:rcm_pr_be
Open

Implement RCM code#202
niranjanivivek wants to merge 1 commit intosonic-net:masterfrom
niranjanivivek:rcm_pr_be

Conversation

@niranjanivivek
Copy link
Contributor

@niranjanivivek niranjanivivek commented Jan 13, 2026

Implement the code using Redis connection pools to connect to Redis from within sonic-mgmt-common.
The idea is Redis Clients with a connection pool must be reused, instead of creating a new Redis Client each time.,

HLD Reference: HLD

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@niranjanivivek
Copy link
Contributor Author

@sreeiyer-1 Please review and provide feedback

@niranjanivivek
Copy link
Contributor Author

Hi @ndas7 and @rlucus , @kishanps Please review .

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@niranjanivivek
Copy link
Contributor Author

@sreeiyer-1, @jayaragini-hcl Please review.

@niranjanivivek
Copy link
Contributor Author

Hi @ndas7 and @rlucus , @kishanps Please review .

SnmpDB // 7
ErrorDB // 8
EventDB // 9
ApplStateDB DBNum = 14 // 14
Copy link
Contributor

Choose a reason for hiding this comment

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

ApplStateDB is not needed, please remove this and its instances

// match the given pattern if the table is only supposed to be read from the cache.
// Otherwise, GetKeysPattern is called. This is used to serve OnChange subscriptions using the state
// of the OnChange cache without allowing cache updates from transformers.
func (d *DB) GetKeysPatternWithOnChangeCache(ts *TableSpec, pat Key) ([]Key, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not used, please remove

glog.Info("CommitTx: Begin:")
}

func doDels(txCmds []_txCmd, tsmap map[TableSpec]bool, d *DB) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

These functions are unrelated to the change, please only keep relevant changes


// For each cmd in txCmds
// Invoke it
func doRemainingOps(txCmds []_txCmd, tsmap map[TableSpec]bool, d *DB) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above - These functions are unrelated to the change, please only keep relevant changes

goto CommitTxDiscard
}

// Pass through txCmds twice, processing table deletes on the first pass.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not needed

Signed-off-by: Niranjani Vivek <niranjaniv@google.com>
@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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