pcp
[Top] [All Lists]

Re: [pcp] qa/734 - hostname and pmstat

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: [pcp] qa/734 - hostname and pmstat
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Tue, 16 Sep 2014 23:31:11 -0400 (EDT)
Cc: PCP <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <5418A28C.5080302@xxxxxxxxxxxxxxxx>
References: <5418A28C.5080302@xxxxxxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: YiaMfr/4cmT+BTYCIp+Vu5osQeZe1w==
Thread-topic: qa/734 - hostname and pmstat

----- Original Message -----
> Not sure what this one is aiming to test.

Its exercising a fix in pmGetContextHostName(3) - see commit 3f0595ab3 -
where context switching resulted in incorrect hostnames being reported.

> Since pmstat does its own truncation of the hostname this is doomed to
> fail on a long hostname.

Hmm, I guess either a custom qa program is needed (replacing pmstat use)
or the test needs to mirror the pmstat hostname truncation logic.

cheers.

--
Nathan

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