paulmooring / knife-stalenodes

Knife plugin for listing stale nodes
Apache License 2.0
4 stars 2 forks source link

Large Day Numbers May Confuse Solr #3

Open sean-horn opened 10 years ago

sean-horn commented 10 years ago

If I supply a large number of days, like the following, knife-stalenodes will return the full list of nodes:

  knife stalenodes -D 4489

A reproduction of this can be done like this (Sometimes it happens at 4485, other times at 4486 or 4489 days)

  for i in {4480..4490};do echo -n "$i : ";knife stalenodes -D $i|wc -l;done

I have checked the output of calculate_time and it looks fine, seemingly no overflow/underflow problems.

rb1980 commented 9 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?