-
Notifications
You must be signed in to change notification settings - Fork 641
[ISSUE #4618] Add HTTP source connector #4634
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome to the Apache EventMesh community!!
This is your first PR in our project. We're very excited to have you onboard contributing. Your contributions are greatly appreciated!
Please make sure that the changes are covered by tests.
We will be here shortly.
Let us know if you need any help!
Want to get closer to the community?
| WeChat Assistant | WeChat Public Account | Slack |
|---|---|---|
![]() |
![]() |
Join Slack Chat |
Mailing Lists:
| Name | Description | Subscribe | Unsubscribe | Archive |
|---|---|---|---|---|
| Users | User support and questions mailing list | Subscribe | Unsubscribe | Mail Archives |
| Development | Development related discussions | Subscribe | Unsubscribe | Mail Archives |
| Commits | All commits to repositories | Subscribe | Unsubscribe | Mail Archives |
| Issues | Issues or PRs comments and reviews | Subscribe | Unsubscribe | Mail Archives |
| checker-qual-3.12.0.jar | ||
| cloudevents-api-2.4.2.jar | ||
| cloudevents-core-2.4.2.jar | ||
| cloudevents-http-vertx-2.3.0.jar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from cloudevents-http-vertx and vertx-web, are there any unnecessary dependencies in the newly added dependencies?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many newly added dependencies are indirectly imported by vertx. I can't pass the License Check of CI/CD after removing them.
Actually, I'm confused about known-dependencies.txt. Why do we need to manually add dependencies here? Since we are already using a build tool.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I'm confused about
known-dependencies.txt. Why do we need to manually add dependencies here? Since we are already using a build tool.
I don't fully understand either, I only know that the script check-dependencies.sh for checking dependencies will use this file to check. I also want to know the purpose of using this method of checking @ruanwenjun , and whether there is a better way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have manually comfirmed that these newly added dependencies(vertx , netty & cloudevents-http-vertx) are under the ASF 3rd party license policy, since they are all using Apache License 2.0. Is this correct? @xwm1992
.../src/main/java/org/apache/eventmesh/connector/http/source/connector/HttpSourceConnector.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be willing to write a document(#4601 (comment)) for this connector? If you are willing, they can be written in this PR or in a new PR.
Of course. I'll write it in a new PR. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4634 +/- ##
============================================
+ Coverage 16.93% 17.38% +0.45%
- Complexity 1708 1757 +49
============================================
Files 790 797 +7
Lines 29526 29770 +244
Branches 2550 2573 +23
============================================
+ Hits 5001 5177 +176
- Misses 24061 24115 +54
- Partials 464 478 +14 ☔ View full report in Codecov by Sentry. |
pandaapo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Welcome!
|
Maybe this question shouldn't be asked here, but I still want to know why most sourceConnectors don't implement the |
@hhuang1231
|
Pil0tXia
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job.
|
|
||
| private void doInit() throws Exception { | ||
| this.queue = new LinkedBlockingQueue<>(1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant throws Exception at doInit(), start() and stop() can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. And now the trace stack will be logged by the outside SourceWorker.
2589415 to
cf49f64
Compare
cf49f64 to
2e8ac4a
Compare
Pil0tXia
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Fungx In the future, community will mainly maintain documents in eventmesh-site. Therefore, if it is convenient for you, please write the new English documents in this directory of eventmesh-site, and Chinese documents in the directory. |
Sure. Leave it to me. |
* [ISSUE apache#4618] Add HTTP source connector * fix exception & config


Fixes #4618.
Motivation
Add Http source connector.
Modifications
Documentation