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

stop looping on failure to read from syncd #944

Closed

Conversation

renukamanavalan
Copy link
Contributor

  1. if SAI API fails to fetchport info, break from querying for other ports, as most likely they fail too.
  2. crmorch, has a bug of two objects claiming ownership of memory, which leads to double delete during exit.
    Let the base class own and, crmorch does not own.

What I did

Why I did it

How I verified it

Details if related

1) if SAI API fails to fetchport info, break from querying for other ports, as most likely they fail too.
2) crmorch, has a bug of two objects claiming ownership of memory, which leads to double delete during exit.
   Let the base class own and, crmorch does not own.
orchagent/crmorch.cpp Outdated Show resolved Hide resolved
orchagent/crmorch.h Outdated Show resolved Hide resolved
Copy link
Contributor

@qiluo-msft qiluo-msft left a comment

Choose a reason for hiding this comment

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

As commented.

…ster.

The other change (drop redundant timer set) is required in master too. So do it there and cherry pick into March.
@renukamanavalan renukamanavalan changed the title fix double_delete & stop looping on failure with syncd stop looping on failure to read from syncd Jun 19, 2019
@lguohan
Copy link
Contributor

lguohan commented Jun 20, 2019

retest this please

@renukamanavalan
Copy link
Contributor Author

This may be not needed. Because w/o syncd, orchagent is of no value. So saving time in a loop or not, does not make any difference. The TSG for syncd down is to restart swss, which will restart orchagent.

Plan to drop this PR.

@qiluo-msft qiluo-msft closed this Jun 21, 2019
@renukamanavalan renukamanavalan deleted the double_delete branch June 22, 2019 00:12
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
When restarting services, don't attempt to restart a service if it is disabled/masked or the `systemctl restart` command will fail, causing the calling command (e.g., `config load`, `config reload`, `config load_minigraph`) to error out.
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
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