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

Always enforce checking all indexes #263

Merged
merged 1 commit into from
Nov 6, 2021

Conversation

trozet
Copy link
Contributor

@trozet trozet commented Nov 5, 2021

There can be a case with ovsdb-server where we receive multiple creates
in a row for an object that has different UUIDs, but the same named
index. An example of this was seen with OVN and logical router ports,
where we received a create for two of the same named ports. In this case
the create should fail, and we should reconnect and reinitialize the
cache.

On the client side, we should always validate the cache population is
legit, and if not, reconnect and try to re-init the cache.

Signed-off-by: Tim Rozet trozet@redhat.com

There can be a case with ovsdb-server where we receive multiple creates
in a row for an object that has different UUIDs, but the same named
index. An example of this was seen with OVN and logical router ports,
where we received a create for two of the same named ports. In this case
the create should fail, and we should reconnect and reinitialize the
cache.

On the client side, we should always validate the cache population is
legit, and if not, reconnect and try to re-init the cache.

Signed-off-by: Tim Rozet <trozet@redhat.com>
@trozet
Copy link
Contributor Author

trozet commented Nov 5, 2021

@dave-tucker PTAL

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1427588511

  • 12 of 12 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 72.855%

Totals Coverage Status
Change from base Build 1426733768: 0.03%
Covered Lines: 4203
Relevant Lines: 5769

💛 - Coveralls

Copy link
Collaborator

@dave-tucker dave-tucker left a comment

Choose a reason for hiding this comment

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

LGTM

@dave-tucker dave-tucker merged commit bd92edf into ovn-org:main Nov 6, 2021
@dave-tucker dave-tucker added the fix label Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants