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:08:20 UTC
[pulsar] branch branch-2.11 updated: [fix][broker] Revert #14829 Filter the virtual NIC with relative path (#18812)
This is an automated email from the ASF dual-hosted git repository.
technoboy pushed a commit to branch branch-2.11
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-2.11 by this push:
new e522863e1ee [fix][broker] Revert #14829 Filter the virtual NIC with relative path (#18812)
e522863e1ee is described below
commit e522863e1ee92be0cf04fa35b013deba357aeb91
Author: Qiang Zhao <ma...@apache.org>
AuthorDate: Thu Dec 8 22:57:28 2022 +0800
[fix][broker] Revert #14829 Filter the virtual NIC with relative path (#18812)
---
.../main/java/org/apache/pulsar/broker/loadbalance/LinuxInfoUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/LinuxInfoUtils.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/LinuxInfoUtils.java
index 932c19445af..cec0de503d6 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/LinuxInfoUtils.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/LinuxInfoUtils.java
@@ -149,7 +149,7 @@ public class LinuxInfoUtils {
*/
private static boolean isPhysicalNic(Path nicPath) {
try {
- if (nicPath.toRealPath().toString().contains("/virtual/")) {
+ if (nicPath.toString().contains("/virtual/")) {
return false;
}
// Check the type to make sure it's ethernet (type "1")