-
Notifications
You must be signed in to change notification settings - Fork 150
TRAFODION-2847 optimize dcs log format #1348
Conversation
|
Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/2261/ |
|
Test Passed. https://jenkins.esgyn.com/job/Check-PR-master/2261/ |
venkat1m
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change will break the LOGS TMUDF feature which can be used to fetch and aggregate Trafodion log entries across all nodes via SQL. We need the Node Number, PIN and Process Name. When looking at a consolidated view we want to identify the node and process name that emitted the log event.
Try this SQL query to see the expected columns and make sure it can pick up the DCS log entries and the log message is parsed correctly.
select *from udf(event_log_reader()) limit 1;
|
Can one of the admins verify this patch? |
|
Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/2284/ |
|
Can one of the admins verify this patch? |
|
@DaveBirdsall The LOG reader UDF is trafodion/core/sql/sqludr/SqlUdrPredefLogReader.cpp . |
|
Test Passed. https://jenkins.esgyn.com/job/Check-PR-master/2284/ |
|
I am a little confused about this , although select *from udf(event_log_reader()) limit 1; seems not have problem , so close it first. |
previous logs look like
2017-12-14 05:31:11,417, INFO, org.trafodion.dcs.util.VersionInfo, Node Number: , CPU: , PIN: , Process Name: , , ,Dcs 2.3.0
2017-12-14 05:31:11,417, INFO, org.trafodion.dcs.util.VersionInfo, Node Number: , CPU: , PIN: , Process Name: , , ,Revision 1efa9db
2017-12-14 05:31:11,417, INFO, org.trafodion.dcs.util.VersionInfo, Node Number: , CPU: , PIN: , Process Name: , , ,Compiled by traf on Thu Dec 14 05:30:52 UTC 2017
2017-12-14 05:31:12,544, INFO, org.trafodion.dcs.master.DcsMaster, Node Number: , CPU: , PIN: , Process Name: , , ,Connected to ZooKeeper
now logs look like
2017-12-14 10:57:08,949, [Thread-2], INFO, org.trafodion.dcs.util.VersionInfo.logVersion(VersionInfo.java:107) | Dcs 2.3.0
2017-12-14 10:57:08,952, [Thread-2], INFO, org.trafodion.dcs.util.VersionInfo.logVersion(VersionInfo.java:107) | Revision 1efa9db
2017-12-14 10:57:08,953, [Thread-2], INFO, org.trafodion.dcs.util.VersionInfo.logVersion(VersionInfo.java:107) | Compiled by traf on Thu Dec 14 09:46:05 UTC 2017
2017-12-14 10:57:10,071, [Thread-2], INFO, org.trafodion.dcs.master.DcsMaster.run(DcsMaster.java:141) | Connected to ZooKeeper