Add UMA for nis in nsswitch.conf [chromium/src : main]

0 views
Skip to first unread message

Tsuyoshi Horo (Gerrit)

unread,
Aug 4, 2022, 10:01:09 PM8/4/22
to net-r...@chromium.org, David Benjamin, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: David Benjamin.

Patch set 4:Commit-Queue +1

View Change

1 comment:

  • Patchset:

To view, visit change 3809204. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iddfb1b56e683e8d133c35263f9582ef905c7ecd0
Gerrit-Change-Number: 3809204
Gerrit-PatchSet: 4
Gerrit-Owner: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Reviewer: David Benjamin <davi...@chromium.org>
Gerrit-Reviewer: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Attention: David Benjamin <davi...@chromium.org>
Gerrit-Comment-Date: Fri, 05 Aug 2022 02:00:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

David Benjamin (Gerrit)

unread,
Aug 5, 2022, 2:12:46 PM8/5/22
to Tsuyoshi Horo, net-r...@chromium.org, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Tsuyoshi Horo.

Patch set 4:Code-Review +1

View Change

3 comments:

  • Patchset:

  • File net/dns/dns_config_service_linux.cc:

    • Patch Set #4, Line 482: [](

      Optional: I'm not positive if this works, but I think you can actually write:

      ```
      base::Contains(nsswitch_hosts, NsswitchReader::Service::kNis,
      &NsswitchReader::ServiceSpecification::service)
      ```
  • File tools/metrics/histograms/metadata/net/histograms.xml:

    • Patch Set #4, Line 630: BooleanValid

      Nit: This isn't really about validity. Perhaps BooleanIncluded? (Or BooleanFound or BooleanContained or BooleanRegistered or BooleanPresent.)

To view, visit change 3809204. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iddfb1b56e683e8d133c35263f9582ef905c7ecd0
Gerrit-Change-Number: 3809204
Gerrit-PatchSet: 4
Gerrit-Owner: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Reviewer: David Benjamin <davi...@chromium.org>
Gerrit-Reviewer: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Attention: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Comment-Date: Fri, 05 Aug 2022 18:12:34 +0000

Tsuyoshi Horo (Gerrit)

unread,
Aug 7, 2022, 8:10:31 PM8/7/22
to net-r...@chromium.org, David Benjamin, Chromium LUCI CQ, chromium...@chromium.org

View Change

3 comments:

  • Patchset:

  • File net/dns/dns_config_service_linux.cc:

    • Optional: I'm not positive if this works, but I think you can actually write: […]

      Done

  • File tools/metrics/histograms/metadata/net/histograms.xml:

    • Nit: This isn't really about validity. […]

      BooleanIncluded sounds good.
      Done.

To view, visit change 3809204. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iddfb1b56e683e8d133c35263f9582ef905c7ecd0
Gerrit-Change-Number: 3809204
Gerrit-PatchSet: 5
Gerrit-Owner: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Reviewer: David Benjamin <davi...@chromium.org>
Gerrit-Reviewer: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Comment-Date: Mon, 08 Aug 2022 00:10:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: David Benjamin <davi...@chromium.org>
Gerrit-MessageType: comment

Tsuyoshi Horo (Gerrit)

unread,
Aug 7, 2022, 8:11:26 PM8/7/22
to net-r...@chromium.org, Takashi Toyoshima, David Benjamin, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Takashi Toyoshima.

View Change

1 comment:

  • Patchset:

To view, visit change 3809204. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iddfb1b56e683e8d133c35263f9582ef905c7ecd0
Gerrit-Change-Number: 3809204
Gerrit-PatchSet: 5
Gerrit-Owner: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Reviewer: David Benjamin <davi...@chromium.org>
Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-Reviewer: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-Comment-Date: Mon, 08 Aug 2022 00:11:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Takashi Toyoshima (Gerrit)

unread,
Aug 9, 2022, 1:05:48 AM8/9/22
to Tsuyoshi Horo, net-r...@chromium.org, David Benjamin, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Tsuyoshi Horo.

View Change

2 comments:

To view, visit change 3809204. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iddfb1b56e683e8d133c35263f9582ef905c7ecd0
Gerrit-Change-Number: 3809204
Gerrit-PatchSet: 5
Gerrit-Owner: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Reviewer: David Benjamin <davi...@chromium.org>
Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-Reviewer: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Attention: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Comment-Date: Tue, 09 Aug 2022 05:05:37 +0000

Tsuyoshi Horo (Gerrit)

unread,
Aug 9, 2022, 1:47:48 AM8/9/22
to net-r...@chromium.org, Takashi Toyoshima, David Benjamin, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Takashi Toyoshima.

View Change

3 comments:

  • Patchset:

  • File net/dns/dns_config_service_linux.cc:

    • Do you mind if you change macro based UMA calls in this file to use alternatives defined in histogra […]

      Done

  • File tools/metrics/histograms/metadata/net/histograms.xml:

    • Can you also add an explanation when this is recorded? E.g. recorded once on parsing nsswitch. […]

      Done

To view, visit change 3809204. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iddfb1b56e683e8d133c35263f9582ef905c7ecd0
Gerrit-Change-Number: 3809204
Gerrit-PatchSet: 6
Gerrit-Owner: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Reviewer: David Benjamin <davi...@chromium.org>
Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-Reviewer: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-Comment-Date: Tue, 09 Aug 2022 05:47:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-MessageType: comment

Takashi Toyoshima (Gerrit)

unread,
Aug 9, 2022, 4:17:33 AM8/9/22
to Tsuyoshi Horo, net-r...@chromium.org, David Benjamin, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Tsuyoshi Horo.

Patch set 6:Code-Review +1

View Change

1 comment:

To view, visit change 3809204. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iddfb1b56e683e8d133c35263f9582ef905c7ecd0
Gerrit-Change-Number: 3809204
Gerrit-PatchSet: 6
Gerrit-Owner: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Reviewer: David Benjamin <davi...@chromium.org>
Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-Reviewer: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Attention: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Comment-Date: Tue, 09 Aug 2022 08:17:24 +0000

Tsuyoshi Horo (Gerrit)

unread,
Aug 9, 2022, 9:20:59 PM8/9/22
to net-r...@chromium.org, Takashi Toyoshima, David Benjamin, Chromium LUCI CQ, chromium...@chromium.org

Patch set 6:Commit-Queue +2

View Change

1 comment:

To view, visit change 3809204. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iddfb1b56e683e8d133c35263f9582ef905c7ecd0
Gerrit-Change-Number: 3809204
Gerrit-PatchSet: 6
Gerrit-Owner: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Reviewer: David Benjamin <davi...@chromium.org>
Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-Reviewer: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Aug 2022 01:20:44 +0000

Chromium LUCI CQ (Gerrit)

unread,
Aug 9, 2022, 10:15:21 PM8/9/22
to Tsuyoshi Horo, net-r...@chromium.org, Takashi Toyoshima, David Benjamin, chromium...@chromium.org

Chromium LUCI CQ submitted this change.

View Change


Approvals: David Benjamin: Looks good to me Takashi Toyoshima: Looks good to me Tsuyoshi Horo: Commit
Add UMA for nis in nsswitch.conf

If the NIS service in nsswitch.conf file's hosts database is still
widely used, we need to handle such case to disable AsyncDNS.

Bug: 1350321

Change-Id: Iddfb1b56e683e8d133c35263f9582ef905c7ecd0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3809204
Reviewed-by: David Benjamin <davi...@chromium.org>
Reviewed-by: Takashi Toyoshima <toyo...@chromium.org>
Commit-Queue: Tsuyoshi Horo <ho...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1033323}
---
M net/dns/dns_config_service_linux.cc
M net/dns/dns_config_service_linux_unittest.cc
M tools/metrics/histograms/metadata/net/histograms.xml
3 files changed, 83 insertions(+), 16 deletions(-)


To view, visit change 3809204. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iddfb1b56e683e8d133c35263f9582ef905c7ecd0
Gerrit-Change-Number: 3809204
Gerrit-PatchSet: 7
Gerrit-Owner: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: David Benjamin <davi...@chromium.org>
Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-Reviewer: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-MessageType: merged
Reply all
Reply to author
Forward
0 new messages