-
Notifications
You must be signed in to change notification settings - Fork 641
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
[WIP][ISSUE #199] Support Kafka connector plugin and Kafka as event store #199 #376
[WIP][ISSUE #199] Support Kafka connector plugin and Kafka as event store #199 #376
Conversation
@ruanwenjun good job! |
4450bbf
to
39dda47
Compare
hi, @ruanwenjun I try to use pub/sub message with kafka connector, but I can't use this kafka plugin. Here are some problem below. |
OMSConsumerAdaptor and OMSProducerAdaptor these two adaptors implementations need constructor without parameters for jdk spi requirements, moving the constructors configuration to init method may be better. Except for the problem above, here also have problem below, please take a look ,thanks @ruanwenjun . |
39dda47
to
06bcefd
Compare
@xwm1992 Hi, I have a question. Currently, the branch 1.3.0 is behind the development very much, can I checkout directly from develop branch and push to 1.3.0? Thanks. |
06bcefd
to
46f5a8c
Compare
It's ok, we will update the code to the latest version under the 1.3.0 branch, you can pull the latest code later and solve the conflicts, thanks |
c76d8d8
to
d3edf7a
Compare
@xwm1992 Please help me test again, thanks a lot. |
Codecov Report
@@ Coverage Diff @@
## develop #376 +/- ##
=============================================
+ Coverage 9.84% 10.07% +0.23%
- Complexity 283 310 +27
=============================================
Files 228 239 +11
Lines 10829 11212 +383
Branches 923 969 +46
=============================================
+ Hits 1066 1130 +64
- Misses 9666 9965 +299
- Partials 97 117 +20
Continue to review full report at Codecov.
|
f6bfaa6
to
227e357
Compare
64a68f3
to
cd594b5
Compare
b24d38b
to
eec5448
Compare
@ruanwenjun hello,I can’t send and receive messages normally with the Kafka module. It seems that the production of messages cannot be monitored. Can you see that messages are sent and received normally when you start project monitoring? |
@Jackzeng1224 Yes, I can see the log that the message has been sent to kafka. This method should be async, but it sends a sync command, I will fix in another pr. requestParam.addHeader(ProtocolKey.REQUEST_CODE, String.valueOf(RequestCode.MSG_SEND_ASYNC.getRequestCode())) Then you will see below log in runtime module:
But the response in 2021-07-27 19:48:40,956 DEBUG [main] AsyncSyncRequestInstance(AsyncSyncRequestInstance.java:81) - sendmsg failed
org.apache.eventmesh.common.EventMeshException: com.alibaba.fastjson.JSONException: syntax error,except start with { or [,but actually start with error
at org.apache.eventmesh.client.http.producer.RRCallbackResponseHandlerAdapter.handleResponse(RRCallbackResponseHandlerAdapter.java:94) ~[eventmesh-sdk-java-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
at org.apache.eventmesh.client.http.producer.RRCallbackResponseHandlerAdapter.handleResponse(RRCallbackResponseHandlerAdapter.java:41) ~[eventmesh-sdk-java-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:222) ~[httpclient-4.5.2.jar:4.5.2]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:164) ~[httpclient-4.5.2.jar:4.5.2]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:139) ~[httpclient-4.5.2.jar:4.5.2]
at org.apache.eventmesh.client.http.http.HttpUtil.post(HttpUtil.java:149) ~[eventmesh-sdk-java-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
at org.apache.eventmesh.client.http.producer.LiteProducer.request(LiteProducer.java:240) ~[eventmesh-sdk-java-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
at org.apache.eventmesh.http.demo.AsyncSyncRequestInstance.main(AsyncSyncRequestInstance.java:73) ~[main/:?]
Caused by: com.alibaba.fastjson.JSONException: syntax error,except start with { or [,but actually start with error
at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:684) ~[fastjson-1.2.71.jar:?]
at com.alibaba.fastjson.JSON.parseObject(JSON.java:396) ~[fastjson-1.2.71.jar:?]
at com.alibaba.fastjson.JSON.parseObject(JSON.java:300) ~[fastjson-1.2.71.jar:?]
at com.alibaba.fastjson.JSON.parseObject(JSON.java:573) ~[fastjson-1.2.71.jar:?]
at org.apache.eventmesh.client.http.producer.RRCallbackResponseHandlerAdapter.handleResponse(RRCallbackResponseHandlerAdapter.java:89) ~[eventmesh-sdk-java-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
... 7 more |
eec5448
to
14262af
Compare
OK!I will continue to pay attention. |
@ruanwenjun Could you please submmit this feature to branch kafka-connector? |
* [ISSUE apache#456] Automatic License report and check * Add mail close apache#456
…sion (apache#459) * modify:optimize flow control in downstreaming msg * modify:optimize stategy of selecting session in downstream msg * modify:optimize msg downstream,msg store in session * modify:fix bug:not a @sharable handler * modify:downstream broadcast msg asynchronously * modify:remove unneccessary interface in eventmesh-connector-api * modify:fix conflict * modify:add license in EventMeshAction * modify:fix ack problem close apache#457
* modify:optimize flow control in downstreaming msg * modify:optimize stategy of selecting session in downstream msg * modify:optimize msg downstream,msg store in session * modify:fix bug:not a @sharable handler * modify:downstream broadcast msg asynchronously * modify:remove unneccessary interface in eventmesh-connector-api * modify:fix conflict * modify:add license in EventMeshAction * modify:fix global flow control problem close apache#461
…iptionType is SYNC (apache#463) * [ISSUE apache#460]Support custom retry times configuration when SubcriptionType is SYNC * fix log args
… root build.gradle (apache#466) * [ISSUE apache#465]All third part dependencies should be controlled at root build.gradle * fix license
* [ISSUE apache#374] add unit test for PushMessageRequestHeader class. * [ISSUE apache#374] add unit test for PushMessageResponseHeader class. * [ISSUE apache#374] add unit test for ReplyMessageRequestHeader class. * [ISSUE apache#374] add unit test for ReplyMessageResponseHeader class. close apache#374
14262af
to
5fafdb5
Compare
@Jackzeng1224 Hi, I have updated the code, please help me test, thanks. |
…on close of client (apache#477) * modify:optimize flow control in downstreaming msg * modify:optimize stategy of selecting session in downstream msg * modify:optimize msg downstream,msg store in session * modify:fix bug:not a @sharable handler * modify:downstream broadcast msg asynchronously * modify:remove unneccessary interface in eventmesh-connector-api * modify:fix conflict * modify:add license in EventMeshAction * modify:fix ack problem * modify:fix exception handle when exception occured in EventMeshTcpMessageDispatcher * modify:fix log print close apache#476
OK 👌. I will test . |
@ruanwenjun hello,The latest code, I run SpringBootDemoApplication and an exception occurs. I think it is a package usage problem.I use rocketMq will not appear. |
5fafdb5
to
90e37a7
Compare
@ruanwenjun hello,New code, still did not solve the problem. |
90e37a7
to
d33fea2
Compare
af72021
to
90f317b
Compare
Since the PR's code has not been updated for a long time, I will close this PR. |
close #199