[ https://issues.apache.org/jira/browse/TUBEMQ-354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17196639#comment-17196639 ]
ASF subversion and git services commented on TUBEMQ-354: -------------------------------------------------------- Commit c04065ae4164bce5ffa66787fe0d21ec42301d75 in incubator-tubemq's branch refs/heads/master from gosonzhang [ https://gitbox.apache.org/repos/asf?p=incubator-tubemq.git;h=c04065a ] [TUBEMQ-354]Found a dns translate bug in C/C++ sdk (#267) Co-authored-by: gosonzhang <gosonzh...@tencent.com> > Found a dns translate bug in C/C++ sdk > -------------------------------------- > > Key: TUBEMQ-354 > URL: https://issues.apache.org/jira/browse/TUBEMQ-354 > Project: Apache TubeMQ > Issue Type: Bug > Reporter: Guocheng Zhang > Assignee: Guocheng Zhang > Priority: Major > Labels: pull-request-available > Attachments: image-2020-09-16-10-25-36-558.png > > Time Spent: 20m > Remaining Estimate: 0h > > like below code: > If the updMasterAddrByDns() is called concurrently, it is likely to be > overwritten. The function should only set the content of this translation, > not in the overwrite mode. > https://github.com/apache/incubator-tubemq/blob/master/tubemq-client-twins/tubemq-client-cpp/src/client_service.cc#L278 > !image-2020-09-16-10-25-36-558.png! > And all dns translation operations should be performed under dns_mutex_ > instead of mutex_ -- This message was sent by Atlassian Jira (v8.3.4#803005)