You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2024/11/27 22:57:00 UTC
(pulsar) branch branch-3.0 updated (7687326dbc6 -> e1e42969e65)
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a change to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git
from 7687326dbc6 [improve][test] Reduce OneWayReplicatorUsingGlobalZKTest.testRemoveCluster execution time (#23633)
new e0e195678cc [fix][client] Fixed an issue where a cert chain could not be used in TLS authentication (#23644)
new a6b93a646fb [fix][broker] fix null lookup result when brokers are starting (#23642)
new aee413b7176 [improve] Use single buffer for metrics when noUnsafe use (#23612)
new e1e42969e65 [fix][client] Make protobuf-java dependency optional in java client libraries (#23632)
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
build/run_unit_group.sh | 2 +
distribution/shell/src/assemble/LICENSE.bin.txt | 4 --
.../org/apache/pulsar/broker/PulsarService.java | 6 +--
.../pulsar/broker/lookup/TopicLookupBase.java | 19 ++++++++
.../pulsar/broker/namespace/OwnershipCache.java | 8 +++-
.../prometheus/PrometheusMetricsGenerator.java | 24 ++++++----
...PrometheusMetricsGeneratorWithNoUnsafeTest.java | 52 ++++++++++++++++++++++
pulsar-client/pom.xml | 2 +-
pulsar-common/pom.xml | 5 ---
.../apache/pulsar/common/util/KeyManagerProxy.java | 19 ++++----
...agerProxyTest.java => KeyManagerProxyTest.java} | 32 ++++++-------
11 files changed, 123 insertions(+), 50 deletions(-)
create mode 100644 pulsar-broker/src/test/java/org/apache/pulsar/broker/stats/prometheus/PrometheusMetricsGeneratorWithNoUnsafeTest.java
copy pulsar-common/src/test/java/org/apache/pulsar/common/util/{TrustManagerProxyTest.java => KeyManagerProxyTest.java} (59%)
(pulsar) 01/04: [fix][client] Fixed an issue where a cert chain could not be used in TLS authentication (#23644)
Posted by lh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit e0e195678cc10c8aea579e2874cbe0f945c3b850
Author: Yuri Mizushima <eq...@apache.org>
AuthorDate: Thu Nov 28 05:35:08 2024 +0900
[fix][client] Fixed an issue where a cert chain could not be used in TLS authentication (#23644)
(cherry picked from commit e236d61c650bcaef271bc529ec9023edd8c04b01)
---
.../apache/pulsar/common/util/KeyManagerProxy.java | 19 ++++----
.../pulsar/common/util/KeyManagerProxyTest.java | 51 ++++++++++++++++++++++
2 files changed, 61 insertions(+), 9 deletions(-)
diff --git a/pulsar-common/src/main/java/org/apache/pulsar/common/util/KeyManagerProxy.java b/pulsar-common/src/main/java/org/apache/pulsar/common/util/KeyManagerProxy.java
index 171f5acd2bf..6b6b0492b45 100644
--- a/pulsar-common/src/main/java/org/apache/pulsar/common/util/KeyManagerProxy.java
+++ b/pulsar-common/src/main/java/org/apache/pulsar/common/util/KeyManagerProxy.java
@@ -30,11 +30,14 @@ import java.security.NoSuchAlgorithmException;
import java.security.Principal;
import java.security.PrivateKey;
import java.security.UnrecoverableKeyException;
+import java.security.cert.Certificate;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
+import java.util.List;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
import javax.net.ssl.KeyManagerFactory;
import javax.net.ssl.SSLEngine;
import javax.net.ssl.X509ExtendedKeyManager;
@@ -88,18 +91,16 @@ public class KeyManagerProxy extends X509ExtendedKeyManager {
return;
}
- X509Certificate certificate;
- PrivateKey privateKey = null;
- KeyStore keyStore;
- try (InputStream publicCertStream = new FileInputStream(certFile.getFileName());
- InputStream privateKeyStream = new FileInputStream(keyFile.getFileName())) {
+ final KeyStore keyStore;
+ try (InputStream publicCertStream = new FileInputStream(certFile.getFileName())) {
final CertificateFactory cf = CertificateFactory.getInstance("X.509");
- certificate = (X509Certificate) cf.generateCertificate(publicCertStream);
+ final List<X509Certificate> certificateList = cf.generateCertificates(publicCertStream)
+ .stream().map(o -> (X509Certificate) o).collect(Collectors.toList());
keyStore = KeyStore.getInstance("JKS");
- String alias = certificate.getSubjectX500Principal().getName();
- privateKey = SecurityUtility.loadPrivateKeyFromPemFile(keyFile.getFileName());
+ final String alias = certificateList.get(0).getSubjectX500Principal().getName();
+ final PrivateKey privateKey = SecurityUtility.loadPrivateKeyFromPemFile(keyFile.getFileName());
keyStore.load(null);
- keyStore.setKeyEntry(alias, privateKey, KEYSTORE_PASSWORD, new X509Certificate[] { certificate });
+ keyStore.setKeyEntry(alias, privateKey, KEYSTORE_PASSWORD, certificateList.toArray(new Certificate[0]));
} catch (IOException | KeyManagementException e) {
throw new IllegalArgumentException(e);
}
diff --git a/pulsar-common/src/test/java/org/apache/pulsar/common/util/KeyManagerProxyTest.java b/pulsar-common/src/test/java/org/apache/pulsar/common/util/KeyManagerProxyTest.java
new file mode 100644
index 00000000000..5542f0b22ac
--- /dev/null
+++ b/pulsar-common/src/test/java/org/apache/pulsar/common/util/KeyManagerProxyTest.java
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.pulsar.common.util;
+
+import static org.testng.Assert.assertEquals;
+import com.google.common.io.Resources;
+import java.util.concurrent.Executors;
+import java.util.concurrent.ScheduledExecutorService;
+import lombok.Cleanup;
+import org.testng.annotations.DataProvider;
+import org.testng.annotations.Test;
+
+public class KeyManagerProxyTest {
+
+ @DataProvider(name = "certDataProvider")
+ public static Object[][] caDataProvider() {
+ return new Object[][]{
+ {"ca/multiple-ca.pem", 2},
+ {"ca/single-ca.pem", 1}
+ };
+ }
+
+ @Test(dataProvider = "certDataProvider")
+ public void testLoadCert(String path, int certCount) {
+ final String certFilePath = Resources.getResource(path).getPath();
+ // This key is not paired with certs, but this is not a problem as the key is not used in this test
+ final String keyFilePath = Resources.getResource("ssl/my-ca/client-key.pem").getPath();
+ @Cleanup("shutdownNow")
+ final ScheduledExecutorService scheduledExecutor = Executors.newSingleThreadScheduledExecutor();
+
+ final KeyManagerProxy keyManager = new KeyManagerProxy(certFilePath, keyFilePath, 60, scheduledExecutor);
+ assertEquals(keyManager.getCertificateChain("cn=test1").length, certCount);
+ }
+}
(pulsar) 04/04: [fix][client] Make protobuf-java dependency optional in java client libraries (#23632)
Posted by lh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit e1e42969e6521cf697bd9434b19b71c31de67501
Author: 萧易客 <km...@live.com>
AuthorDate: Thu Nov 28 06:46:05 2024 +0800
[fix][client] Make protobuf-java dependency optional in java client libraries (#23632)
(cherry picked from commit b284cd4f66a95f01bfd2b501f49809018e2073cc)
---
distribution/shell/src/assemble/LICENSE.bin.txt | 4 ----
pulsar-client/pom.xml | 2 +-
pulsar-common/pom.xml | 5 -----
3 files changed, 1 insertion(+), 10 deletions(-)
diff --git a/distribution/shell/src/assemble/LICENSE.bin.txt b/distribution/shell/src/assemble/LICENSE.bin.txt
index 35ad170bfa8..54f3d4d53b1 100644
--- a/distribution/shell/src/assemble/LICENSE.bin.txt
+++ b/distribution/shell/src/assemble/LICENSE.bin.txt
@@ -425,10 +425,6 @@ MIT License
* The Checker Framework
- checker-qual-3.33.0.jar
-Protocol Buffers License
- * Protocol Buffers
- - protobuf-java-3.25.5.jar -- ../licenses/LICENSE-protobuf.txt
-
CDDL-1.1 -- ../licenses/LICENSE-CDDL-1.1.txt
* Java Annotations API
- javax.annotation-api-1.3.2.jar
diff --git a/pulsar-client/pom.xml b/pulsar-client/pom.xml
index 1322dcdf862..7b6399c732e 100644
--- a/pulsar-client/pom.xml
+++ b/pulsar-client/pom.xml
@@ -30,7 +30,7 @@
</parent>
<artifactId>pulsar-client-original</artifactId>
- <name>Pulsar Client Java</name>
+ <name>Pulsar Client Java Original</name>
<dependencies>
<dependency>
diff --git a/pulsar-common/pom.xml b/pulsar-common/pom.xml
index 7d6d34fda18..bc66ee76b5d 100644
--- a/pulsar-common/pom.xml
+++ b/pulsar-common/pom.xml
@@ -200,11 +200,6 @@
<optional>true</optional>
</dependency>
- <dependency>
- <groupId>com.google.protobuf</groupId>
- <artifactId>protobuf-java</artifactId>
- </dependency>
-
<dependency>
<groupId>com.spotify</groupId>
<artifactId>completable-futures</artifactId>
(pulsar) 03/04: [improve] Use single buffer for metrics when noUnsafe use (#23612)
Posted by lh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit aee413b7176f65f91b8928b7a7bb4442b04d7f06
Author: Yong Zhang <zh...@gmail.com>
AuthorDate: Thu Nov 28 05:55:10 2024 +0800
[improve] Use single buffer for metrics when noUnsafe use (#23612)
Co-authored-by: Lari Hotari <lh...@apache.org>
(cherry picked from commit 9b79d701a2c1067693508515915b5a4504f60916)
---
build/run_unit_group.sh | 2 +
.../prometheus/PrometheusMetricsGenerator.java | 24 ++++++----
...PrometheusMetricsGeneratorWithNoUnsafeTest.java | 52 ++++++++++++++++++++++
3 files changed, 69 insertions(+), 9 deletions(-)
diff --git a/build/run_unit_group.sh b/build/run_unit_group.sh
index de6f40407cc..2d0e804b654 100755
--- a/build/run_unit_group.sh
+++ b/build/run_unit_group.sh
@@ -77,6 +77,8 @@ alias echo='{ [[ $- =~ .*x.* ]] && trace_enabled=1 || trace_enabled=0; set +x; }
# Test Groups -- start --
function test_group_broker_group_1() {
mvn_test -pl pulsar-broker -Dgroups='broker' -DtestReuseFork=true
+ # run tests in broker-isolated group individually (instead of with -Dgroups=broker-isolated) to avoid scanning all test classes
+ mvn_test -pl pulsar-broker -Dtest=org.apache.pulsar.broker.stats.prometheus.PrometheusMetricsGeneratorWithNoUnsafeTest -DtestForkCount=1 -DtestReuseFork=false
}
function test_group_broker_group_2() {
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/PrometheusMetricsGenerator.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/PrometheusMetricsGenerator.java
index 9dfa7673fe8..a468d70233e 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/PrometheusMetricsGenerator.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/PrometheusMetricsGenerator.java
@@ -25,6 +25,7 @@ import io.netty.buffer.ByteBufAllocator;
import io.netty.buffer.CompositeByteBuf;
import io.netty.buffer.PooledByteBufAllocator;
import io.netty.buffer.Unpooled;
+import io.netty.util.internal.PlatformDependent;
import io.prometheus.client.Collector;
import java.io.BufferedOutputStream;
import java.io.IOException;
@@ -363,19 +364,24 @@ public class PrometheusMetricsGenerator implements AutoCloseable {
}
}
- private ByteBuf allocateMultipartCompositeDirectBuffer() {
+ ByteBuf allocateMultipartCompositeDirectBuffer() {
// use composite buffer with pre-allocated buffers to ensure that the pooled allocator can be used
// for allocating the buffers
ByteBufAllocator byteBufAllocator = PulsarByteBufAllocator.DEFAULT;
- int chunkSize = resolveChunkSize(byteBufAllocator);
- CompositeByteBuf buf = byteBufAllocator.compositeDirectBuffer(
+ ByteBuf buf;
+ if (PlatformDependent.hasUnsafe()) {
+ int chunkSize = resolveChunkSize(byteBufAllocator);
+ buf = byteBufAllocator.compositeDirectBuffer(
Math.max(MINIMUM_FOR_MAX_COMPONENTS, (initialBufferSize / chunkSize) + 1));
- int totalLen = 0;
- while (totalLen < initialBufferSize) {
- totalLen += chunkSize;
- // increase the capacity in increments of chunkSize to preallocate the buffers
- // in the composite buffer
- buf.capacity(totalLen);
+ int totalLen = 0;
+ while (totalLen < initialBufferSize) {
+ totalLen += chunkSize;
+ // increase the capacity in increments of chunkSize to preallocate the buffers
+ // in the composite buffer
+ buf.capacity(totalLen);
+ }
+ } else {
+ buf = byteBufAllocator.directBuffer(initialBufferSize);
}
return buf;
}
diff --git a/pulsar-broker/src/test/java/org/apache/pulsar/broker/stats/prometheus/PrometheusMetricsGeneratorWithNoUnsafeTest.java b/pulsar-broker/src/test/java/org/apache/pulsar/broker/stats/prometheus/PrometheusMetricsGeneratorWithNoUnsafeTest.java
new file mode 100644
index 00000000000..006428b4815
--- /dev/null
+++ b/pulsar-broker/src/test/java/org/apache/pulsar/broker/stats/prometheus/PrometheusMetricsGeneratorWithNoUnsafeTest.java
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.pulsar.broker.stats.prometheus;
+
+import static org.testng.Assert.assertFalse;
+import io.netty.buffer.ByteBuf;
+import io.netty.util.internal.PlatformDependent;
+import java.time.Clock;
+import lombok.Cleanup;
+import org.apache.pulsar.common.util.SimpleTextOutputStream;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Test;
+
+@Test(groups = "broker-isolated")
+public class PrometheusMetricsGeneratorWithNoUnsafeTest {
+
+ @BeforeClass
+ static void setup() {
+ System.setProperty("io.netty.noUnsafe", "true");
+ }
+
+ @Test
+ public void testWriteStringWithNoUnsafe() {
+ assertFalse(PlatformDependent.hasUnsafe());
+ @Cleanup
+ PrometheusMetricsGenerator generator = new PrometheusMetricsGenerator(null, false, false, false, false,
+ Clock.systemUTC());
+ @Cleanup("release")
+ ByteBuf buf = generator.allocateMultipartCompositeDirectBuffer();
+ for (int i = 0; i < 2; i++) {
+ buf.writeBytes(new byte[1024 * 1024]);
+ }
+ SimpleTextOutputStream outputStream = new SimpleTextOutputStream(buf);
+ outputStream.write("test");
+ }
+}
(pulsar) 02/04: [fix][broker] fix null lookup result when brokers are starting (#23642)
Posted by lh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit a6b93a646fb58632ec657c09a852953a67bb777e
Author: fengyubiao <yu...@streamnative.io>
AuthorDate: Thu Nov 28 04:38:15 2024 +0800
[fix][broker] fix null lookup result when brokers are starting (#23642)
(cherry picked from commit bd3b3b82abc78db6641b8917e8a2d2c947459ea7)
---
.../java/org/apache/pulsar/broker/PulsarService.java | 6 +++---
.../apache/pulsar/broker/lookup/TopicLookupBase.java | 19 +++++++++++++++++++
.../pulsar/broker/namespace/OwnershipCache.java | 8 +++++++-
3 files changed, 29 insertions(+), 4 deletions(-)
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java
index 4da5e114a08..da57319a441 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java
@@ -852,6 +852,9 @@ public class PulsarService implements AutoCloseable, ShutdownService {
this.webSocketService.setLocalCluster(clusterData);
}
+ // Initialize namespace service, after service url assigned. Should init zk and refresh self owner info.
+ this.nsService.initialize();
+
// Start the leader election service
startLeaderElectionService();
@@ -863,9 +866,6 @@ public class PulsarService implements AutoCloseable, ShutdownService {
// (namespace service depends on load manager)
this.startLoadManagementService();
- // Initialize namespace service, after service url assigned. Should init zk and refresh self owner info.
- this.nsService.initialize();
-
// Start topic level policies service
if (config.isTopicLevelPoliciesEnabled() && config.isSystemTopicEnabled()) {
this.topicPoliciesService = new SystemTopicBasedTopicPoliciesService(this);
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/lookup/TopicLookupBase.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/lookup/TopicLookupBase.java
index 9a05c3d992a..adc65db380d 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/lookup/TopicLookupBase.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/lookup/TopicLookupBase.java
@@ -314,6 +314,7 @@ public class TopicLookupBase extends PulsarWebResource {
}
LookupData lookupData = lookupResult.get().getLookupData();
+ printWarnLogIfLookupResUnexpected(topicName, lookupData, options, pulsarService);
if (lookupResult.get().isRedirect()) {
boolean newAuthoritative = lookupResult.get().isAuthoritativeRedirect();
lookupfuture.complete(
@@ -338,6 +339,24 @@ public class TopicLookupBase extends PulsarWebResource {
return lookupfuture;
}
+ /**
+ * Check if a internal client will get a null lookup result.
+ */
+ private static void printWarnLogIfLookupResUnexpected(TopicName topic, LookupData lookupData, LookupOptions options,
+ PulsarService pulsar) {
+ if (!pulsar.getBrokerService().isSystemTopic(topic)) {
+ return;
+ }
+ boolean tlsEnabled = pulsar.getConfig().isBrokerClientTlsEnabled();
+ if (!tlsEnabled && StringUtils.isBlank(lookupData.getBrokerUrl())) {
+ log.warn("[{}] Unexpected lookup result: brokerUrl is required when TLS isn't enabled. options: {},"
+ + " result {}", topic, options, lookupData);
+ } else if (tlsEnabled && StringUtils.isBlank(lookupData.getBrokerUrlTls())) {
+ log.warn("[{}] Unexpected lookup result: brokerUrlTls is required when TLS is enabled. options: {},"
+ + " result {}", topic, options, lookupData);
+ }
+ }
+
private static void handleLookupError(CompletableFuture<ByteBuf> lookupFuture, String topicName, String clientAppId,
long requestId, Throwable ex){
Throwable unwrapEx = FutureUtil.unwrapCompletionException(ex);
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/OwnershipCache.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/OwnershipCache.java
index 5833531f8de..3f0483f58ad 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/OwnershipCache.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/OwnershipCache.java
@@ -73,7 +73,7 @@ public class OwnershipCache {
/**
* The NamespaceEphemeralData objects that can be associated with the current owner, when the broker is disabled.
*/
- private final NamespaceEphemeralData selfOwnerInfoDisabled;
+ private NamespaceEphemeralData selfOwnerInfoDisabled;
private final LockManager<NamespaceEphemeralData> lockManager;
@@ -121,6 +121,9 @@ public class OwnershipCache {
this.pulsar = pulsar;
this.ownerBrokerUrl = pulsar.getBrokerServiceUrl();
this.ownerBrokerUrlTls = pulsar.getBrokerServiceUrlTls();
+ // At this moment, the variables "webServiceAddress" and "webServiceAddressTls" and so on have not been
+ // initialized, so we will get an empty "selfOwnerInfo" and an empty "selfOwnerInfoDisabled" here.
+ // But do not worry, these two fields will be set by the method "refreshSelfOwnerInfo" soon.
this.selfOwnerInfo = new NamespaceEphemeralData(ownerBrokerUrl, ownerBrokerUrlTls,
pulsar.getWebServiceAddress(), pulsar.getWebServiceAddressTls(),
false, pulsar.getAdvertisedListeners());
@@ -353,6 +356,9 @@ public class OwnershipCache {
this.selfOwnerInfo = new NamespaceEphemeralData(pulsar.getBrokerServiceUrl(),
pulsar.getBrokerServiceUrlTls(), pulsar.getWebServiceAddress(),
pulsar.getWebServiceAddressTls(), false, pulsar.getAdvertisedListeners());
+ this.selfOwnerInfoDisabled = new NamespaceEphemeralData(pulsar.getBrokerServiceUrl(),
+ pulsar.getBrokerServiceUrlTls(), pulsar.getWebServiceAddress(),
+ pulsar.getWebServiceAddressTls(), true, pulsar.getAdvertisedListeners());
return selfOwnerInfo.getNativeUrl() != null || selfOwnerInfo.getNativeUrlTls() != null;
}
}