Skip to content
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

app.start_client() never returns #197

Closed
dparker18 opened this issue Oct 14, 2021 · 0 comments · Fixed by #198
Closed

app.start_client() never returns #197

dparker18 opened this issue Oct 14, 2021 · 0 comments · Fixed by #198

Comments

@dparker18
Copy link
Contributor

Steps to reproduce

import faust
import asyncio

app = faust.App('foo', broker = 'kafka://kafka-broker.internal:29092')), web_enabled = False)
topic = app.topic('foo', key_type = str, value_type = str)

async def test():
	print('before start_client...')
	await app.start_client()
	print('after start_client...')
	return await topic.send_soon(value = 'bar')

if __name__ == '__main__':
	loop1 = asyncio.get_event_loop()
	print(loop1.run_until_complete(test()))

Expected behavior

Client-only mode is initialized and data posted to the topic

Actual behavior

App hangs forever at app.start_client(). I believe I found the bug, PR coming shortly

Full traceback

no error, just blocks

Versions

  • Python version: Python 3.8.10
  • Faust version: 0.6.9
  • Operating system: Ubuntu 20.04.3 LTS
  • Kafka version: 6.2.0-ccs (Commit:1a5755cf9401c84f)
  • RocksDB version (if applicable): n/a
dparker18 pushed a commit to dparker18/faust that referenced this issue Oct 14, 2021
@dparker18 dparker18 mentioned this issue Oct 14, 2021
taybin pushed a commit that referenced this issue Oct 21, 2021
Co-authored-by: David Parker <dparker@novacoast.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant