Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Fix filter match logic, be strict about IP addresses#1318

Merged
shlomi-noach merged 4 commits intomasterfrom
ignore-hostame-ip-regexp
Mar 7, 2021
Merged

Fix filter match logic, be strict about IP addresses#1318
shlomi-noach merged 4 commits intomasterfrom
ignore-hostame-ip-regexp

Conversation

@shlomi-noach
Copy link
Collaborator

@shlomi-noach shlomi-noach commented Mar 4, 2021

Fixes #1316

Description

This PR normalizes all hostname filters matching logic, as follows:

  • filter can be an IP address, in which case it must exactly match instance hostname
  • or it can be any other value, in which case it is treated as a regexp.

This applies to:

  • DiscoveryIgnoreHostnameFilters
  • DiscoveryIgnoreMasterHostnameFilters
  • DiscoveryIgnoreReplicaHostnameFilters
  • OSCIgnoreHostnameFilters
  • ProblemIgnoreHostnameFilters
  • PromotionIgnoreHostnameFilters

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
@shlomi-noach shlomi-noach merged commit c9215e7 into master Mar 7, 2021
@shlomi-noach shlomi-noach deleted the ignore-hostame-ip-regexp branch March 7, 2021 08:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

topology_recovery: Failure: no replica promoted

1 participant