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

[orchagent] Flush pipeline every 1 second, not only when select will timeout #2003

Merged
merged 3 commits into from
Nov 16, 2021

Conversation

kcudnik
Copy link
Contributor

@kcudnik kcudnik commented Nov 3, 2021

What I did
Added flush for async communication pipeline, every 1 second, not only if select will timeout.
Why I did it
pfcwdorch has a executor timeout which triggers select every second, and somehow from some time select never timeouts (its timeout is also 1 second) and every time is returning valid object, not causing async pipeline to flush, which causes for some operations to wait for next synchronous operation to be processed.
How I verified it
Tested thanks to @shi-su
Details if related

@kcudnik
Copy link
Contributor Author

kcudnik commented Nov 3, 2021

i actually don't like much this solution, so if you have any other one in mind, let me know

@kcudnik
Copy link
Contributor Author

kcudnik commented Nov 15, 2021

@prsunny hey, are you OK to merge this despite of failing tests ? each time is different set

@prsunny
Copy link
Collaborator

prsunny commented Nov 15, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kcudnik
Copy link
Contributor Author

kcudnik commented Nov 16, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny prsunny merged commit 0c46242 into sonic-net:master Nov 16, 2021
@kcudnik kcudnik deleted the flushtime branch November 22, 2021 14:42
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
#### What I did
Show the default enum for the option `--format`

#### How I did it
Added `show_default=True`

#### How to verify it
Checkout output below

#### Previous command output (if the output of a command-line utility has changed)
```bash
admin@vlab-01:~$ sudo config apply-patch -h
Usage: config apply-patch [OPTIONS] PATCH_FILE_PATH

  Apply given patch of updates to Config. A patch is a JsonPatch which
  follows rfc6902. This command can be used do partial updates to the config
  with minimum disruption to running processes. It allows addition as well
  as deletion of configs. The patch file represents a diff of ConfigDb(ABNF)
  format or SonicYang format.

  <patch-file-path>: Path to the patch file on the file-system.

Options:
  -f, --format [CONFIGDB|SONICYANG]
                                  format of config of the patch is either
                                  ConfigDb(ABNF) or SonicYang
  -d, --dry-run                   test out the command without affecting
                                  config state
  -v, --verbose                   print additional details of what the
                                  operation is doing
  -h, -?, --help                  Show this message and exit.
admin@vlab-01:~$ 
```

#### New command output (if the output of a command-line utility has changed)
```sh
admin@vlab-01:~$ sudo config apply-patch -h
Usage: config apply-patch [OPTIONS] PATCH_FILE_PATH

  Apply given patch of updates to Config. A patch is a JsonPatch which
  follows rfc6902. This command can be used do partial updates to the config
  with minimum disruption to running processes. It allows addition as well
  as deletion of configs. The patch file represents a diff of ConfigDb(ABNF)
  format or SonicYang format.

  <patch-file-path>: Path to the patch file on the file-system.

Options:
  -f, --format [CONFIGDB|SONICYANG]
                                  format of config of the patch is either
                                  ConfigDb(ABNF) or SonicYang  [default:
                                  CONFIGDB]
  -d, --dry-run                   test out the command without affecting
                                  config state
  -v, --verbose                   print additional details of what the
                                  operation is doing
  -h, -?, --help                  Show this message and exit.
admin@vlab-01:~$ 
```
qiluo-msft pushed a commit that referenced this pull request Jun 14, 2022
…timeout (#2003)

* Added flush for async communication pipeline, every 1 second, not only if select will timeout.
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.

6 participants