Hell Andrei,
Thanks for your bug report. I created Mantis Entry 209 to tack this issue.
> hebt-diag-ioc-blm1>log client: lost contact with log server at
> "172.31.72.101:6500" because "S_errno_EPIPE"
> log client: connected to error message log server at "172.31.72.101:6500"
> - I don't see anything in errorLog file!
The log client checks its circuit with the log server only when there is a
message to send. So, in this case, I presume that the log server was
restarted and that the client, trying to communicate over a defunct circuit,
discovered a disconnect. When there is a disconnect all pending messages are
discarded.
> One more time but without "n"
> hebt-diag-ioc-blm1>errlogMessage("Third")
> Thirdvalue = 0 = 0x0
> I see response from errorLog file
> hebt-diag-ioc-blm1.ics.sns.gov: Wed Jul 13 11:38:32 2005 Thirdd+N
This will need to be investigated.
> 3. If I don't use errlogMessage with "\n" all time I see very strange.
> At first, I don't see error message from item 1. At second, I see
> response from errorLog file each time when buffer is full (~1280).
The log server works this way by design - it does not flush its internal
buffer to the file until it sees a '\n'. This behavior is tended to prevent
output from multiple clients (IOCs) from getting mixed together.
Jeff
> -----Original Message-----
> From: Liyu, Andrei [mailto:[email protected]]
> Sent: Wednesday, July 13, 2005 9:54 AM
> To: [email protected]
> Subject: errlogXXX functions and behavior
>
>
> Hi,
>
> 1. When I use errlogMessage first time then
>
> - I see on terminal
>
> hebt-diag-ioc-blm1>errlogMessage("First+N\n")
> First+N
> value = 0 = 0x0
> hebt-diag-ioc-blm1>log client: lost contact with log server at
> "172.31.72.101:6500" because "S_errno_EPIPE"
> log client: connected to error message log server at
> "172.31.72.101:6500"
>
> - I don't see anything in errorLog file!
>
> 2. Then I type again
> hebt-diag-ioc-blm1>errlogMessage("Second+N\n")
> Second+N
> value = 0 = 0x0
> I see response from errorLog file
> hebt-diag-ioc-blm1.ics.sns.gov: Wed Jul 13 11:38:02 2005 Second+N
>
> One more time but without "\n"
> hebt-diag-ioc-blm1>errlogMessage("Third")
> Thirdvalue = 0 = 0x0
> I see response from errorLog file
> hebt-diag-ioc-blm1.ics.sns.gov: Wed Jul 13 11:38:32 2005 Thirdd+N
>
> I suppose this is not ioc that errlog server! If I reboot IOC I see the
> same tail from buffer.
>
> 3. If I don't use errlogMessage with "\n" all time I see very strange.
> At first, I don't see error message from item 1. At second, I see
> response from errorLog file each time when buffer is full (~1280).
>
> 4. Of course, I don't refuse to see a little smart client for text file.
> Where I can choice message by ioc name, system/subsystem/module name and
> so on. And maybe it will work from buffer ... :-)
>
> Have a good day, Andrei Liyu
- References:
- errlogXXX functions and behavior Liyu, Andrei
- Navigate by Date:
- Prev:
RE: iocLogServer change? Allison, Stephanie
- Next:
JCA2 example code John Faucett
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
<2005>
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: errlogXXX functions and behavior Ralph Lange
- Next:
RE: errlogXXX functions and behavior Liyu, Andrei
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
<2005>
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|