Skip to content

[ISSUE #4763] Do some code optimization.[EventMeshCommon] #4764

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

Open
wants to merge 4,460 commits into
base: master
Choose a base branch
from

Conversation

scwlkq
Copy link
Contributor

@scwlkq scwlkq commented Feb 1, 2024

Fixes #4763

Motivation

move EventMeshCommon class to Common module.

Modifications

Documentation

  • Does this pull request introduce a new feature? (no)

qqeasonchen and others added 30 commits July 31, 2023 22:07
…eadUtils] (apache#4297)

* Update ThreadUtils.java

* Update ThreadUtils.java
…ectors] (apache#4314)

* [ISSUE apache#4266]: Retore interrupted state for interrupted exception in open function sinc connector

* [ISSUE apache#4266]: Retore interrupted state for interrupted exception in open function source connector

* [ISSUE apache#4266]: Retore interrupted state for interrupted exception in RocketMQSink connector
…pache#4315)

* [ISSUE apache#4093]: Refactor package building chunks to reusable method

* [ISSUE apache#4093]: Refactor user agent building chunks to reusable method
…aced with lambda[HelloTask] (apache#4316)

* [4260] Fixed: Anonymous new ChannelFutureListener() can be replaced with lambda[HelloTask]

* Upgraded: First Interaction Action Version to Latest

* [4260] Removed: Unused Import

* Update package import order in HelloTask.java

---------

Co-authored-by: mike_xwm <[email protected]>
* fix: add cloudEventCodec for redis connector.

* fix: add cloudEventCodec for redis connector.

* fix import order.

* fix: add doc.

* fix: adjust cloudevent encode and decode.
…che#4337)

* issue-4262 Enhancement Request EventMeshCloudEventUtils

* issue-4262 Enhancement Request EventMeshCloudEventUtils move on top method getValue

* issue-4262 Enhancement Request EventMeshCloudEventUtils remove redundant else for Optional.of

---------

Co-authored-by: maxim.zgardan <[email protected]>
[ISSUE apache#4328] Add offsetManagement Service for connectors
[ISSUE apache#4268] Used switch to replace the if-else [CloudEventsProtocolAdaptor]
… test coverage rate (apache#4340)

* issues apache#4264 commit

* unit

* issues apache#4339 unit test coverage

* issues apache#4339 WebhookProtocolTransportObjectTest fix

* issues apache#4339 WebhookProtocolTransportObjectTest fix

* issues apache#4339 WebhookProtocolTransportObjectTest fix

* issues apache#4339 WebhookProtocolTransportObjectTest fix

* issues apache#4339 check style

* issues apache#4339 new instance replace builder.

* issues apache#4339 WebhookProtocolTransportObjectTest unit test.

* issues apache#4339 check style.

* issues apache#4339 check style.

* issues apache#4339 check style.

* fixed.

* fixed.

* fixed.

* fixed.

* fixed.

* delete java bean unit test.

* fix build error.
Copy link

codecov bot commented Feb 2, 2024

Codecov Report

Attention: Patch coverage is 39.76064% with 906 lines in your changes missing coverage. Please review.

Project coverage is 16.37%. Comparing base (1600c6b) to head (d751223).
Report is 4691 commits behind head on master.

Files with missing lines Patch % Lines
...mesh/connector/jdbc/connection/JdbcConnection.java 0.00% 137 Missing ⚠️
...nnector/file/sink/connector/FileSinkConnector.java 0.00% 62 Missing ⚠️
...g/apache/eventmesh/common/utils/JsonPathUtils.java 0.00% 54 Missing ⚠️
...ava/org/apache/eventmesh/common/utils/LogUtil.java 7.54% 48 Missing and 1 partial ⚠️
...tor/jdbc/connection/mysql/MysqlJdbcConnection.java 0.00% 43 Missing ⚠️
...dingtalk/sink/connector/DingDingSinkConnector.java 65.38% 24 Missing and 3 partials ⚠️
...pache/eventmesh/connector/jdbc/CatalogChanges.java 0.00% 26 Missing ⚠️
...ava/org/apache/eventmesh/connector/jdbc/Field.java 0.00% 24 Missing ⚠️
...ava/org/apache/eventmesh/common/ThreadWrapper.java 59.64% 16 Missing and 7 partials ⚠️
...tor/http/source/connector/HttpSourceConnector.java 67.74% 14 Missing and 6 partials ⚠️
... and 92 more
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4764      +/-   ##
============================================
- Coverage     16.93%   16.37%   -0.56%     
- Complexity     1413     1734     +321     
============================================
  Files           589      856     +267     
  Lines         25786    31266    +5480     
  Branches       2397     2700     +303     
============================================
+ Hits           4367     5121     +754     
- Misses        20983    25665    +4682     
- Partials        436      480      +44     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@scwlkq scwlkq changed the title [#ISSUE 4763] Do some code optimization.[EventMeshCommon] [ISSUE #4763] Do some code optimization.[EventMeshCommon] Feb 3, 2024
…y server (apache#4739)

* fix 4738

* fix some bug

* fix bug

* remove initProducerManager from AbstractRemotingServer init

* bug fix

* bug fix

* some enhance

* some enhance

* add admin bootstrap

* some enhance

* remove HttpHandlerManager and ClientManageController.

* modify some unit test

* add admin http handlermanager
Copy link
Member

@Pil0tXia Pil0tXia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not all members in the EventMeshCommon class are shared across the entire project. Some members are used in the client.tcp package, while others are used in both the sdk module and the client package.

Therefore, it is not a good idea to directly move the EventMeshCommon class, which originally belongs to the client.tcp package, to the common module. It requires a more detailed and clear separation to unify all related usages.

…_patch_4763

* 'fix_patch_4763' of github.com:scwlkq/eventmesh:
  move EventMeshCommon class to common module
@scwlkq scwlkq closed this Feb 15, 2024
@scwlkq scwlkq deleted the fix_patch_4763 branch February 15, 2024 16:28
@Pil0tXia
Copy link
Member

Is there any obstacles in this PR?

@scwlkq scwlkq restored the fix_patch_4763 branch February 21, 2024 11:40
@scwlkq scwlkq reopened this Feb 21, 2024
@scwlkq
Copy link
Contributor Author

scwlkq commented Feb 21, 2024

Is there any obstacles in this PR?

Closed because I thought the issue was meaningless hahaha.

@scwlkq scwlkq requested a review from Pil0tXia March 25, 2024 14:01
Copy link
Member

@Pil0tXia Pil0tXia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EventMeshCommon class is designed to store constants of EventMesh SDK. It should be kept in org.apache.eventmesh.client package although it is referenced by other protocols.

Copy link
Contributor

It has been 60 days since the last activity on this pull request. I am reaching out here to gently remind you that the Apache EventMesh community values every pull request, and please feel free to get in touch with the reviewers at any time. They are available to assist you in advancing the progress of your pull request and offering the latest feedback.

If you encounter any challenges during development, seeking support within the community is encouraged. We sincerely appreciate your contributions to Apache EventMesh.

@github-actions github-actions bot added Stale and removed Stale labels Jun 10, 2024
@Pil0tXia Pil0tXia added the waiting for contributor PR is awaiting the contributor's response to the review for further evaluation. label Jun 12, 2024
Copy link
Contributor

It has been 60 days since the last activity on this pull request. I am reaching out here to gently remind you that the Apache EventMesh community values every pull request, and please feel free to get in touch with the reviewers at any time. They are available to assist you in advancing the progress of your pull request and offering the latest feedback.

If you encounter any challenges during development, seeking support within the community is encouraged. We sincerely appreciate your contributions to Apache EventMesh.

Copy link
Contributor

It has been 60 days since the last activity on this pull request. I am reaching out here to gently remind you that the Apache EventMesh community values every pull request, and please feel free to get in touch with the reviewers at any time. They are available to assist you in advancing the progress of your pull request and offering the latest feedback.

If you encounter any challenges during development, seeking support within the community is encouraged. We sincerely appreciate your contributions to Apache EventMesh.

@github-actions github-actions bot added Stale and removed Stale labels Apr 14, 2025
Copy link
Contributor

It has been 60 days since the last activity on this pull request. I am reaching out here to gently remind you that the Apache EventMesh community values every pull request, and please feel free to get in touch with the reviewers at any time. They are available to assist you in advancing the progress of your pull request and offering the latest feedback.

If you encounter any challenges during development, seeking support within the community is encouraged. We sincerely appreciate your contributions to Apache EventMesh.

@github-actions github-actions bot added Stale and removed Stale labels Jun 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for contributor PR is awaiting the contributor's response to the review for further evaluation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] Do some code optimization.[EventMeshCommon]