Bug in select MessageQueue
See original GitHub issueWhen SendLatencyFaultEnable is enabled and the currently selection is available, you need to make sure that the currently selected broker is not the last selected. But this judgment is wrong for now:
// MQFaultStrategy#selectOneMessageQueue
MessageQueue mq = tpInfo.getMessageQueueList().get(pos);
if (latencyFaultTolerance.isAvailable(mq.getBrokerName())) {
// this judgment shuold be change to if(!mq.getBrokerName().equals(lastBrokerName))
if (null == lastBrokerName || mq.getBrokerName().equals(lastBrokerName))
return mq;
}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Message queues : Bug with receiving - Stack Overflow
When I write to the message queue, I do " msgsnd(qid, &msgbuf, 32 * sizeof(int), IPC_NOWAIT); ", the problem seems to be with...
Read more >select() on Message Queue LG #92 - Linux Gazette
msgqToFd() - A new non-standard system call It returns a file descriptor corresponding to a message queue , which can be used with...
Read more >You must restart the Message Queuing service to clean up ...
Locate and select the following registry subkey: HKEY_LOCAL_MACHINE\ Software\Microsoft\MSMQ\Parameters. From the Edit menu, click ADD VALUE.
Read more >Fast Message Queue (FMQ) | Android Open Source Project
In an unsynchronized queue, the read position (which is local to each MessageQueue object in unsynchronized queues) is always set to 0 during...
Read more >Using Message Queues In C#
The Microsoft implementation of Message Queues is MSMQ (Microsoft Message Queuing) ... Select, Microsoft Message Queue server and click “ok”.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
IMO,
if (null == lastBrokerName || mq.getBrokerName().equals(lastBrokerName))
this code line is redundant.link #1593