-
Notifications
You must be signed in to change notification settings - Fork 681
[history server] [collector] Fix collector 4241 review comments #4325
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
base: master
Are you sure you want to change the base?
[history server] [collector] Fix collector 4241 review comments #4325
Conversation
Signed-off-by: JiangJiaWei1103 <[email protected]>
Signed-off-by: JiangJiaWei1103 <[email protected]>
Signed-off-by: JiangJiaWei1103 <[email protected]>
Signed-off-by: JiangJiaWei1103 <[email protected]>
Signed-off-by: JiangJiaWei1103 <[email protected]>
Signed-off-by: JiangJiaWei1103 <[email protected]>
Signed-off-by: JiangJiaWei1103 <[email protected]>
…1-review-comments-0-refactor
Signed-off-by: JiangJiaWei1103 <[email protected]>
Signed-off-by: JiangJiaWei1103 <[email protected]>
Signed-off-by: JiangJiaWei1103 <[email protected]>
Signed-off-by: JiangJiaWei1103 <[email protected]>
| CreationTime string `json:"creationTime"` | ||
| CreationTimestamp int64 `json:"creationTimestamp"` |
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.
I think CreationTime is more human-friendly and can be displayed directly in the UI. In contrast, CreationTimestamp is more machine-oriented and better suited for sorting and comparisons, for example:
kuberay/historyserver/pkg/utils/types.go
Line 31 in 7b2acae
| func (a ClusterInfoList) Less(i, j int) bool { return a[i].CreateTimeStamp > a[j].CreateTimeStamp } // 降序排序 |
If this feels redundant, we can discuss which one to keep to improve maintainability.
Original discussion: #4241 (comment)
|
|
||
| // OSS meta file keys used by history server. | ||
| const ( | ||
| RayMetaFile_BasicInfo = "ack__basicinfo" |
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.
We need to clarify where these env vars will be used.
Signed-off-by: JiangJiaWei1103 <[email protected]>
Why are these changes needed?
This PR focuses on non-functional cleanup to improve readability, consistency, and maintainability.
Changes
Related issue number
#4304.
NOTE: This PR addresses all review comments, except for the docs part.
Checks