db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Van Couvering <David.Vancouver...@Sun.COM>
Subject Re: [jira] Commented: (DERBY-1466) Network Server should flush the PrintWriter after console output
Date Thu, 13 Jul 2006 22:25:47 GMT

Kathey Marsden (JIRA) wrote:
>     [ http://issues.apache.org/jira/browse/DERBY-1466?page=comments#action_12420953 ]

> Kathey Marsden commented on DERBY-1466:
> ---------------------------------------
> Hi Sunitha,
> I do not have an opinion on implementation but think it is important for the  console
printwriter to flush whenever there is a message.    I don't  think it is a performance issue.
 If nothing goes wrong this is just the startup and the shutdown message.  If something does
go wrong, we *really* want to see it because  if there is a crash of some  sort it will never
be seen,  especailly with DERBY-1456 outstanding.
> Kathey
>> Network Server should flush the PrintWriter after console output
>> ----------------------------------------------------------------
>>          Key: DERBY-1466
>>          URL: http://issues.apache.org/jira/browse/DERBY-1466
>>      Project: Derby
>>         Type: Improvement
>>   Components: Network Server
>>     Versions:
>>     Reporter: Kathey Marsden
>> If Network Server is started with a PrintWriter specified for console output it will
not automatically flush output such as  starting the server.  This can be confusing as the
console output shows no activity.
>> Users currently need to specify the PrintWriter to autoflush  e.g.
>>  starterWriter = new PrintWriter(new FileOutputStream(new File(SERVER_START_LOG)),true);

>> derbyServer = new NetworkServerControl();
>>  derbyServer.start(starterWriter); 
>> For repro see:
>> http://www.nabble.com/Questions-about-Network-Server-API-Behavior-p5055814.html
>> And change the following line in the program to not autoflush as follows:
>> starterWriter = new PrintWriter(new FileOutputStream(new File(SERVER_START_LOG)),false);


View raw message