Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tStatCatcher, tLogCatcher, and tMSSqlClose

It appears that the tStatCatcher and tLogCatcher are actually run only at the end of a job -- which sort of makes sense given what they collect.  Can anyone confirm?  The problem this appears to create is, when using tMSSqlClose component to end the connection at post-job, it is getting fired before one or the other of the tStat or tLog are completed.

I would have expected that everything was completed before the tPostJob is fired.

 

 

0683p000009Lz10.pngJob design

 

0683p000009Lz0I.pngError because connection was closed before tStatCatcher was able to write to DB

If I remove the tMSSqlClose, it runs without errors -- but then the connection is not closed, right?

0683p000009Lyy7.pngNo error when tMSSqlClose removed

Labels (2)
2 Replies
Jesperrekuh
Specialist
Specialist

Confirmed! And annoying I know.
If your crash is severe (a dirty exit) , everything is gone.
Try using log4j (in community version not supported but possible, in payed it is) and have a process which actually monitors the tail of the log-file (outside this talend job).

One thing some components just write the error to console/stdout which will never end up in your tlogcatcher 0683p000009MA9p.png ... Logging and provenance is horrible in Talend.
Anonymous
Not applicable
Author

We've done something very similar, but rather than writing to a database, we write to a Kafka topic. We then have a consumer that reads from the Kafka topic and pushes the log messages to the ELK stack that comes with the TAC, but you could easily write a consumer that writes them to the database of your choice.  Better still, once you have the log messages on the Kafka topic, you could write them to both an ELK setup and database at the same time.