Re: Intermittent failure with t/003_logical_slots.pl test on windows - Mailing list pgsql-hackers

From Kyotaro Horiguchi
Subject Re: Intermittent failure with t/003_logical_slots.pl test on windows
Date
Msg-id 20231102.152227.1181847439819636587.horikyota.ntt@gmail.com
Whole thread Raw
In response to Re: Intermittent failure with t/003_logical_slots.pl test on windows  (vignesh C <vignesh21@gmail.com>)
Responses Re: Intermittent failure with t/003_logical_slots.pl test on windows
List pgsql-hackers
At Tue, 31 Oct 2023 18:11:48 +0530, vignesh C <vignesh21@gmail.com> wrote in 
> Few others are also facing this problem with similar code like in:
> https://stackoverflow.com/questions/15882799/fgets-returning-error-for-file-returned-by-popen

I'm inclined to believe that the pipe won't enter the EOF state until
the target command terminates (then the top-level cmd.exe). The target
command likely terminated prematurely due to an error before priting
any output.

If we append "2>&1" to the command line, we can capture the error
message through the returned pipe if any. Such error messages will
cause the subsequent code to fail with an error such as "unexpected
string: 'the output'". I'm not sure, but if this is permissive, the
returned error messages could potentially provide insight into the
underlying issue, paving the way for a potential solution.

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center



pgsql-hackers by date:

Previous
From: Xiang Gao
Date:
Subject: RE: CRC32C Parallel Computation Optimization on ARM
Next
From: Amit Kapila
Date:
Subject: Re: Is this a problem in GenericXLogFinish()?