pcp
[Top] [All Lists]

pcp updates - pmLookupName()

To: pcp@xxxxxxxxxxx
Subject: pcp updates - pmLookupName()
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Wed, 22 Apr 2015 10:23:10 +1000
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
Changes committed to git://git.pcp.io/kenj/pcp master

Ken McDonell (1):
      libpcp/pmns.c: pmLookupName() fix up

 man/man3/pmlookupname.3 |   94 ++++++++++++++++-
 qa/404.out              |   12 +-
 qa/901.out              |   12 +-
 qa/909                  |  122 +++++++++++++++++++++++
 qa/909.out              |  131 ++++++++++++++++++++++++
 qa/group                |    1 
 qa/src/interp_bug.c     |   10 +
 qa/src/interp_bug2.c    |   22 +++-
 qa/src/lookupnametest.c |   53 +++++++++-
 qa/src/multifetch.c     |    3 
 qa/src/multithread5.c   |    5 
 qa/src/multithread6.c   |    5 
 qa/src/multithread7.c   |    5 
 qa/src/multithread8.c   |    5 
 qa/src/multithread9.c   |    5 
 qa/src/permfetch.c      |    2 
 qa/src/torture_api.c    |    6 -
 src/libpcp/src/pmns.c   |  252 +++++++++++++++++++++++++++++++++++-------------
 src/pmcd/src/dopdus.c   |   83 +++++++++------
 19 files changed, 694 insertions(+), 134 deletions(-)

Details ...

commit d26ac520e34c42a07825864dc7db84b4bee300bf
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Wed Apr 22 10:17:33 2015 +1000

    libpcp/pmns.c: pmLookupName() fix up
    
    Complete audit of pmLookupName() error handling, to ensure we are
    consistent across all of
    - local PMNS (with and without a current context)
    - remote host context
    - local context
    - archive context
    for all types of metrics, but especially DYNAMIC metrics.
    
    Mostly in libpcp, but also a small pmcd change.
    
    pmLookupName() man page updated to reflect the real error handling
    protocol and verified example code added.
    
    As a by-product, discovered that pmNameID() and pmNameAll() were
    broken for DYNAMIC metrics, so drive-by fix for these as well.
    
    And finally a bunch of QA consequential cleanup.

<Prev in Thread] Current Thread [Next in Thread>