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][Shell] Fix the issue where execution is not successful in source limit mode #15568

Closed
wants to merge 2 commits into from

Conversation

JohnZp
Copy link
Contributor

@JohnZp JohnZp commented Feb 5, 2024

Purpose of the pull request

  1. Missing execution script.
  2. The system does not recognize infinity.

Brief change log

Considering using 104857600M as a replacement for infinity, not sure if it's appropriate.

Copy link
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

Please link pr to your issue and descrribe why you want to do that. @JohnZp

@SbloodyS SbloodyS added the first time contributor First-time contributor label Feb 5, 2024
Comment on lines +128 to +129
if (PropertyUtils.getBoolean(AbstractCommandExecutorConstants.TASK_RESOURCE_LIMIT_STATE, false)
&& (memoryQuota != -1 || cpuQuota != -1)) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (PropertyUtils.getBoolean(AbstractCommandExecutorConstants.TASK_RESOURCE_LIMIT_STATE, false)
&& (memoryQuota != -1 || cpuQuota != -1)) {
if (PropertyUtils.getBoolean(AbstractCommandExecutorConstants.TASK_RESOURCE_LIMIT_STATE, false)) {

I do not suggest adding the quota judge here.

Comment on lines +168 to +169
// Some systems do not support infinity. Consider replacing it with a very large value.
bootstrapCommand.add(String.format("MemoryLimit=%s", "104857600M"));
Copy link
Member

Choose a reason for hiding this comment

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

It's better to add a new adaptor implementation for the specific system.

@ruanwenjun ruanwenjun changed the title [fix][task-api]:Fix the issue where execution is not successful in re… [fix][task-api]:Fix the issue where execution is not successful in source limit mode Feb 13, 2024
@ruanwenjun ruanwenjun changed the title [fix][task-api]:Fix the issue where execution is not successful in source limit mode [Fix][Shell] Fix the issue where execution is not successful in source limit mode Feb 13, 2024
@ruanwenjun ruanwenjun self-assigned this Feb 13, 2024
@ruanwenjun ruanwenjun added the bug Something isn't working label Feb 13, 2024
@codecov-commenter
Copy link

codecov-commenter commented Feb 13, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (8a35e8b) 38.55% compared to head (59f5a86) 38.52%.

❗ Current head 59f5a86 differs from pull request most recent head 000c249. Consider uploading reports for the commit 000c249 to get more accurate results

Files Patch % Lines
...sk/api/shell/BaseLinuxShellInterceptorBuilder.java 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev   #15568      +/-   ##
============================================
- Coverage     38.55%   38.52%   -0.03%     
+ Complexity     4776     4771       -5     
============================================
  Files          1310     1310              
  Lines         44880    44882       +2     
  Branches       4808     4809       +1     
============================================
- Hits          17304    17293      -11     
- Misses        25693    25706      +13     
  Partials       1883     1883              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ruanwenjun ruanwenjun assigned JohnZp and unassigned ruanwenjun Feb 13, 2024
Copy link

sonarcloud bot commented Feb 20, 2024

Copy link

This pull request has been automatically marked as stale because it has not had recent activity for 120 days. It will be closed in 7 days if no further activity occurs.

@github-actions github-actions bot added the Stale label Jun 20, 2024
Copy link

This pull request has been closed because it has not had recent activity. You could reopen it if you try to continue your work, and anyone who are interested in it are encouraged to continue work on this pull request.

@github-actions github-actions bot closed this Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working first time contributor First-time contributor Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants