libnetconf2 icon indicating copy to clipboard operation
libnetconf2 copied to clipboard

In what condition, queue in nc_pollsession may have multi members with same value?

Open lumanyu180 opened this issue 6 years ago • 5 comments

Hi,

I have a problem, nc_ps_queue_remove_id: internal error. It has many such error. I want to know, in what condition, it can occur. Thanks very much.

lumanyu180 avatar Dec 19 '19 11:12 lumanyu180

Hi, it should never occur, hence the error. What libnetconf2 version are you using?

Regards, Michal

michalvasko avatar Dec 19 '19 13:12 michalvasko

Hi,

Thanks for your reply , i use libnetconf2 with 2-0.12-r2。It occurs suddenly, and i don't know why . When it occurs, I found queue_len is queue_len, but in fact only 5 threads in queue。So it seems one thread enter the queue, but it does not leave。

lumanyu180 avatar Dec 20 '19 02:12 lumanyu180

Hi, it would be great if you could update to the current libnetconf2 (master, devel or the latest release). You can then turn on debugging and you should see all the PS queue changes which should make the problem obvious. Or you can at least use patch 9129095f3351ce89f58bf4e81686f71f95274f50 that adds these debug messages.

Regards, Michal

michalvasko avatar Dec 20 '19 07:12 michalvasko

Hi, I try to use patch 9129095, but the debug messages are too many. And i don't know the condition it occurs , may be it occurs after 5 days or more. So i don't know how to resolve the problem.

lumanyu180 avatar Dec 20 '19 09:12 lumanyu180

Hi, I do not think there is any other way how to debug this. Just log it all into a file and when the problem occurs, attach the full log file here.

Regards, Michal

michalvasko avatar Dec 20 '19 09:12 michalvasko