-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented capability to separate diff logs via log4j2 #315
Conversation
./spark-submit --properties-file cdm.properties \ | ||
--conf spark.cdm.schema.origin.keyspaceTable="<keyspacename>.<tablename>" \ | ||
--conf "spark.executor.extraJavaOptions='-Dlog4j.configurationFile=log4j2.properties'" \ | ||
--conf "spark.driver.extraJavaOptions='-Dlog4j.configurationFile=log4j2.properties'" \ |
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.
What will be the name of the 2 log files that will get generated? Could we show that as an example? TY
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.
Yes, the details of the log file are in the log4j2.properties file. CDM users can change the details as needed, but if they use the file as-is, the logs will be directed 3 ways as below
- All non app related logs (i.e. logs generated by libraries & not CDM code) will continue to be written to console
- All logs generated by CDM code except for the
diff
related logs (i.e. details ofmissing
&mismatched
rows) will be recorded in./cdm_logs/cdm.log
file. - All
diff
related logs (i.e. details ofmissing
&mismatched
rows) will be recorded in./cdm_logs/cdm_diff.log
file.
Note: All log files will be rolled when they cross the set size limit (default is 10MB), there can be 100 rollovers by default.
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.
For context, most customers will not use this feature, but some customers who plan to run only validation & expect to have a lot of diff
rows want a separate file for such records in a separate file instead of having to grep
& find it.
RELEASE.md
Outdated
@@ -1,5 +1,6 @@ | |||
# Release Notes | |||
## [4.4.2] - 2024-10-TBD | |||
## [4.4.2] - 2024-10-03 |
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.
## [4.4.2] - 2024-10-03 | |
## [4.5.0] - 2024-10-03 |
@@ -173,8 +173,6 @@ public List<Number> getNumberList(String propertyName) { | |||
|
|||
@Override | |||
public List<Integer> getIntegerList(String propertyName) { | |||
List<Integer> intList = new ArrayList<>(); |
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.
good catch 👍🏼
Looking into what made the build fail |
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.
LGTM 👍🏼
What this PR does: Implements capability to separate diff logs via log4j2
Which issue(s) this PR fixes:
Fixes #
Checklist: