Use am_ftsprobe to determine the DNSLookupAsError
Fts probe didn't report an error if it failed to resolve the DNS, so fts probe can mark those segments as down. Previously, DNSLookupAsError was only set to false in readCdbComponentInfoAndUpdateStatus(), however, codes keep coming and evolving, fts probe may set DNSLookupAsError to true in other code paths. To avoiding fts probe report a DNS error unexpectedly, use am_ftsprobe only to determine it and hide the DNSLookupAsError from callers.
Showing
想要评论请 注册 或 登录