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

Rework consul discovery logic #35

Conversation

Alterrien
Copy link

  • Discovery behavior matches the native zookeeper HA hive setup of selecting only one Hive instance for the whole hue instance
  • Consul logic is integrated into get_query_server_config instead of trying to update the hive host/port at the last moment
  • Fix duplicated imports

This change brings the get() function to be the same as the upstream/cloudera version.
What changes are made to get_query_server_config() are new branches in conditional statements, and does not modify any lines existing in the upstream. This should result in a diff between upstream and our fork that consists entirely in added lines

- Discovery behavior matches the native zookeeper HA hive setup of
  selecting only one Hive instance for the whole hue instance
- Consul logic is integrated into get_query_server_config instead
  of trying to update the hive host/port at the last moment
- Fix duplicated imports
Copy link

@macamat macamat left a comment

Choose a reason for hiding this comment

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

Looks good to me

@Alterrien Alterrien merged commit 5dccd2f into criteo-forks:release-4.11.0-criteo Feb 6, 2025
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.

3 participants