Skip to content
This repository was archived by the owner on Jun 7, 2021. It is now read-only.

Conversation

@gpj1987
Copy link
Contributor

@gpj1987 gpj1987 commented Dec 15, 2017

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

@Traf-Jenkins
Copy link

Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/2261/

@Traf-Jenkins
Copy link

Copy link
Contributor

@venkat1m venkat1m left a 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;

@DaveBirdsall
Copy link
Contributor

@venkat1m, could you point to the source code for the UDF event_log_reader so that @gpj1987 can change that as well?

@Traf-Jenkins
Copy link

Can one of the admins verify this patch?

@Traf-Jenkins
Copy link

Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/2284/

@Traf-Jenkins
Copy link

Can one of the admins verify this patch?

@venkat1m
Copy link
Contributor

@DaveBirdsall The LOG reader UDF is trafodion/core/sql/sqludr/SqlUdrPredefLogReader.cpp .
But I think the fix should be in the log file format, not the UDF reader. The missing entries need to be added to the log file by the publisher at event generation time. The UDF is just the consumer.

@Traf-Jenkins
Copy link

@gpj1987
Copy link
Contributor Author

gpj1987 commented Jan 11, 2018

I am a little confused about this , although select *from udf(event_log_reader()) limit 1; seems not have problem , so close it first.

@gpj1987 gpj1987 closed this Jan 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants