Skip to content

Commit

Permalink
Remove fb303 value of decision.skipped_unicast_route
Browse files Browse the repository at this point in the history
Summary: When we introduced the feature knob of IPv4 route with IPv6 next hops, we also introduced `decision.skipped_unicast_route` counter, which is a fb303 value. However, once we have rolled out the `v4_over_v6` feature and it has been deployed everywhere, we do not need to monitor this `decision.skipped_unicast_route` anymore.

Reviewed By: xiangxu1121

Differential Revision: D53075672

fbshipit-source-id: 47c335b5b88d5b8d137306b948bf6e0a097bf30b
  • Loading branch information
Rachata Tosi authored and facebook-github-bot committed Jan 25, 2024
1 parent 78fb724 commit 47e852f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions openr/decision/SpfSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ SpfSolver::SpfSolver(
fb303::fbData->addStatExportType("decision.skipped_mpls_route", fb303::COUNT);
fb303::fbData->addStatExportType(
"decision.duplicate_node_label", fb303::COUNT);
fb303::fbData->addStatExportType(
"decision.skipped_unicast_route", fb303::COUNT);
fb303::fbData->addStatExportType("decision.spf_ms", fb303::AVG);
fb303::fbData->addStatExportType("decision.spf_runs", fb303::COUNT);
fb303::fbData->addStatExportType("decision.errors", fb303::COUNT);
Expand Down Expand Up @@ -174,8 +172,6 @@ SpfSolver::createRouteForPrefix(
<< folly::IPAddress::networkToString(prefix)
<< " while v4 is not enabled, and "
<< "we are not allowing v4 prefix over v6 nexthop.";
fb303::fbData->addStatValue(
"decision.skipped_unicast_route", 1, fb303::COUNT);
return std::nullopt;
}

Expand Down
1 change: 0 additions & 1 deletion openr/decision/tests/DecisionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5937,7 +5937,6 @@ TEST_F(DecisionTestFixture, Counters) {
EXPECT_EQ(counters.at("decision.num_prefixes"), 9);
EXPECT_EQ(counters.at("decision.no_route_to_prefix.count.60"), 1);
EXPECT_EQ(counters.at("decision.incompatible_forwarding_type.count.60"), 1);
EXPECT_EQ(counters.at("decision.skipped_unicast_route.count.60"), 0);
EXPECT_EQ(counters.at("decision.skipped_mpls_route.count.60"), 1);
EXPECT_EQ(counters.at("decision.no_route_to_label.count.60"), 1);

Expand Down

0 comments on commit 47e852f

Please sign in to comment.