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
import{KafkaStreamsasFactory,KafkaStreamsConfig,KStream}from"kafka-streams";interfaceZStreamextendsKStream{started: boolean;}letclient=newFactory(ConfigasKafkaStreamsConfig);letstream=client.getKStream("test");asyncfunctionTester(){conststarted=awaitstream.start();console.log((streamasZStream).started);// output: trueconstclosed=awaitstream.close()console.log((streamasZStream).started);// output: true which should be falseconststartagain=awaitstream.start();console.log(startagain);// output: Promise.reject => KStream is already startedconstcloseagain=awaitstream.close();//this part sometimes create problem}Tester();
The text was updated successfully, but these errors were encountered:
Hi @zeeshanalisyed thanks for the report. Are you able to provide me with a code sample of what you have so we can replicate it?
I have added the code above first of all this is produced by using client and stream as a part of the class, stream is not closed at all. but when I use class instance as a wrapper of the stream then that error is produced this is the transformed code from the real code
I am trying to close the Stream on the given object by calling close function on the instance of class
KStream
but receiving this error:I've also debugged that
KStream.stream$
containsnull
value.kafka-streams/src/lib/dsl/KStream.ts
Line 365 in a9a329a
The text was updated successfully, but these errors were encountered: