Open sean-horn opened 10 years ago
Was this ever solved? I am seeing a similar issue, but on the lower end: If I query for anything less than 10 days, I get the whole list.
$ for i in {1..30};do echo -n "$i : ";knife stalenodes -D $i|wc -l;done
1 : 899
2 : 899
3 : 899
4 : 899
5 : 899
6 : 899
7 : 899
8 : 899
9 : 813
10 : 158
11 : 158
12 : 158
13 : 157
14 : 157
15 : 157
Seems like a similar/same issue. I have two chef servers, and it's only happening on one of them. Any ideas why?
If I supply a large number of days, like the following, knife-stalenodes will return the full list of nodes:
A reproduction of this can be done like this (Sometimes it happens at 4485, other times at 4486 or 4489 days)
I have checked the output of calculate_time and it looks fine, seemingly no overflow/underflow problems.