Skip to content

Add ConfigDB Journal#569

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

Add ConfigDB Journal#569
niranjanivivek wants to merge 1 commit intosonic-net:masterfrom
niranjanivivek:pr_fe_config_db_journal

Conversation

@niranjanivivek
Copy link
Contributor

@niranjanivivek niranjanivivek commented Feb 3, 2026

Add ConfigDB Journal Feature. The ConfigDB Journal would capture writes to the database in a file on the switch.

Dependency PR:
Base BE PR to be merged first : Implement RCM - PR#202

UT Test results for Config DB Journal:

=== RUN TestNewDbJournal
=== RUN TestNewDbJournal/Success
=== RUN TestNewDbJournal/InvalidDb
--- PASS: TestNewDbJournal (0.00s)
--- PASS: TestNewDbJournal/Success (0.00s)
--- PASS: TestNewDbJournal/InvalidDb (0.00s)
=== RUN TestDbJournalInit
=== RUN TestDbJournalInit/Success
=== RUN TestDbJournalInit/NilRedisClient
--- PASS: TestDbJournalInit (0.00s)
--- PASS: TestDbJournalInit/Success (0.00s)
--- PASS: TestDbJournalInit/NilRedisClient (0.00s)
=== RUN TestDbJournalUpdateCache
=== RUN TestDbJournalUpdateCache/SuccessHSet
=== RUN TestDbJournalUpdateCache/SuccessDel
=== RUN TestDbJournalUpdateCache/NilCache
=== RUN TestDbJournalUpdateCache/NilRedisClient
--- PASS: TestDbJournalUpdateCache (0.00s)
--- PASS: TestDbJournalUpdateCache/SuccessHSet (0.00s)
--- PASS: TestDbJournalUpdateCache/SuccessDel (0.00s)
--- PASS: TestDbJournalUpdateCache/NilCache (0.00s)
--- PASS: TestDbJournalUpdateCache/NilRedisClient (0.00s)
=== RUN TestDbJournalRotateFile
--- PASS: TestDbJournalRotateFile (3.46s)

=== RUN TestConfigDbJournal
=== RUN TestConfigDbJournal/HSetNew
=== RUN TestConfigDbJournal/HSetExisting
=== RUN TestConfigDbJournal/HDel
=== RUN TestConfigDbJournal/Set
=== RUN TestConfigDbJournal/Del
--- PASS: TestConfigDbJournal (5.90s)
--- PASS: TestConfigDbJournal/HSetNew (0.50s)
--- PASS: TestConfigDbJournal/HSetExisting (0.50s)
--- PASS: TestConfigDbJournal/HDel (0.50s)
--- PASS: TestConfigDbJournal/Set (0.50s)
--- PASS: TestConfigDbJournal/Del (0.50s)

Why I did it

How I did it

How to verify it

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

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

Description for the changelog

Link to config_db schema for YANG module changes

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

@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@niranjanivivek niranjanivivek force-pushed the pr_fe_config_db_journal branch from 4a7c62f to 3e52738 Compare February 3, 2026 09:13
@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@niranjanivivek
Copy link
Contributor Author

@sreeiyer-1, Please review.

@niranjanivivek niranjanivivek marked this pull request as ready for review February 3, 2026 11:37
@niranjanivivek
Copy link
Contributor Author

Hello @ndas7 , @rlucus , @kishanps . Please review

@niranjanivivek niranjanivivek marked this pull request as draft February 4, 2026 05:33
@niranjanivivek niranjanivivek force-pushed the pr_fe_config_db_journal branch from 3e52738 to 27b0f0b Compare February 4, 2026 12:24
@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@niranjanivivek niranjanivivek force-pushed the pr_fe_config_db_journal branch from 27b0f0b to 07d2881 Compare February 11, 2026 13:32
@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@niranjanivivek niranjanivivek force-pushed the pr_fe_config_db_journal branch from 07d2881 to 8786339 Compare February 12, 2026 10:41
@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@niranjanivivek niranjanivivek force-pushed the pr_fe_config_db_journal branch from 8786339 to 5f9018d Compare February 12, 2026 12:00
@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@niranjanivivek niranjanivivek marked this pull request as ready for review February 12, 2026 17:40
@niranjanivivek niranjanivivek force-pushed the pr_fe_config_db_journal branch from 5f9018d to 752f1d0 Compare February 19, 2026 06:57
@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@niranjanivivek
Copy link
Contributor Author

@ndas7 @rlucus Please review the same.

@niranjanivivek niranjanivivek force-pushed the pr_fe_config_db_journal branch from 752f1d0 to 5bb3fd6 Compare February 27, 2026 02:58
@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@niranjanivivek niranjanivivek force-pushed the pr_fe_config_db_journal branch from 5bb3fd6 to 1425aa7 Compare March 9, 2026 09:35
@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@niranjanivivek niranjanivivek force-pushed the pr_fe_config_db_journal branch from 1425aa7 to d0ab6cd Compare March 10, 2026 01:37
@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@niranjanivivek niranjanivivek force-pushed the pr_fe_config_db_journal branch from d0ab6cd to d57809e Compare March 13, 2026 06:38
@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@niranjanivivek niranjanivivek force-pushed the pr_fe_config_db_journal branch from d57809e to d46ab5c Compare March 13, 2026 09:58
@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@niranjanivivek niranjanivivek force-pushed the pr_fe_config_db_journal branch from d46ab5c to de3ff9c Compare March 13, 2026 12:06
@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@niranjanivivek niranjanivivek force-pushed the pr_fe_config_db_journal branch from de3ff9c to 8ebe484 Compare March 13, 2026 12:16
@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Niranjani Vivek <niranjaniv@google.com>
@niranjanivivek niranjanivivek force-pushed the pr_fe_config_db_journal branch from 8ebe484 to 66aef68 Compare March 13, 2026 18:11
@mssonicbld
Copy link
Contributor

/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