-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix(dataproc): add mising fields in yarnApplication proto #16868
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1140,6 +1140,10 @@ class YarnApplication(proto.Message): | |
| application-specific information. The URL uses | ||
| the internal hostname, and requires a proxy | ||
| server for resolution and, possibly, access. | ||
| vcore_seconds (int): | ||
| Optional. The cumulative CPU time consumed by the application for a job, measured in vcore-seconds. | ||
| memory_mb_seconds (int): | ||
| Optional. The cumulative memory usage of the application for a job, measured in mb-seconds. | ||
| """ | ||
|
|
||
| class State(proto.Enum): | ||
|
|
@@ -1194,6 +1198,16 @@ class State(proto.Enum): | |
| proto.STRING, | ||
| number=4, | ||
| ) | ||
| vcore_seconds: int = proto.Field( | ||
| proto.INT64, | ||
| number=5, | ||
| optional=True, | ||
| ) | ||
| memory_mb_seconds: int = proto.Field( | ||
| proto.INT64, | ||
| number=6, | ||
| optional=True, | ||
| ) | ||
|
Comment on lines
+1201
to
+1210
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The vcore_seconds: int = proto.Field(
proto.INT64,
number=5,
)
memory_mb_seconds: int = proto.Field(
proto.INT64,
number=6,
) |
||
|
|
||
|
|
||
| class Job(proto.Message): | ||
|
|
||
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.
The docstring for these fields should be updated for consistency and accuracy. Specifically:
memory_mb_secondsshould be "megabyte-seconds" to match the official documentation and provide better clarity than "mb-seconds".progressfield (field 4) appears to be missing from the docstring betweentracking_urlandvcore_seconds.