-
Notifications
You must be signed in to change notification settings - Fork 97
Feature/tcp admin msg segmentation #279
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
- Fix pre-allocated buffer handling - Solve message corruption because of wrong locking in write function - Add interceptors for tcp_admin
merge master
- Change endpoint handling
lower wait times
Codecov Report
@@ Coverage Diff @@
## master #279 +/- ##
=========================================
Coverage ? 68.61%
=========================================
Files ? 137
Lines ? 27382
Branches ? 0
=========================================
Hits ? 18788
Misses ? 8594
Partials ? 0
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #279 +/- ##
==========================================
+ Coverage 68.30% 68.53% +0.22%
==========================================
Files 136 137 +1
Lines 27371 27443 +72
==========================================
+ Hits 18696 18808 +112
+ Misses 8675 8635 -40
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #279 +/- ##
==========================================
+ Coverage 68.17% 68.26% +0.09%
==========================================
Files 148 149 +1
Lines 30088 30171 +83
==========================================
+ Hits 20511 20597 +86
+ Misses 9577 9574 -3
Continue to review full report at Codecov.
|
rbulter
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.
I have updated the review comments
|
@rbulter you have missed some review comments. Please check them all. |
rbulter
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.
Done
Oipo
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.
Still plenty of changes requested left, some from previous review. Cannot approve this PR until those have been resolved.
|
Our IVV test where failing for the updated PubSub TCP Admin, apparently this update does not work with wire protocol v1. @rbulter Is it correct that the updated PubSub TCP Admin does not work with wire protocol v1? Maybe add an pubsubEndpoint_matchPublisherWithRequestedProtocolAndSerializer function which is used by the 'normal' pubsubEndpoint_matchPublisher and can be called directly by the tcp admin match with a filled in requestedProtcol="envelope-v2" argument. And the same for pubsubEnd_matchSubscriber. |
pnoltes
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.
see comment about wire protocol
|
The pubsub admin should work with wire protocol v1, in the past it was working. I will add a unit test |
|
I added a test for wire_v1 and found the error in wire_v1. During the refactor of wire_v1 a flag was removed, which is needed by tcp_admin for message segmentation |
Oipo
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.
IVV tests are green with the latest changes. The only thing left now is to merge develop into this branch, as that will solve the conflicts and fix the OSX build.
Thank you for the effort put into fixing review comments.
| bool pubsub_tcpTopicSender_isPassive(pubsub_tcp_topic_sender_t *sender); | ||
| long pubsub_tcpTopicSender_serializerSvcId(pubsub_tcp_topic_sender_t *sender); | ||
| long pubsub_tcpTopicSender_protocolSvcId(pubsub_tcp_topic_sender_t *sender); | ||
| /* Note this functions are deprecated and not used */ |
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.
👍
| if ( handlingThreadSleepTime >= 0 ) { | ||
| manager->handlingThreadSleepTime = handlingThreadSleepTime * 1000L; | ||
| } | ||
| manager->handlingThreadSleepTime = celix_bundleContext_getPropertyAsLong(context, PUBSUB_TOPOLOGY_MANAGER_HANDLING_THREAD_SLEEPTIME_MS_KEY, manager->handlingThreadSleepTime); |
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.
👍
No description provided.