[ 
https://issues.apache.org/jira/browse/PROTON-2396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17448827#comment-17448827
 ] 

ASF GitHub Bot commented on PROTON-2396:
----------------------------------------

codecov-commenter commented on pull request #340:
URL: https://github.com/apache/qpid-proton/pull/340#issuecomment-978330608


   # 
[Codecov](https://codecov.io/gh/apache/qpid-proton/pull/340?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
 Report
   > Merging 
[#340](https://codecov.io/gh/apache/qpid-proton/pull/340?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
 (ab304d5) into 
[main](https://codecov.io/gh/apache/qpid-proton/commit/ba4a773c6c5d4ceeb5b680ab57d395a1287bdc2a?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
 (ba4a773) will **increase** coverage by `19.83%`.
   > The diff coverage is `n/a`.
   
   > :exclamation: Current head ab304d5 differs from pull request most recent 
head b7ffe28. Consider uploading reports for the commit b7ffe28 to get more 
accurate results
   [![Impacted file tree 
graph](https://codecov.io/gh/apache/qpid-proton/pull/340/graphs/tree.svg?width=650&height=150&src=pr&token=UKKzV9XnFF&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)](https://codecov.io/gh/apache/qpid-proton/pull/340?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   
   ```diff
   @@             Coverage Diff             @@
   ##             main     #340       +/-   ##
   ===========================================
   + Coverage   68.22%   88.05%   +19.83%     
   ===========================================
     Files         356       47      -309     
     Lines       73086     2394    -70692     
   ===========================================
   - Hits        49861     2108    -47753     
   + Misses      23225      286    -22939     
   ```
   
   
   | [Impacted 
Files](https://codecov.io/gh/apache/qpid-proton/pull/340?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
 | Coverage Δ | |
   |---|---|---|
   | 
[ruby/lib/core/uri.rb](https://codecov.io/gh/apache/qpid-proton/pull/340/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cnVieS9saWIvY29yZS91cmkucmI=)
 | `74.07% <0.00%> (-25.93%)` | :arrow_down: |
   | 
[cpp/include/proton/uuid.hpp](https://codecov.io/gh/apache/qpid-proton/pull/340/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Y3BwL2luY2x1ZGUvcHJvdG9uL3V1aWQuaHBw)
 | | |
   | 
[cpp/src/uuid.cpp](https://codecov.io/gh/apache/qpid-proton/pull/340/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Y3BwL3NyYy91dWlkLmNwcA==)
 | | |
   | 
[cpp/src/receiver\_options.cpp](https://codecov.io/gh/apache/qpid-proton/pull/340/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Y3BwL3NyYy9yZWNlaXZlcl9vcHRpb25zLmNwcA==)
 | | |
   | 
[cpp/src/credit\_test.cpp](https://codecov.io/gh/apache/qpid-proton/pull/340/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Y3BwL3NyYy9jcmVkaXRfdGVzdC5jcHA=)
 | | |
   | 
[c/src/core/object/map.c](https://codecov.io/gh/apache/qpid-proton/pull/340/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Yy9zcmMvY29yZS9vYmplY3QvbWFwLmM=)
 | | |
   | 
[cpp/src/message\_test.cpp](https://codecov.io/gh/apache/qpid-proton/pull/340/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Y3BwL3NyYy9tZXNzYWdlX3Rlc3QuY3Bw)
 | | |
   | 
[cpp/include/proton/internal/pn\_unique\_ptr.hpp](https://codecov.io/gh/apache/qpid-proton/pull/340/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Y3BwL2luY2x1ZGUvcHJvdG9uL2ludGVybmFsL3BuX3VuaXF1ZV9wdHIuaHBw)
 | | |
   | 
[python/tests/proton-test](https://codecov.io/gh/apache/qpid-proton/pull/340/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHl0aG9uL3Rlc3RzL3Byb3Rvbi10ZXN0)
 | | |
   | 
[python/proton/\_message.py](https://codecov.io/gh/apache/qpid-proton/pull/340/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHl0aG9uL3Byb3Rvbi9fbWVzc2FnZS5weQ==)
 | | |
   | ... and [300 
more](https://codecov.io/gh/apache/qpid-proton/pull/340/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
 | |
   
   ------
   
   [Continue to review full report at 
Codecov](https://codecov.io/gh/apache/qpid-proton/pull/340?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
   > **Legend** - [Click here to learn 
more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by 
[Codecov](https://codecov.io/gh/apache/qpid-proton/pull/340?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
 Last update 
[ba4a773...b7ffe28](https://codecov.io/gh/apache/qpid-proton/pull/340?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
 Read the [comment 
docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


> [cpp] Seed in uuid.cpp can lead to duplicates
> ---------------------------------------------
>
>                 Key: PROTON-2396
>                 URL: https://issues.apache.org/jira/browse/PROTON-2396
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: cpp-binding
>         Environment: RHEL7 running in OpenStack
> docker-ce 19.03.5
> qpid-proton 0.28.0
> qpid-cpp 1.37.0
>            Reporter: Ryan Herbert
>            Assignee: Rakhi Kumari
>            Priority: Major
>
> The random number seed used in qpid-proton/cpp/src/uuid.cpp is based on the 
> current time and the PID of the running process.  When starting multiple 
> proton instances simultaneously in Docker containers via automated 
> deployment, there is a high probability that multiple instances will get the 
> same seed since the PID within the Docker container is consistent and the 
> same across multiple copies of the same Docker container.
> This results in duplicate link names when binding to exchanges. When this 
> happens, the queue gets bound to two different exchanges, and requests sent 
> to one exchange will get responses from both services.
> To work around this error, we are specifying the link name via 
> sender_options/receiver_options every time we open a new sender/receiver, and 
> we also specify the container_id in connection_options.  We are using 
> std::mt19937_64 seeded with 
> std::chrono::system_clock::now().time_since_epoch().count() to generate the 
> random part of our link names, which seems to have enough randomness that it 
> has eliminated the problem for us.
> As pointed out in the Proton user forum, std::random_device is probably a 
> better choice for initializing the seed.
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to