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

Switch to warning in case of resource origin clash. #10947

Merged
merged 2 commits into from
Mar 8, 2022

Conversation

Tener
Copy link
Contributor

@Tener Tener commented Mar 8, 2022

It is possible to have a resource from different origins:

  • static (apps, dbs)
  • dynamic (apps, dbs)
  • cloud (dbs)

(Note: currently desktops can only be dynamic AFAICT, sourced from LDAP)

Currently in this situation we ignore the clash and only issue a debug-level log message. This PR changes that to warning to make it easier to diagnose scenarios such as:

  • dynamic app fails to show up on as static app takes precedence
  • dynamic/cloud db fails to show up on as static db takes precedence
  • one dynamic db and one cloud db show up randomly depending on which wins the data race to be the first in the node cache.

Fixes #10797.

@Tener Tener requested review from zmb3 and r0mant March 8, 2022 11:55
@Tener Tener added application-access database-access Database access related issues and PRs desktop-access error-msg Improving customer facing error messages. labels Mar 8, 2022
Copy link
Contributor

@greedy52 greedy52 left a comment

Choose a reason for hiding this comment

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

Do we have preferences when there is a conflict?

@Tener
Copy link
Contributor Author

Tener commented Mar 8, 2022

Do we have preferences when there is a conflict?

Right now it is "whatever was there first, wins". With respect to static resources, this is at least consistent because those are always there first. This gets trickier for dbs with their dynamic and cloud origins. To have consistent behaviour we would have to extend Reconcliler with a concept of origin priorities.

@Tener Tener merged commit c0205a7 into master Mar 8, 2022
@Tener Tener deleted the tener/10797_warn_on_ignored_resource branch March 8, 2022 14:38
@webvictim webvictim mentioned this pull request Apr 19, 2022
@webvictim webvictim mentioned this pull request Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
application-access database-access Database access related issues and PRs desktop-access error-msg Improving customer facing error messages.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dynamic apps with conflicting names are (nearly) silently ignored
4 participants