Notes |
|
|
watch out, unregdate is not in the above query. So what is important is regdate + window < unix_timestamp( now() ).
When you saw nodes being batch de-registered what did they had as a regdate? Why was it so low? |
|
|
(0002374)
|
fgaudreault
|
2011-10-21 14:41
|
|
You are right, my regdate was 0 since I registered my devices using raw SQL without updating that field with now(). However, the bug remains, if my regdate is 3 days ago, and my window is 2d, regardless the unregdate, I will still be unregistered. |
|
|
|
Reducing severity since the feature works as intended.
But we will still fix it by setting now + window to unregdate instead of looking at regdate because it gives more control to the administrators if they want to manually alter the unregdate. |
|
|
(0003263)
|
fgaudreault
|
2012-10-29 14:37
|
|
We should only rely on the unregdate. At the registration time, we set the proper unregdate if using mode deadline or mode window. We should NEVER base our decision regarding the regdate.
A network admin should be allowed to mess with the unregdate manually.
I will remove the unnecessary code in node_maintenance. |
|
|
(0003264)
|
fgaudreault
|
2012-10-29 15:02
|
|
Fixed in devel. Cleaned up some useless code. |
|