Skip to content
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

[BEAM-8882] Fully populate log messages. #10292

Merged
merged 3 commits into from
Dec 6, 2019

Conversation

robertwb
Copy link
Contributor

@robertwb robertwb commented Dec 5, 2019


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- Build Status --- --- Build Status
Java Build Status Build Status Build Status Build Status
Build Status
Build Status
Build Status Build Status Build Status
Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
--- Build Status
Build Status
Build Status
Build Status
--- --- Build Status
XLang --- --- --- Build Status --- --- ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status
Build Status
Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@robertwb robertwb force-pushed the fnapi-logging branch 4 times, most recently from ecaed90 to 586aaf0 Compare December 5, 2019 09:45
@@ -1036,7 +1036,7 @@ def create(factory, transform_id, transform_proto, parameter, consumers):
[WindowedValueCoder(source.default_output_coder())])
return factory.augment_oldstyle_op(
operations.ReadOperation(
transform_proto.unique_name,
common.NameContext(transform_proto.unique_name, transform_id),
spec,
factory.counter_factory,
factory.state_sampler),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(this is the closest to the line that I could comment on)
It seems like the transform id/name context is not being propagated through for the ImpulseReadOperation. Should we do it there for consistency as well.

def emit(self, record):
log_entry = beam_fn_api_pb2.LogEntry()
log_entry.severity = self.LOG_LEVEL_MAP[record.levelno]
log_entry.severity = self.map_log_level(record.levelno)
log_entry.message = self.format(record)
log_entry.thread = record.threadName
log_entry.log_location = record.module + '.' + record.funcName
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if it would be more natural to put filename:lineno instead of module.funcname but up to you. I understand that the LogEntry proto description lists Python to be module.funcname but that could be changed. Depends on what is more natural for Python developers.

@robertwb
Copy link
Contributor Author

robertwb commented Dec 5, 2019

Run Python2_PVR_Flink PreCommit

@robertwb
Copy link
Contributor Author

robertwb commented Dec 6, 2019

Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

@robertwb
Copy link
Contributor Author

robertwb commented Dec 6, 2019

Run Python PreCommit

1 similar comment
@robertwb
Copy link
Contributor Author

robertwb commented Dec 6, 2019

Run Python PreCommit

@robertwb robertwb merged commit 65de8b5 into apache:master Dec 6, 2019
@robertwb robertwb deleted the fnapi-logging branch December 9, 2019 19:38
robertwb added a commit to robertwb/incubator-beam that referenced this pull request Dec 9, 2019
11moon11 pushed a commit to 11moon11/beam that referenced this pull request Dec 12, 2019
@tvalentyn
Copy link
Contributor

FnApiLogRecordHandlerTest.test_exc_info() appears to flake, saw the failure twice today, filed https://issues.apache.org/jira/browse/BEAM-8974.

dpcollins-google pushed a commit to dpcollins-google/beam that referenced this pull request Dec 20, 2019
mxm added a commit to lyft/beam that referenced this pull request Mar 31, 2020
mxm added a commit to lyft/beam that referenced this pull request Apr 3, 2020
Revert "[BEAM-8944] Change to use single thread in py sdk bundle progress report (apache#10387)"

This reverts commit 1edcc10

Revert "[BEAM-8882] Fully populate log messages. (apache#10292)"

This reverts commit 6126a59

Revert "[BEAM-8733]  Handle the registration request synchronously in the Python SDK harness."

This reverts commit 26596c8

Revert "[BEAM-8151] Further cleanup of SDK Workers. (apache#10134)"

This reverts commit ae5b653

Revert "Setting all logging on the root logger as before."

This reverts commit b870d97

Revert "[BEAM-8661] Moving runners to have per-module logger (apache#10097)"

This reverts commit 49d6efd.

Revert "[BEAM-8151] Swap to create SdkWorkers on demand when processing jobs"

This reverts commit 33cc30e

Revert "[BEAM-8151, BEAM-7848] Swap to using a thread pool which is unbounded and shrinks when threads are idle."

This reverts commit 1b62310
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants