-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting Heartbeat Interval with API is using milliseconds instead of seconds #2292
Comments
Will this be fixed? |
I need to first repro. You can help me if you can confirm this is an issue on 2.9.9 (last release). But this is something I would do hopefully this week. |
I re-read what you are doing, you set the HeartbeatInterval to a string? It is a number value, which is the number of seconds. |
I tested it with V2.9.9 and the problem still exists. |
Thank you so much, now I understand better, you are using the start/stop API. Thanks for the details! And thanks for re-testing. |
I think a found the problem. |
Great find, yes, I also just fixed this in the open pull request and added unit tests for this API. |
…2297) * Update nuget dependencies * Publish Start/stop tests * Fix seconds heartbeat bug #2292 * Fix condition handling stop working and heartbeat timer stopping on reconnect #2288 * Add ipi option #2299 * Session per writer #2298 * Setting ska and slt options to default to 0 #2294 * Add auto calculation of qs. #2300 * Document browse path formats and fix issue when node id is missing #2296 * API and sample to dump session, channel and subscription diagnostics from server #2303 * Better validation for missing node id on inputs to the configuration API.
Hello,
I'm using the publisher module und web api with version 2.9.2.
When I'm publishing a node I set the
PublishingInterval
,SamplingInterval
andHeartbeatInterval
to a string of the format:[d.]hh:mm:ss[.ffffff]
like written in the documentation.The backend converts this timespan string to milliseconds, eg. '00:01:00' to '60000' milliseconds.
However since the HeartbeatInterval is configured in seconds, I'm not sure why this is different but hey, the resulting Interval is 60000 seconds aka '16h and 40minutes'.
So the HeartbeatInterval is off by a factor of 1000!!
Also when reading the published nodes, the api returns
00:01:00
although it's 60000 seconds, you can look it up in the config file. After restarting the module and reading the published nodes again, the api returns the "correct"16:40:00
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
HeartbeatInterval is interpreted properly.
The text was updated successfully, but these errors were encountered: