You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"kafka-admin-client-thread | adminclient-66" #1198 daemon prio=5 os_prio=31 tid=0x00007f9c75780000 nid=0x28607 runnable [0x000070001a71b000]
java.lang.Thread.State: RUNNABLE
at sun.nio.ch.KQueueArrayWrapper.kevent0(Native Method)
at sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:198)
at sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:117)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
- locked <0x0000000706797ce0> (a sun.nio.ch.Util$3)
- locked <0x0000000706797cf0> (a java.util.Collections$UnmodifiableSet)
- locked <0x0000000706797c90> (a sun.nio.ch.KQueueSelectorImpl)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
at org.apache.kafka.common.network.Selector.select(Selector.java:869)
at org.apache.kafka.common.network.Selector.poll(Selector.java:465)
at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:561)
at org.apache.kafka.clients.admin.KafkaAdminClient$AdminClientRunnable.processRequests(KafkaAdminClient.java:1319)
It also appears that we don't leak threads for just regular queries (non-join selects)... weird!
The text was updated successfully, but these errors were encountered:
With both the old and new query endpoints, a new admin client thread is created as part of checking the partition number of both source topics for the join. Whenever a request is sent to either endpoint DefaultApiSecurityContext.create(routingContext) a new service context is created.
Describe the bug
ksqlDB leaks threads when issued from the command line and then
^C
To Reproduce
CREATE STREAM a (id int key, col1 int) with (kafka_topic='a', value_format='json', partitions=1);
)CREATE STREAM c (id int key, col1 int) with (kafka_topic='c', value_format='json', partitions=1);
)ctrl+C
Expected behavior
The number of threads should eventually be the same
Actual behaviour
The number of threads is increased by 1
Additional context
It seems that the threads which are being leaked are admin client threads:
Here is the stack for one such thread:
It also appears that we don't leak threads for just regular queries (non-join selects)... weird!
The text was updated successfully, but these errors were encountered: