-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kafka producer with transaction enabled not able to publish event to event hub #209
Comments
@ravindra-dh Are you sure that it is related with transactions? Have you tried with transactions disabled?
I would like to know if each tenant can behave differently in this area. |
Hello @arkadius, same here, I have those logs too. And also I detect this error:
|
Description
Kafka client without transaction able to publish the events to event hub. But when transaction enabled, it fails with error:
an existing connection was forcibly closed by the remote host
How to reproduce
Sample code is provided as part of checklist
Has it worked previously?
First time trying this.
Checklist
IMPORTANT: We will close issues where the checklist has not been completed or where adequate information has not been provided.
Please provide the relevant information for the following items:
Java SDK 11
producer.initTransactions(); producer.beginTransaction(); producer.send(record, new Callback() { public void onCompletion(RecordMetadata metadata, Exception exception) { if (exception != null) { System.out.println(exception); System.exit(1); } } }); producer.commitTransaction();
kafka-client:2.3.0
acks = 1 batch.size = 16384 bootstrap.servers = [*********.servicebus.windows.net:9093] buffer.memory = 33554432 client.dns.lookup = default client.id = KafkaExampleProducer compression.type = none connections.max.idle.ms = 540000 delivery.timeout.ms = 120000 enable.idempotence = false interceptor.classes = [] key.serializer = class org.apache.kafka.common.serialization.LongSerializer linger.ms = 0 max.block.ms = 60000 max.in.flight.requests.per.connection = 5 max.request.size = 1048576 metadata.max.age.ms = 300000 metric.reporters = [] metrics.num.samples = 2 metrics.recording.level = INFO metrics.sample.window.ms = 30000 partitioner.class = class org.apache.kafka.clients.producer.internals.DefaultPartitioner receive.buffer.bytes = 32768 reconnect.backoff.max.ms = 1000 reconnect.backoff.ms = 50 request.timeout.ms = 30000 retries = 2147483647 retry.backoff.ms = 100 sasl.client.callback.handler.class = null sasl.jaas.config = [hidden] sasl.kerberos.kinit.cmd = /usr/bin/kinit sasl.kerberos.min.time.before.relogin = 60000 sasl.kerberos.service.name = null sasl.kerberos.ticket.renew.jitter = 0.05 sasl.kerberos.ticket.renew.window.factor = 0.8 sasl.login.callback.handler.class = null sasl.login.class = null sasl.login.refresh.buffer.seconds = 300 sasl.login.refresh.min.period.seconds = 60 sasl.login.refresh.window.factor = 0.8 sasl.login.refresh.window.jitter = 0.05 sasl.mechanism = PLAIN security.protocol = SASL_SSL send.buffer.bytes = 131072 ssl.cipher.suites = null ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1] ssl.endpoint.identification.algorithm = ssl.key.password = null ssl.keymanager.algorithm = SunX509 ssl.keystore.location = null ssl.keystore.password = null ssl.keystore.type = JKS ssl.protocol = TLS ssl.provider = null ssl.secure.random.implementation = null ssl.trustmanager.algorithm = PKIX ssl.truststore.location = null ssl.truststore.password = null ssl.truststore.type = JKS transaction.timeout.ms = 60000 transactional.id = auto value.serializer = class org.apache.kafka.common.serialization.StringSerializer
Producer failure
Sept 22 2022 - 17:15:01 UTC
KafkaExampleProducer
2022-09-23 11:25:06 INFO KafkaProducer:532 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Instantiated a transactional producer. 2022-09-23 11:25:06 DEBUG Metrics:416 - Added sensor with name bufferpool-wait-time 2022-09-23 11:25:06 DEBUG Metrics:416 - Added sensor with name buffer-exhausted-records 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name errors 2022-09-23 11:25:07 INFO AbstractLogin:61 - Successfully logged in. 2022-09-23 11:25:07 DEBUG SslEngineBuilder:157 - Created SSL context with keystore null, truststore null 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name produce-throttle-time 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name connections-closed: 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name connections-created: 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name successful-authentication: 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name successful-reauthentication: 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name successful-authentication-no-reauth: 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name failed-authentication: 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name failed-reauthentication: 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name reauthentication-latency: 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name bytes-sent-received: 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name bytes-sent: 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name bytes-received: 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name select-time: 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name io-time: 2022-09-23 11:25:07 INFO KafkaProducer:548 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Overriding the default retries config to the recommended value of 2147483647 since the idempotent producer is enabled. 2022-09-23 11:25:07 INFO KafkaProducer:574 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Overriding the default acks to all since idempotence is enabled. 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name batch-size 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name compression-rate 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name queue-time 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name request-time 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name records-per-request 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name record-retries 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name record-size 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name batch-split-rate 2022-09-23 11:25:07 WARN ProducerConfig:355 - The configuration 'producer.sasl.jaas.config' was supplied but isn't a known config. 2022-09-23 11:25:07 DEBUG Sender:233 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Starting Kafka producer I/O thread. 2022-09-23 11:25:07 WARN ProducerConfig:355 - The configuration 'producer.security.protocol' was supplied but isn't a known config. 2022-09-23 11:25:07 DEBUG NetworkClient:1113 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Initialize connection to node ame-nonprod-eventhubs.servicebus.windows.net:9093 (id: -1 rack: null) for sending metadata request 2022-09-23 11:25:07 WARN ProducerConfig:355 - The configuration 'TLS.Config.InsecureSkipVerify' was supplied but isn't a known config. 2022-09-23 11:25:07 WARN ProducerConfig:355 - The configuration 'producer.sasl.mechanism' was supplied but isn't a known config. 2022-09-23 11:25:07 WARN ProducerConfig:355 - The configuration 'TLS.Config.ClientAuth' was supplied but isn't a known config. 2022-09-23 11:25:07 DEBUG NetworkClient:944 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Initiating connection to node ame-nonprod-eventhubs.servicebus.windows.net:9093 (id: -1 rack: null) using address ame-nonprod-eventhubs.servicebus.windows.net/52.178.17.145 2022-09-23 11:25:07 INFO AppInfoParser:117 - Kafka version: 2.3.0 2022-09-23 11:25:07 INFO AppInfoParser:118 - Kafka commitId: fc1aaa116b661c8a 2022-09-23 11:25:07 INFO AppInfoParser:119 - Kafka startTimeMs: 1663912507820 2022-09-23 11:25:07 DEBUG KafkaProducer:428 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Kafka producer started 2022-09-23 11:25:07 DEBUG SaslClientAuthenticator:351 - Set SASL client state to SEND_APIVERSIONS_REQUEST 2022-09-23 11:25:07 DEBUG SaslClientAuthenticator:180 - Creating SaslClient: client=null;service=kafka;serviceHostname=ame-nonprod-eventhubs.servicebus.windows.net;mechs=[PLAIN] 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name node--1.bytes-sent 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name node--1.bytes-received 2022-09-23 11:25:07 DEBUG Metrics:416 - Added sensor with name node--1.latency 2022-09-23 11:25:07 DEBUG Selector:535 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Created socket with SO_RCVBUF = 32768, SO_SNDBUF = 131072, SO_TIMEOUT = 0 to node -1 2022-09-23 11:25:08 DEBUG NetworkClient:902 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Completed connection to node -1. Fetching API versions. 2022-09-23 11:25:08 DEBUG SslTransportLayer:424 - [SslTransportLayer channelId=-1 key=channel=java.nio.channels.SocketChannel[connection-pending remote=ame-nonprod-eventhubs.servicebus.windows.net/52.178.17.145:9093], selector=sun.nio.ch.WindowsSelectorImpl@423749d, interestOps=8, readyOps=0] SSL handshake completed successfully with peerHost 'ame-nonprod-eventhubs.servicebus.windows.net' peerPort 9093 peerPrincipal 'CN=servicebus.windows.net, O=Microsoft Corporation, L=Redmond, ST=WA, C=US' cipherSuite 'TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384' 2022-09-23 11:25:08 DEBUG SaslClientAuthenticator:351 - Set SASL client state to RECEIVE_APIVERSIONS_RESPONSE 2022-09-23 11:25:08 DEBUG SaslClientAuthenticator:351 - Set SASL client state to SEND_HANDSHAKE_REQUEST 2022-09-23 11:25:08 DEBUG SaslClientAuthenticator:351 - Set SASL client state to RECEIVE_HANDSHAKE_RESPONSE 2022-09-23 11:25:08 DEBUG SaslClientAuthenticator:351 - Set SASL client state to INITIAL 2022-09-23 11:25:08 DEBUG SaslClientAuthenticator:351 - Set SASL client state to INTERMEDIATE 2022-09-23 11:25:09 DEBUG SaslClientAuthenticator:351 - Set SASL client state to COMPLETE 2022-09-23 11:25:09 DEBUG SaslClientAuthenticator:629 - Finished authentication with no session expiration and no session re-authentication 2022-09-23 11:25:09 DEBUG Selector:564 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Successfully authenticated with ame-nonprod-eventhubs.servicebus.windows.net/52.178.17.145 2022-09-23 11:25:09 DEBUG NetworkClient:916 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Initiating API versions fetch from node -1. 2022-09-23 11:25:09 DEBUG NetworkClient:916 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Initiating API versions fetch from node -1. 2022-09-23 11:25:09 DEBUG NetworkClient:499 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Using older server API v0 to send API_VERSIONS {} with correlation id 1 to node -1 2022-09-23 11:25:09 DEBUG NetworkClient:870 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Recorded API versions for node -1: (Produce(0): 3 to 7 [usable: 7], Fetch(1): 4 to 6 [usable: 6], ListOffsets(2): 0 to 2 [usable: 2], Metadata(3): 0 to 5 [usable: 5], LeaderAndIsr(4): UNSUPPORTED, StopReplica(5): UNSUPPORTED, UpdateMetadata(6): UNSUPPORTED, ControlledShutdown(7): UNSUPPORTED, OffsetCommit(8): 0 to 3 [usable: 3], OffsetFetch(9): 0 to 3 [usable: 3], FindCoordinator(10): 0 to 1 [usable: 1], JoinGroup(11): 0 to 4 [usable: 4], Heartbeat(12): 0 to 1 [usable: 1], LeaveGroup(13): 0 to 1 [usable: 1], SyncGroup(14): 0 to 1 [usable: 1], DescribeGroups(15): 0 to 1 [usable: 1], ListGroups(16): 0 to 1 [usable: 1], SaslHandshake(17): 0 to 1 [usable: 1], ApiVersions(18): 0 to 1 [usable: 1], CreateTopics(19): 0 to 2 [usable: 2], DeleteTopics(20): 0 to 2 [usable: 2], DeleteRecords(21): UNSUPPORTED, InitProducerId(22): 0 to 1 [usable: 1], OffsetForLeaderEpoch(23): 0 [usable: 0], AddPartitionsToTxn(24): UNSUPPORTED, AddOffsetsToTxn(25): UNSUPPORTED, EndTxn(26): UNSUPPORTED, WriteTxnMarkers(27): UNSUPPORTED, TxnOffsetCommit(28): UNSUPPORTED, DescribeAcls(29): UNSUPPORTED, CreateAcls(30): UNSUPPORTED, DeleteAcls(31): UNSUPPORTED, DescribeConfigs(32): 0 to 2 [usable: 2], AlterConfigs(33): UNSUPPORTED, AlterReplicaLogDirs(34): UNSUPPORTED, DescribeLogDirs(35): UNSUPPORTED, SaslAuthenticate(36): 0 to 1 [usable: 1], CreatePartitions(37): 0 to 1 [usable: 1], CreateDelegationToken(38): UNSUPPORTED, RenewDelegationToken(39): UNSUPPORTED, ExpireDelegationToken(40): UNSUPPORTED, DescribeDelegationToken(41): UNSUPPORTED, DeleteGroups(42): 0 [usable: 0], ElectPreferredLeaders(43): UNSUPPORTED, IncrementalAlterConfigs(44): UNSUPPORTED) 2022-09-23 11:25:09 DEBUG NetworkClient:1097 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Sending metadata request MetadataRequestData(topics=[], allowAutoTopicCreation=true, includeClusterAuthorizedOperations=false, includeTopicAuthorizedOperations=false) to node ame-nonprod-eventhubs.servicebus.windows.net:9093 (id: -1 rack: null) 2022-09-23 11:25:09 DEBUG NetworkClient:499 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Using older server API v5 to send METADATA {topics=[],allow_auto_topic_creation=true} with correlation id 2 to node -1 2022-09-23 11:25:09 DEBUG Metadata:270 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Updated cluster metadata updateVersion 2 to MetadataCache{cluster=Cluster(id = null, nodes = [ame-nonprod-eventhubs.servicebus.windows.net:9093 (id: 0 rack: null)], partitions = [], controller = ame-nonprod-eventhubs.servicebus.windows.net:9093 (id: 0 rack: null))} Test Data #0 from thread #28 2022-09-23 11:25:12 DEBUG TransactionManager:906 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Transition from state UNINITIALIZED to INITIALIZING 2022-09-23 11:25:12 INFO TransactionManager:450 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] ProducerId set to -1 with epoch -1 2022-09-23 11:25:12 DEBUG TransactionManager:942 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Enqueuing transactional request InitProducerIdRequestData(transactionalId='auto', transactionTimeoutMs=60000) 2022-09-23 11:25:12 DEBUG TransactionManager:942 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Enqueuing transactional request FindCoordinatorRequestData(key='auto', keyType=1) 2022-09-23 11:25:12 DEBUG TransactionManager:942 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Enqueuing transactional request InitProducerIdRequestData(transactionalId='auto', transactionTimeoutMs=60000) 2022-09-23 11:25:13 DEBUG NetworkClient:944 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Initiating connection to node ame-nonprod-eventhubs.servicebus.windows.net:9093 (id: 0 rack: null) using address ame-nonprod-eventhubs.servicebus.windows.net/52.178.17.145 2022-09-23 11:25:13 DEBUG SaslClientAuthenticator:351 - Set SASL client state to SEND_APIVERSIONS_REQUEST 2022-09-23 11:25:13 DEBUG SaslClientAuthenticator:180 - Creating SaslClient: client=null;service=kafka;serviceHostname=ame-nonprod-eventhubs.servicebus.windows.net;mechs=[PLAIN] 2022-09-23 11:25:13 DEBUG Metrics:416 - Added sensor with name node-0.bytes-sent 2022-09-23 11:25:13 DEBUG Metrics:416 - Added sensor with name node-0.bytes-received 2022-09-23 11:25:13 DEBUG Metrics:416 - Added sensor with name node-0.latency 2022-09-23 11:25:13 DEBUG Selector:535 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Created socket with SO_RCVBUF = 32768, SO_SNDBUF = 131072, SO_TIMEOUT = 0 to node 0 2022-09-23 11:25:13 DEBUG NetworkClient:902 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Completed connection to node 0. Fetching API versions. 2022-09-23 11:25:13 DEBUG SslTransportLayer:424 - [SslTransportLayer channelId=0 key=channel=java.nio.channels.SocketChannel[connection-pending remote=ame-nonprod-eventhubs.servicebus.windows.net/52.178.17.145:9093], selector=sun.nio.ch.WindowsSelectorImpl@423749d, interestOps=8, readyOps=0] SSL handshake completed successfully with peerHost 'ame-nonprod-eventhubs.servicebus.windows.net' peerPort 9093 peerPrincipal 'CN=servicebus.windows.net, O=Microsoft Corporation, L=Redmond, ST=WA, C=US' cipherSuite 'TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384' 2022-09-23 11:25:13 DEBUG SaslClientAuthenticator:351 - Set SASL client state to RECEIVE_APIVERSIONS_RESPONSE 2022-09-23 11:25:14 DEBUG SaslClientAuthenticator:351 - Set SASL client state to SEND_HANDSHAKE_REQUEST 2022-09-23 11:25:14 DEBUG SaslClientAuthenticator:351 - Set SASL client state to RECEIVE_HANDSHAKE_RESPONSE 2022-09-23 11:25:14 DEBUG SaslClientAuthenticator:351 - Set SASL client state to INITIAL 2022-09-23 11:25:14 DEBUG SaslClientAuthenticator:351 - Set SASL client state to INTERMEDIATE 2022-09-23 11:25:14 DEBUG SaslClientAuthenticator:351 - Set SASL client state to COMPLETE 2022-09-23 11:25:14 DEBUG SaslClientAuthenticator:629 - Finished authentication with no session expiration and no session re-authentication 2022-09-23 11:25:14 DEBUG Selector:564 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Successfully authenticated with ame-nonprod-eventhubs.servicebus.windows.net/52.178.17.145 2022-09-23 11:25:14 DEBUG NetworkClient:916 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Initiating API versions fetch from node 0. 2022-09-23 11:25:14 DEBUG NetworkClient:916 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Initiating API versions fetch from node 0. 2022-09-23 11:25:14 DEBUG NetworkClient:499 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Using older server API v0 to send API_VERSIONS {} with correlation id 4 to node 0 2022-09-23 11:25:15 DEBUG NetworkClient:870 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Recorded API versions for node 0: (Produce(0): 3 to 7 [usable: 7], Fetch(1): 4 to 6 [usable: 6], ListOffsets(2): 0 to 2 [usable: 2], Metadata(3): 0 to 5 [usable: 5], LeaderAndIsr(4): UNSUPPORTED, StopReplica(5): UNSUPPORTED, UpdateMetadata(6): UNSUPPORTED, ControlledShutdown(7): UNSUPPORTED, OffsetCommit(8): 0 to 3 [usable: 3], OffsetFetch(9): 0 to 3 [usable: 3], FindCoordinator(10): 0 to 1 [usable: 1], JoinGroup(11): 0 to 4 [usable: 4], Heartbeat(12): 0 to 1 [usable: 1], LeaveGroup(13): 0 to 1 [usable: 1], SyncGroup(14): 0 to 1 [usable: 1], DescribeGroups(15): 0 to 1 [usable: 1], ListGroups(16): 0 to 1 [usable: 1], SaslHandshake(17): 0 to 1 [usable: 1], ApiVersions(18): 0 to 1 [usable: 1], CreateTopics(19): 0 to 2 [usable: 2], DeleteTopics(20): 0 to 2 [usable: 2], DeleteRecords(21): UNSUPPORTED, InitProducerId(22): 0 to 1 [usable: 1], OffsetForLeaderEpoch(23): 0 [usable: 0], AddPartitionsToTxn(24): UNSUPPORTED, AddOffsetsToTxn(25): UNSUPPORTED, EndTxn(26): UNSUPPORTED, WriteTxnMarkers(27): UNSUPPORTED, TxnOffsetCommit(28): UNSUPPORTED, DescribeAcls(29): UNSUPPORTED, CreateAcls(30): UNSUPPORTED, DeleteAcls(31): UNSUPPORTED, DescribeConfigs(32): 0 to 2 [usable: 2], AlterConfigs(33): UNSUPPORTED, AlterReplicaLogDirs(34): UNSUPPORTED, DescribeLogDirs(35): UNSUPPORTED, SaslAuthenticate(36): 0 to 1 [usable: 1], CreatePartitions(37): 0 to 1 [usable: 1], CreateDelegationToken(38): UNSUPPORTED, RenewDelegationToken(39): UNSUPPORTED, ExpireDelegationToken(40): UNSUPPORTED, DescribeDelegationToken(41): UNSUPPORTED, DeleteGroups(42): 0 [usable: 0], ElectPreferredLeaders(43): UNSUPPORTED, IncrementalAlterConfigs(44): UNSUPPORTED) 2022-09-23 11:25:15 DEBUG Sender:455 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Sending transactional request FindCoordinatorRequestData(key='auto', keyType=1) to node ame-nonprod-eventhubs.servicebus.windows.net:9093 (id: 0 rack: null) 2022-09-23 11:25:15 DEBUG NetworkClient:499 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Using older server API v1 to send FIND_COORDINATOR {key=auto,key_type=1} with correlation id 5 to node 0 2022-09-23 11:25:15 DEBUG Selector:607 - [Producer clientId=KafkaExampleProducer, transactionalId=auto] Connection with ame-nonprod-eventhubs.servicebus.windows.net/52.178.17.145 disconnected java.io.IOException: An existing connection was forcibly closed by the remote host at java.base/sun.nio.ch.SocketDispatcher.read0(Native Method) at java.base/sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43) at java.base/sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:276) at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:245) at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:223) at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:356) at org.apache.kafka.common.network.SslTransportLayer.readFromSocketChannel(SslTransportLayer.java:205) at org.apache.kafka.common.network.SslTransportLayer.read(SslTransportLayer.java:528) at org.apache.kafka.common.network.NetworkReceive.readFrom(NetworkReceive.java:94) at org.apache.kafka.common.network.KafkaChannel.receive(KafkaChannel.java:424) at org.apache.kafka.common.network.KafkaChannel.read(KafkaChannel.java:385) at org.apache.kafka.common.network.Selector.attemptRead(Selector.java:651) at org.apache.kafka.common.network.Selector.pollSelectionKeys(Selector.java:572) at org.apache.kafka.common.network.Selector.poll(Selector.java:483) at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:539) at org.apache.kafka.clients.producer.internals.Sender.runOnce(Sender.java:307) at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:238) at java.base/java.lang.Thread.run(Thread.java:866) 2022-09-23 11:25:15 DEBUG SslTransportLayer:181 - [SslTransportLayer channelId=0 key=channel=java.nio.channels.SocketChannel[connection-pending remote=ame-nonprod-eventhubs.servicebus.windows.net/52.178.17.145:9093], selector=sun.nio.ch.WindowsSelectorImpl@423749d, interestOps=8, readyOps=0] Failed to send SSL Close message java.io.IOException: An existing connection was forcibly closed by the remote host at java.base/sun.nio.ch.SocketDispatcher.write0(Native Method) at java.base/sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51) at java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:113) at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:79) at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:50) at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:462) at org.apache.kafka.common.network.SslTransportLayer.flush(SslTransportLayer.java:218) at org.apache.kafka.common.network.SslTransportLayer.close(SslTransportLayer.java:178) at org.apache.kafka.common.utils.Utils.closeAll(Utils.java:836) at org.apache.kafka.common.network.KafkaChannel.close(KafkaChannel.java:151) at org.apache.kafka.common.network.Selector.doClose(Selector.java:878) at org.apache.kafka.common.network.Selector.close(Selector.java:862) at org.apache.kafka.common.network.Selector.pollSelectionKeys(Selector.java:626) at org.apache.kafka.common.network.Selector.poll(Selector.java:483) at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:539) at org.apache.kafka.clients.producer.internals.Sender.runOnce(Sender.java:307) at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:238) at java.base/java.lang.Thread.run(Thread.java:866)
<REPLACE with e.g., Willing/able to send scenario to repro issue>
Windows 11
If this is a question on basic functionality, please verify the following:
$ ping namespace.servicebus.windows.net
returns ~ns-eh2-prod-am3-516.cloudapp.net [13.69.64.0]
)The text was updated successfully, but these errors were encountered: