commit | 229fedcb96f5ee24eb384823ae883502a718edef | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Mon Dec 20 18:57:08 2021 +0800 |
committer | Mike Yu <yumike@google.com> | Mon Dec 20 19:40:35 2021 +0800 |
tree | 451f6f2fe4244c64386a45d8a105ddf72104ba62 | |
parent | 03a274f82b3bf81f8dd87211af18f69c67d9f915 [diff] |
Make DohFrontend::clearQueries() synchronous Sending a DNS query right after DohFrontend::clearQueries() is commonly seen in PrivateDnsDohTest. However, it has a race issue because frontend_stats_clear_queries() is asynchronous. Some PrivateDnsDohTest tests are flaky due to that. This change ensures that DohFrontend::clearQueries() returns after the query count is reset. Fix: 211362650 Test: Ran PrivateDnsDohTest.PreferIpv6 1000 times Change-Id: I537c44b2015075130100e19279070c3e1ff698d3
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.