我收到来自Kafka的消息。 我收到两条具有相同ID的消息,然后尝试汇总成一条。
可以,但是我只收到一条消息
File "/usr/lib/python3.6/threading.py", line 884, in _bootstrap
self._bootstrap_inner()
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.6/socketserver.py", line 651, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python3.6/socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.6/socketserver.py", line 721, in __init__
self.handle()
File "/home/wangxu/pyApp/flaskApp/lib/python3.6/site-packages/werkzeug/serving.py", line 326, in handle
rv = BaseHTTPRequestHandler.handle(self)
File "/usr/lib/python3.6/http/server.py", line 418, in handle
self.handle_one_request()
File "/home/wangxu/pyApp/flaskApp/lib/python3.6/site-packages/werkzeug/serving.py", line 361, in handle_one_request
return self.run_wsgi()
File "/home/wangxu/pyApp/flaskApp/lib/python3.6/site-packages/werkzeug/serving.py", line 303, in run_wsgi
execute(self.server.app)
File "/home/wangxu/pyApp/flaskApp/lib/python3.6/site-packages/werkzeug/serving.py", line 291, in execute
application_iter = app(environ, start_response)
File "/home/wangxu/pyApp/flaskApp/lib/python3.6/site-packages/flask/app.py", line 2328, in __call__
return self.wsgi_app(environ, start_response)
File "/home/wangxu/pyApp/flaskApp/lib/python3.6/site-packages/flask/app.py", line 2311, in wsgi_app
response = self.full_dispatch_request()
File "/home/wangxu/pyApp/flaskApp/lib/python3.6/site-packages/flask/app.py", line 1832, in full_dispatch_request
rv = self.dispatch_request()
File "/home/wangxu/pyApp/flaskApp/lib/python3.6/site-packages/flask/app.py", line 1818, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "app.py", line 10, in hello
traceback.print_stack()