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 14:57:37 UTC
[pulsar] branch master 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 master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 3fd6c232f1f [fix][broker] Revert #14829 Filter the virtual NIC with relative path (#18812)
3fd6c232f1f is described below
commit 3fd6c232f1f121fdd5f58cb9f3091842f32df73c
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 aec527b5c96..2119398fe62 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")