Originally posted by: Bhoju
Hi All,
We have a typical problem in our production system as described below. Request an expert review of this problems and solution suggestions from the group.
1. There is a launcher system file which listen on input queue and get triggered by appearance of message on the issue. This system file reads the message from queue, do some processing with the data from mq message and APPEND the content of the message to a another file on file system. (Say File X)
2. There is another luancher system file which runs every 1 minutes and execute a shell script which counts number of records in the file X (Being created and modified by step 1 launcher system) and once the record count reaches to certain number renames the file X to say file Y
3. This file Y is moved to another location and processed to a database.
The issue is sometimes (Not very often) the second system file (in Step 2) renames the file while first system file (In step 1) is halfway writing it. In short these two watches are not sychronized and caused issue sometimes.
I have analyzed and thought of different solutions to synchronize these two watches to make sure that when system file 1 is writing the file, the other system file waits for writing to be completed before processing it further. Problem is i cannot replicate the issue on test server even though it happens sometimes in production.
Could the group please advise a way to replicate such situation using launcher system file, maps and shell scripts, if its replicated once, i can think of multiple options to solve this.
Thanks in advance.
#DataExchange#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender