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

Support send msgs to exchange and flush msgs from exchange to parquet #1560

Merged
merged 20 commits into from Dec 14, 2023

Conversation

wanghaEMQ
Copy link
Member

  1. Support sends msgs to exchange in parallel
  2. Support flush msgs got from exchange to parquet.

Signed-off-by: wanghaemq <wangwei@emqx.io>
Signed-off-by: wanghaemq <wangwei@emqx.io>
Signed-off-by: wanghaemq <wangwei@emqx.io>
Signed-off-by: wanghaemq <wangwei@emqx.io>
Signed-off-by: wanghaemq <wangwei@emqx.io>
Signed-off-by: wanghaemq <wangwei@emqx.io>
Signed-off-by: wanghaemq <wangwei@emqx.io>
Signed-off-by: wanghaemq <wangwei@emqx.io>
Signed-off-by: wanghaemq <wangwei@emqx.io>
Signed-off-by: wanghaemq <wangwei@emqx.io>
Signed-off-by: wanghaemq <wangwei@emqx.io>
Signed-off-by: wanghaemq <wangwei@emqx.io>
…f aio due to queue flush in parquet.

Signed-off-by: wanghaemq <wangwei@emqx.io>
@wanghaEMQ
Copy link
Member Author

Needs PR nanomq/NanoNNG#765 to be merged

Signed-off-by: wanghaemq <wangwei@emqx.io>
Signed-off-by: wanghaemq <wangwei@emqx.io>
nanomq/webhook_post.c Fixed Show fixed Hide fixed
nanomq/webhook_post.c Fixed Show fixed Hide fixed
nanomq/webhook_post.c Fixed Show fixed Hide fixed
nanomq/webhook_post.c Fixed Show fixed Hide fixed
nanomq/webhook_post.c Fixed Show fixed Hide fixed
nanomq/webhook_post.c Fixed Show fixed Hide fixed
nanomq/webhook_post.c Fixed Show fixed Hide fixed
Copy link

codecov bot commented Dec 13, 2023

Codecov Report

Attention: 76 lines in your changes are missing coverage. Please review.

Comparison is base (5e2883f) 57.83% compared to head (7aaf953) 57.26%.

❗ Current head 7aaf953 differs from pull request most recent head 4afdde9. Consider uploading reports for the commit 4afdde9 to get more accurate results

Files Patch % Lines
nanomq/webhook_post.c 0.00% 72 Missing ⚠️
nanomq/apps/broker.c 33.33% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1560      +/-   ##
==========================================
- Coverage   57.83%   57.26%   -0.57%     
==========================================
  Files          18       18              
  Lines        6557     6622      +65     
==========================================
  Hits         3792     3792              
- Misses       2765     2830      +65     

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

Signed-off-by: wanghaemq <wangwei@emqx.io>
nanomq/apps/broker.c Outdated Show resolved Hide resolved
nanomq/apps/broker.c Outdated Show resolved Hide resolved
@@ -1593,6 +1593,7 @@ decode_pub_message(nano_work *work, uint8_t proto)
// payload
pub_packet->payload.len =
(uint32_t) (msg_len - (size_t) used_pos);
nng_msg_set_payload_ptr(msg, msg_body + pos);
Copy link
Member

Choose a reason for hiding this comment

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

cool

nanomq/webhook_post.c Outdated Show resolved Hide resolved
Signed-off-by: wanghaemq <wangwei@emqx.io>
Signed-off-by: wanghaemq <wangwei@emqx.io>
* FIX [hook] Fix the wrong num_ctx.

Signed-off-by: wanghaemq <wangwei@emqx.io>
*nkey = g_msg_index++;
nng_mtx_unlock(hook_conf->ex_mtx);

if (nng_aio_busy(aio))
Copy link
Member

Choose a reason for hiding this comment

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

no need to check busy

@JaylinYu JaylinYu merged commit 592dd3d into master Dec 14, 2023
81 of 82 checks passed
@JaylinYu JaylinYu deleted the wangha/dev branch December 14, 2023 07:10
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 this pull request may close these issues.

None yet

3 participants