Skip to content

Bump sleep to 5 seconds for DB config file generation#1944

Merged
yejianquan merged 1 commit intoAzure:202405from
cyw233:bump-db-config-file-wait-time-202405
Jan 20, 2026
Merged

Bump sleep to 5 seconds for DB config file generation#1944
yejianquan merged 1 commit intoAzure:202405from
cyw233:bump-db-config-file-wait-time-202405

Conversation

@cyw233
Copy link

@cyw233 cyw233 commented Jan 19, 2026

Increased delay to ensure database_config.json files are accessible.

Why I did it

Currently, we are getting the following error syslog on the devices that have slow performance NPU:

2026-01-15T22:04:54.011303+00:00 sonic sonic-db-cli: :- parseDatabaseConfig: Sonic database config file syntax error >> [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal 
2026-01-15T22:04:54.011303+00:00 sonic sonic-db-cli: :- parseDatabaseConfig: Sonic database config file syntax error >> [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal
2026-01-15T22:04:54.011570+00:00 sonic sonic-db-cli: :- initializeGlobalConfig: Sonic database config file syntax error >> Sonic database config file syntax error >> [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal
2026-01-15T22:04:54.011785+00:00 sonic database.sh[12147]: An exception of type Sonic database config file syntax error >> Sonic database config file syntax error >> [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal occurred. Arguments: 
2026-01-15T22:04:54.011980+00:00 sonic database.sh[12147]: sonic-db-cli -n asic8 PING
...

This is because the device needs more time to get all the database_config.json files to be ready. Therefore, we decided to bump the sleep time to 5 seconds.

Work item tracking
  • Microsoft ADO (number only): 36433179

How I did it

How to verify it

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

  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

Increased delay to ensure database_config.json files are fully generated.
@cyw233 cyw233 changed the base branch from master to 202405 January 19, 2026 03:33
@cyw233 cyw233 changed the title Bump db config file wait time 202405 Bump sleep to 5 seconds for DB config file generation Jan 20, 2026
@yejianquan yejianquan merged commit 51130cd into Azure:202405 Jan 20, 2026
3 checks passed
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.

4 participants