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/08 15:16:18 UTC
[pulsar] branch branch-2.10 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.10
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-2.10 by this push:
new 8875c99124d Revert #14829 Filter the virtual NIC with relative path
8875c99124d is described below
commit 8875c99124d5dc16eea18c82bbe5f90fab4092e6
Author: Jiwe Guo <te...@apache.org>
AuthorDate: Thu Dec 8 23:16:07 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")