You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2020/09/08 18:11:08 UTC
[trafficserver] branch 9.0.x updated: Fix #7164 Chaning Warning to
Debug and creating a stat for inserting duplicates to pending dns (#7166)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 49c31e1 Fix #7164 Chaning Warning to Debug and creating a stat for inserting duplicates to pending dns (#7166)
49c31e1 is described below
commit 49c31e191f7809a324e1b2cd0275a2242c7046ab
Author: Zizhong Zhang <zi...@linkedin.com>
AuthorDate: Sun Sep 6 20:01:21 2020 -0700
Fix #7164 Chaning Warning to Debug and creating a stat for inserting duplicates to pending dns (#7166)
(cherry picked from commit decc63c20b981e50f8a11149f4e7816b974e303e)
---
iocore/hostdb/HostDB.cc | 6 +++++-
iocore/hostdb/P_HostDBProcessor.h | 1 +
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/iocore/hostdb/HostDB.cc b/iocore/hostdb/HostDB.cc
index 4052cd5..5101dc8 100644
--- a/iocore/hostdb/HostDB.cc
+++ b/iocore/hostdb/HostDB.cc
@@ -1587,7 +1587,8 @@ HostDBContinuation::set_check_pending_dns()
Queue<HostDBContinuation> &q = hostDB.pending_dns_for_hash(hash.hash);
this->setThreadAffinity(this_ethread());
if (q.in(this)) {
- Warning("Skip the insertion of the same continuation to pending dns");
+ HOSTDB_INCREMENT_DYN_STAT(hostdb_insert_duplicate_to_pending_dns_stat);
+ Debug("hostdb", "Skip the insertion of the same continuation to pending dns");
return false;
}
HostDBContinuation *c = q.head;
@@ -2160,6 +2161,9 @@ ink_hostdb_init(ts::ModuleVersion v)
RecRegisterRawStat(hostdb_rsb, RECT_PROCESS, "proxy.process.hostdb.re_dns_on_reload", RECD_INT, RECP_PERSISTENT,
(int)hostdb_re_dns_on_reload_stat, RecRawStatSyncSum);
+ RecRegisterRawStat(hostdb_rsb, RECT_PROCESS, "proxy.process.hostdb.insert_duplicate_to_pending_dns", RECD_INT, RECP_PERSISTENT,
+ (int)hostdb_insert_duplicate_to_pending_dns_stat, RecRawStatSyncSum);
+
ts_host_res_global_init();
}
diff --git a/iocore/hostdb/P_HostDBProcessor.h b/iocore/hostdb/P_HostDBProcessor.h
index ac14387..65c41a9 100644
--- a/iocore/hostdb/P_HostDBProcessor.h
+++ b/iocore/hostdb/P_HostDBProcessor.h
@@ -140,6 +140,7 @@ enum HostDB_Stats {
hostdb_ttl_stat, // D average TTL
hostdb_ttl_expires_stat, // D == TTL Expires
hostdb_re_dns_on_reload_stat,
+ hostdb_insert_duplicate_to_pending_dns_stat,
HostDB_Stat_Count
};