question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug in select MessageQueue

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
RongtongJincommented, Nov 22, 2019

IMO, if (null == lastBrokerName || mq.getBrokerName().equals(lastBrokerName)) this code line is redundant.

0reactions
ShannonDingcommented, Apr 1, 2020

link #1593

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found