From 6294fc45df855e2e337ba6406d9ca109661b3d41 Mon Sep 17 00:00:00 2001 From: mattison chao Date: Wed, 9 Feb 2022 16:51:18 +0800 Subject: [PATCH 1/5] Fix performance issue to avoid unnessary loop. --- .../main/java/org/apache/bookkeeper/tls/BookieAuthZFactory.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/tls/BookieAuthZFactory.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/tls/BookieAuthZFactory.java index c047977c383..be55ca18f3f 100644 --- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/tls/BookieAuthZFactory.java +++ b/bookkeeper-server/src/main/java/org/apache/bookkeeper/tls/BookieAuthZFactory.java @@ -95,6 +95,7 @@ public void onProtocolUpgrade() { for (String allowedRole : allowedRoles) { if (certRole[0].equals(allowedRole)) { authorized = true; + break; } } if (authorized) { From 3add1a439bb3941164c7a8c8eabcf109eb59c72b Mon Sep 17 00:00:00 2001 From: mattison chao Date: Thu, 10 Feb 2022 09:14:53 +0800 Subject: [PATCH 2/5] Flaky-test --- .github/ISSUE_TEMPLATE/flaky_test.md | 31 +++++++++++++++++++ .../DefaultEnsemblePlacementPolicy.java | 4 +-- 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/flaky_test.md diff --git a/.github/ISSUE_TEMPLATE/flaky_test.md b/.github/ISSUE_TEMPLATE/flaky_test.md new file mode 100644 index 00000000000..5a47191a9c7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/flaky_test.md @@ -0,0 +1,31 @@ +--- +name: Flaky test +about: Report a flaky test failure +title: 'Flaky-test: test_class.test_method' +labels: ["component/test", "flaky-tests"] +assignees: '' +--- + +test_class.test_method is flaky. It fails sporadically. + +``` +[relevant parts of the exception stacktrace here] +``` + +