Skip to content

aurora: Detect blue/green deployment switchovers via DNS mismatch - #5802

Open
tabacco wants to merge 2 commits into
sysown:v3.0from
tabacco:add-aurora-bg-support
Open

aurora: Detect blue/green deployment switchovers via DNS mismatch#5802
tabacco wants to merge 2 commits into
sysown:v3.0from
tabacco:add-aurora-bg-support

test: Add unit tests for Aurora blue/green switchover detection

b4bbbb1
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed May 26, 2026 in 10m 15s

Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 45 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3k&open=AZ5M90OhtpWkLOZBHp3k&pullRequest=5802

Check warning on line 60 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3p&open=AZ5M90OhtpWkLOZBHp3p&pullRequest=5802

Check warning on line 72 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3r&open=AZ5M90OhtpWkLOZBHp3r&pullRequest=5802

Check warning on line 82 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5NBWHjKEY278Pu-_a8&open=AZ5NBWHjKEY278Pu-_a8&pullRequest=5802

Check warning on line 34 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3i&open=AZ5M90OhtpWkLOZBHp3i&pullRequest=5802

Check warning on line 51 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3n&open=AZ5M90OhtpWkLOZBHp3n&pullRequest=5802

Check warning on line 65 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3q&open=AZ5M90OhtpWkLOZBHp3q&pullRequest=5802

Check warning on line 36 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3j&open=AZ5M90OhtpWkLOZBHp3j&pullRequest=5802

Check warning on line 102 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3t&open=AZ5M90OhtpWkLOZBHp3t&pullRequest=5802

Check warning on line 74 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5NBWHjKEY278Pu-_a7&open=AZ5NBWHjKEY278Pu-_a7&pullRequest=5802

Check warning on line 103 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3u&open=AZ5M90OhtpWkLOZBHp3u&pullRequest=5802

Check warning on line 20 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3e&open=AZ5M90OhtpWkLOZBHp3e&pullRequest=5802

Check warning on line 46 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3l&open=AZ5M90OhtpWkLOZBHp3l&pullRequest=5802

Check warning on line 24 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3g&open=AZ5M90OhtpWkLOZBHp3g&pullRequest=5802

Check warning on line 18 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3d&open=AZ5M90OhtpWkLOZBHp3d&pullRequest=5802

Check warning on line 107 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5NBWHjKEY278Pu-_a9&open=AZ5NBWHjKEY278Pu-_a9&pullRequest=5802

Check failure on line 6365 in lib/MySQL_Monitor.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not nest more than 3 if|for|do|while|switch statements.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5l74NwTffm_ubWsyrc&open=AZ5l74NwTffm_ubWsyrc&pullRequest=5802

Check warning on line 50 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3m&open=AZ5M90OhtpWkLOZBHp3m&pullRequest=5802

Check warning on line 18 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3c&open=AZ5M90OhtpWkLOZBHp3c&pullRequest=5802

Check warning on line 32 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3h&open=AZ5M90OhtpWkLOZBHp3h&pullRequest=5802

Check warning on line 67 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5NBWHjKEY278Pu-_a6&open=AZ5NBWHjKEY278Pu-_a6&pullRequest=5802

Check warning on line 53 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3o&open=AZ5M90OhtpWkLOZBHp3o&pullRequest=5802

Check failure on line 6350 in lib/MySQL_Monitor.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rewrite the code so that you no longer need this "delete".

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5l74NwTffm_ubWsyrd&open=AZ5l74NwTffm_ubWsyrd&pullRequest=5802

Check warning on line 22 in test/tap/tests/unit/dns_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure using this hardcoded IP address is safe here.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5M90OhtpWkLOZBHp3f&open=AZ5M90OhtpWkLOZBHp3f&pullRequest=5802

Check failure on line 401 in lib/MySQL_Monitor.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not nest more than 3 if|for|do|while|switch statements.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ5RFXuHbFGUaxzRChM6&open=AZ5RFXuHbFGUaxzRChM6&pullRequest=5802