You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by te...@apache.org on 2022/12/12 14:03:51 UTC

[pulsar] branch branch-2.9 updated: Revert #14829 Filter the virtual NIC with relative path

This is an automated email from the ASF dual-hosted git repository.

technoboy pushed a commit to branch branch-2.9
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-2.9 by this push:
     new 7c7ccd6bbad Revert #14829 Filter the virtual NIC with relative path
7c7ccd6bbad is described below

commit 7c7ccd6bbad075cda379a622b33622d62e38c1e9
Author: Jiwe Guo <te...@apache.org>
AuthorDate: Mon Dec 12 22:03:26 2022 +0800

    Revert #14829 Filter the virtual NIC with relative path
---
 .../apache/pulsar/broker/loadbalance/impl/LinuxBrokerHostUsageImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/LinuxBrokerHostUsageImpl.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/LinuxBrokerHostUsageImpl.java
index 95cefd35d60..fc6c4116e0c 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/LinuxBrokerHostUsageImpl.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/LinuxBrokerHostUsageImpl.java
@@ -228,7 +228,7 @@ public class LinuxBrokerHostUsageImpl implements BrokerHostUsage {
 
     private boolean isPhysicalNic(Path path) {
         try {
-            if (path.toRealPath().toString().contains("/virtual/")) {
+            if (path.toString().contains("/virtual/")) {
                 return false;
             }
             // Check the type to make sure it's ethernet (type "1")