pdns dump udp-queries unsigned int32 #491

Closed
Habbie opened this Issue Apr 26, 2013 · 3 comments

Projects

None yet

1 participant

@Habbie
Member
Habbie commented Apr 26, 2013

When one restarts PowerDNS, the pdns dump statistics for udp-queries becomes the value of a 32-bit unsigned integer.

Before restarting PowerDNS:

/etc/init.d/pdns dump

corrupt-packets=0,deferred-cache-inserts=4766,deferred-cache-lookup=2150,latency=5175,packetcache-hit=0,packetcache-miss=19736,packetcache-size=0,qsize-q=5581,query-cache-hit=0,query-cache-miss=40590,recursing-answers=0,recursing-questions=0,servfail-packets=0,tcp-answers=0,tcp-queries=0,timedout-packets=0,udp-answers=20299,udp-queries=1451,udp4-answers=20299,udp4-queries=20292,udp6-answers=0,udp6-queries=0,

After restarting PowerDNS:

/etc/init.d/pdns dump

corrupt-packets=0,deferred-cache-inserts=0,deferred-cache-lookup=0,latency=0,packetcache-hit=0,packetcache-miss=0,packetcache-size=0,qsize-q=0,query-cache-hit=0,query-cache-miss=0,recursing-answers=0,recursing-questions=0,servfail-packets=0,tcp-answers=0,tcp-queries=0,timedout-packets=0,udp-answers=0,udp-queries=4294967295,udp4-answers=0,udp4-queries=0,udp6-answers=0,udp6-queries=0,

Once a query is received, the integer will reset to 0 and appropriately begin counting.

This is not a major issue, but I'm sure it could cause some strange looking graphs for those using this field, after restarting pdnsd.

@Habbie Habbie was assigned Apr 26, 2013
@Habbie Habbie closed this Apr 26, 2013
@Habbie Habbie added a commit that referenced this issue Apr 26, 2013
@Habbie Habbie import a patch from Kees Monshouwer, closing #491 and #582
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2999 d19b8d6e-7fed-0310-83ef-9ca221ded41b
90b0728
@Habbie
Member
Habbie commented Apr 26, 2013

Author: anon
This is apparent on Debian 6.0.5 64-bit with pdns-static_3.1-1_amd64.deb.

@Habbie
Member
Habbie commented Apr 26, 2013

Author: anon
s/pdnsd/pdns

@Habbie
Member
Habbie commented Apr 26, 2013

Author: peter
fixed in r2999

@mind04 mind04 pushed a commit to mind04/pdns that referenced this issue Apr 26, 2013
peter import a patch from Kees Monshouwer, closing #491 and #582
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2999 d19b8d6e-7fed-0310-83ef-9ca221ded41b
db42f5e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment