ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexWebSphere Message Broker SupportDataflowengine not releasing file lock after write

Post new topicReply to topic
Dataflowengine not releasing file lock after write View previous topic :: View next topic
Author Message
chaitanyauk
PostPosted: Thu Nov 02, 2017 9:41 pm Post subject: Dataflowengine not releasing file lock after write Reply with quote

Novice

Joined: 16 Apr 2017
Posts: 17

Hi Experts,

I am using java compute node to write to a file using log4j(One provided by the Log4j, not the IBM provided Log4j).
I am using Rollingappender to write the file. For the fresh deployment of the flow the rollng appender is working fine.But the for the subsequent write it is appending to the same file even after it is crossing maxFileSize.
The problem I see is that the DataFlowEngine is locking the file even after the write by log4j.
So is there any way to make dataflowengine to release the file after the write?
I am using IIBv10.

Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Nov 03, 2017 6:21 am Post subject: Re: Dataflowengine not releasing file lock after write Reply with quote

Grand Poobah

Joined: 18 Nov 2003
Posts: 19382
Location: LI,NY

chaitanyauk wrote:
Hi Experts,

I am using java compute node to write to a file using log4j(One provided by the Log4j, not the IBM provided Log4j).
I am using Rollingappender to write the file. For the fresh deployment of the flow the rollng appender is working fine.But the for the subsequent write it is appending to the same file even after it is crossing maxFileSize.
The problem I see is that the DataFlowEngine is locking the file even after the write by log4j.
So is there any way to make dataflowengine to release the file after the write?
I am using IIBv10.


Best practice says use java.util.logging and not log4j
You can have custom formatting classes to make the output more log4j like...
Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
chaitanyauk
PostPosted: Mon Nov 06, 2017 9:37 pm Post subject: Reply with quote

Novice

Joined: 16 Apr 2017
Posts: 17

Thanks for the reply.

But I need to implement RollingAppender.

Do you have any idea on IIB's this behavior?

Is there any way to release this file lock?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Nov 07, 2017 5:47 am Post subject: Reply with quote

Grand Poobah

Joined: 18 Nov 2003
Posts: 19382
Location: LI,NY

chaitanyauk wrote:
Thanks for the reply.

But I need to implement RollingAppender.

Do you have any idea on IIB's this behavior?

Is there any way to release this file lock?

I doubt very much so. Don't forget that some of that logging output gets cached an thus written in a delayed manner. I would not try to bounce the broker to release the file lock. Bouncing the eg (now Integration Server) should be enough. On the other hand you say you need to implement RollingAppender -- wrong you WANT to implement RollingAppender, but you can do that in java.util.logging by specifying the number of files to write to. I believe the lowest is always the latest unless there are some concurrency issues while logging...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
chaitanyauk
PostPosted: Wed Nov 08, 2017 3:34 am Post subject: Reply with quote

Novice

Joined: 16 Apr 2017
Posts: 17

Thanks for the suggestion.

Will look into some other approach.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportDataflowengine not releasing file lock after write
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.