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

fix: K8SWorkerScheduler can not work #109

Merged
merged 7 commits into from
Jan 19, 2022
Merged

fix: K8SWorkerScheduler can not work #109

merged 7 commits into from
Jan 19, 2022

Conversation

y1yang0
Copy link
Contributor

@y1yang0 y1yang0 commented Jan 18, 2022

No description provided.

.gitignore Outdated Show resolved Hide resolved
if (t instanceof ServiceException) {
ServiceException se = (ServiceException) t;
if (ErrorCode.values().length > se.failureCode() && se.failureCode() >= 0) {
errorCode = ErrorCode.values()[se.failureCode()];
Copy link
Contributor

Choose a reason for hiding this comment

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

IIRC, valures will only create a new array, so I think we need to cache it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It slightly impacts performance. I don't think we need to cache it.

@D-D-H D-D-H merged commit 1cb11e3 into eclipse:master Jan 19, 2022
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.

2 participants