Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@
syntax = "proto3";
package org.apache.spark.status.protobuf;

/**
* Developer guides:
* - Coding style: https://developers.google.com/protocol-buffers/docs/style
* - Use int64 for job/stage IDs, in case of future extension in Spark core.
* - Use `weakIntern` on string values in create new objects during deserialization.
Copy link
Contributor

@LuciferYang LuciferYang Dec 29, 2022

Choose a reason for hiding this comment

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

  • Use weakIntern on string values in create new objects during deserialization.

This is very important. I think we need a refactor work to fix the current codes

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

@panbingkun panbingkun Dec 29, 2022

Choose a reason for hiding this comment

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

*/

enum JobExecutionStatus {
UNSPECIFIED = 0;
JOB_EXECUTION_STATUS_UNSPECIFIED = 0;
Copy link
Contributor

@panbingkun panbingkun Dec 29, 2022

Choose a reason for hiding this comment

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

Is it more reasonable?

message Job {
   enum JobExecutionStatus {
      ...
   }
}

Copy link
Contributor

Choose a reason for hiding this comment

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

RUNNING = 1;
SUCCEEDED = 2;
FAILED = 3;
Expand Down