sub.sub_req always fails with "Reason 2437: FAILED: MQRC_NO_RETAINED_MSG" even if there are retained publications for the topic.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyMQI |
Invalid
|
Medium
|
Registry Administrators |
Bug Description
Hi Dariusz,
As discussed in our previous emails...
I must be missing something on this one. I desperately need a second pair of eyes.
The new sub.sub_req method (which calls MQSUBRQ) always fails with: "Reason 2437: FAILED: MQRC_NO_
At this stage I am not so sure anymore. I have been fishing around this one for a while. I have confirmed that the options passed in the "c" program are the same in the python one. I'm thinking it has something to do with identifying the topic - but the topic string looks fine. Other things like the options on both the SD and the SRO looks fine and compare between the c program and python.
The code can be found here: lp:~johannes-wagener/pymqi/retain-pub-issue
Please note: the code in the above branch contains debugging statements, experimentation, other tests and lots of output to stdout. I would suggest you only use "test*" in the "src" directory along with the current pub-sub branch revision(lp:~pymqi-dev/pymqi/pub-sub).
This is how to reproduce:
1.) run test_pub_retain.py. This will publish a message with the CMQC.MQPMO_RETAIN option.
2.) run test_sub_
3.) run the test_retained_sub "c" program. You will notice that he returns the retained publication every time no matter how many times you run it.
I have not had an opportunity to run this on a different system(even though I doubt it's environment related) - but I will make some time to build it on windows tomorrow.
Your help is greatly appreciated.
Cheers,
H.
Related branches
Changed in pymqi: | |
assignee: | nobody → PyMQI Dev (pymqi-dev) |
importance: | Undecided → Medium |
milestone: | none → 1.2 |
status: | New → Confirmed |
Changed in pymqi: | |
milestone: | 1.2 → 1.3 |
Err, Hannes, are you sure you've commited test_pub_retain.py and test_sub_ from_sub_ not_managed_ durable_ retained_ publications. py to the repo? I can see retain- pub-issue/ src/test_ retained_ sub.c but not the other files you mentioned?
Not sure if that's the case or am I simply doing something very stupid :-) but if it's the former then maybe setting these aliases can help in the future?
bzr alias commit="commit --strict"
bzr alias push="push --strict"