-
Notifications
You must be signed in to change notification settings - Fork 627
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
The README documentation is wrong/unclear #900
Comments
Indeed the behaviour seems to be exactly the opposite of what the doc says (assuming that by "return" they mean "invoke the callback") |
im not really sure why this isAsync even exists. I ran into same issue on committing of a callback not being a guarantee of successful commit, and I have a PR open to fix that. Callback shouldn't be executed until its actually done, or fatally errors. isAsync=false seems to only report if you passed an illegal topic configuration or not. |
@lamweili I intend to create a topic manually with the function. Otherwise, what function helps me create a topic manually? And yes, the whole documentation needs revision. |
@the-real-i9, this is a rather old library. It doesn't use the admin APIs to create topics. It relies on metadata to create topics, thus, the Whatever you have mentioned has nothing to do with this issue, which is the |
Bug Report
The following implies that calling
producer.createTopics(['x']. false)
blocks the execution until the Kafka's topic is created.Which does not seem to be the case according to https://github.com/SOHU-Co/kafka-node/blob/master/lib/client.js#L369
The function uses
retry
which usessetTimout
. It simply callscb(null)
, returns and keeps retrying asynchronously.Environment
For specific cases also provide
Include Sample Code to reproduce behavior
// include code here
Include output with Debug turned on
Thanks for your contribution!
The text was updated successfully, but these errors were encountered: