[Feature][Monitoring] Added disk available capacity monitoring#10186
[Feature][Monitoring] Added disk available capacity monitoring#10186retime123 wants to merge 18 commits intoapache:devfrom retime123:dev
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #10186 +/- ##
============================================
- Coverage 40.96% 40.96% -0.01%
+ Complexity 4736 4735 -1
============================================
Files 854 854
Lines 34565 34577 +12
Branches 3819 3819
============================================
+ Hits 14159 14163 +4
- Misses 19051 19060 +9
+ Partials 1355 1354 -1
Continue to review full report at Codecov.
|
|
Please create an issue and associate with it. @retime123 |
|
@retime123 You can take a look at this error. |
Can't see the specific error! Can you send me the generated logs? Or could you show me how to change it |
The error logs in |
Modify the bug
Modify the bug
|
Can this function be combined? |
| */ | ||
| public static double diskAvailable() { | ||
| File file = new File("."); | ||
| long totalSpace = file.getTotalSpace(); //total disk space in bytes. |
There was a problem hiding this comment.
totalSpace Yes. It's not used
There was a problem hiding this comment.
totalSpace Yes. It's not used
Please remove it if not use.
|
Hi @retime123 I found that you had submit a same pr and the comment which not resolve #10041 (review), |
This probably has nothing to do with K8S. |
|
Kudos, SonarCloud Quality Gate passed! |
caishunfeng
left a comment
There was a problem hiding this comment.
LGTM of the backend part. PTAL @songjianet @labbomb
|
@retime123 please resolve the conflicts. |
|
This is refactoring! I'll resubmit it |











Purpose of the pull request
This method is added because the available disk capacity cannot be monitored
Brief change log
Change dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
Change dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HeartBeat.java
Change dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/OSUtils.java
Change dolphinscheduler-ui/src/views/monitor/servers/master/index.tsx
Change dolphinscheduler-ui/src/views/monitor/servers/worker/index.tsx
Change dolphinscheduler-ui/src/locales/modules/en_US.ts
Change dolphinscheduler-ui/src/locales/modules/zh_CN.ts
unit testing
Change dolphinscheduler-common/src/test/java/org/apache/dolphinscheduler/common/os/OSUtilsTest.java
Change dolphinscheduler-common/src/test/java/org/apache/dolphinscheduler/common/utils/HeartBeatTest.java
Verify this pull request
retry