Closed ewertons closed 5 years ago
@sasajl / @ewertons, Is the issue that the receiver module sometimes does not receive messages being sent by EdgeHub? From the information provided, this does seem like a timing related issue, but I am not sure if it is on the EdgeHub side. It is not clear whether the client is able to successfully connect to EdgeHub in the first place. Can you provide EdgeHub debug logs for the repro scenario? If you are unable to repro it with debug logs on, the info logs should also give us some insights into what is going on.
It may be some time to recreate the problem and collect the log. I'm also on vacation shortly. Please check back in a few weeks. thanks.
Please open a new issue with the logs (and the rest of our issue template) when you get back.
Filing on behalf of @sasajl
Description of the issue:
In production, messages are not being received on a defined Module Client output . However, message routing works in the IoT Edge Runtime simulator and also works in production if debug level logging is enabled on the IoT Edge runtime. IoT Edge engineering team has been engaged and did not see any issues. Adding a delay to the container entry script works around the issue.
Code sample exhibiting the issue:
From the sample program, maybe it has to do with the srand() call? Just guessing here. void sampleConnector::iothub_module() { srand((unsigned int)time(NULL));
}
Console log of the issue: