You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@linkis.apache.org by "sjgllgh (via GitHub)" <gi...@apache.org> on 2023/09/25 01:58:51 UTC
[GitHub] [linkis] sjgllgh opened a new issue, #4911: [Bug] The sortByResource method in ResourceNodeSelectRule violates the general contract of comparators
sjgllgh opened a new issue, #4911:
URL: https://github.com/apache/linkis/issues/4911
### Search before asking
- [X] I searched the [issues](https://github.com/apache/linkis/issues) and found no similar issues.
### Linkis Component
linkis-computation-governance
### Steps to reproduce
1. When there are many deployed ECMs and the concurrency is high, an exception may be thrown: Comparison method violates its general contract!
2. The comparison method provided by the code is: when memory, CPU, and the number of instances are all large, return -1; when memory, CPU, and the number of instances are all equal, return 0; in all other cases, return 1.
3. There may be situations where, when the memory of A is larger than that of B, and the CPU of B is larger than that of A, the comparison between A and B will always return 1.
### Expected behavior
Modify the rules of the comparator to prevent violating the general contract of the comparator.
### Your environment
- Linkis version used: 1.4.0
- Environment name and version:
- jdk 1.8.0_144
### Anything else
_No response_
### Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org
[GitHub] [linkis] sjgllgh closed issue #4911: [Bug] The sortByResource method in ResourceNodeSelectRule violates the general contract of comparators
Posted by "sjgllgh (via GitHub)" <gi...@apache.org>.
sjgllgh closed issue #4911: [Bug] The sortByResource method in ResourceNodeSelectRule violates the general contract of comparators
URL: https://github.com/apache/linkis/issues/4911
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org
[GitHub] [linkis] github-actions[bot] commented on issue #4911: [Bug] The sortByResource method in ResourceNodeSelectRule violates the general contract of comparators
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4911:
URL: https://github.com/apache/linkis/issues/4911#issuecomment-1732788574
## :blush: Welcome to the Apache Linkis community!!
We are glad that you are contributing by opening this issue.
Please make sure to include all the relevant context.
We will be here shortly.
If you are interested in contributing to our website project, please let us know!
You can check out our contributing guide on
:point_right: [How to Participate in Project Contribution](https://linkis.apache.org/community/how-to-contribute).
### Community
|WeChat Assistant|WeChat Public Account|
|-|-|
|<img src="https://linkis.apache.org/Images/wedatasphere_contact_01.png" width="128"/>|<img src="https://linkis.apache.org/Images/gzh_01.png" width="128"/>|
### Mailing Lists
|Name|Description|Subscribe|Unsubscribe|Archive|
|:-----|:--------|:------|:-------|:-----|
| [dev@linkis.apache.org](mailto:dev@linkis.apache.org) | community activity information | [subscribe](mailto:dev-subscribe@linkis.apache.org) | [unsubscribe](mailto:dev-unsubscribe@linkis.apache.org) | [archive](http://mail-archives.apache.org/mod_mbox/linkis-dev) |
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org