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

[#752] refactor: replace RuntimeException with RssException #753

Merged
merged 2 commits into from
Mar 22, 2023

Conversation

kaijchen
Copy link
Contributor

What changes were proposed in this pull request?

Replace raw use of RuntimeException with RssException in src/main.
Enable spotbugs check: THROWS_METHOD_THROWS_RUNTIMEEXCEPTION

Why are the changes needed?

Fix: #752

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Tested by spotbugs and existing tests.

@codecov-commenter
Copy link

Codecov Report

Merging #753 (370e509) into master (5fd6876) will increase coverage by 2.08%.
The diff coverage is 29.41%.

@@             Coverage Diff              @@
##             master     #753      +/-   ##
============================================
+ Coverage     60.72%   62.81%   +2.08%     
- Complexity     1901     1902       +1     
============================================
  Files           238      225      -13     
  Lines         13017    11067    -1950     
  Branches       1091     1091              
============================================
- Hits           7905     6952     -953     
+ Misses         4674     3737     -937     
+ Partials        438      378      -60     
Impacted Files Coverage Δ
...g/apache/hadoop/mapred/SortWriteBufferManager.java 79.89% <0.00%> (ø)
...n/java/org/apache/hadoop/mapreduce/RssMRUtils.java 48.24% <0.00%> (ø)
...preduce/task/reduce/RssRemoteMergeManagerImpl.java 82.43% <0.00%> (ø)
...apache/hadoop/mapreduce/v2/app/RssMRAppMaster.java 0.00% <0.00%> (ø)
...che/spark/shuffle/writer/BufferManagerOptions.java 75.67% <0.00%> (ø)
...java/org/apache/spark/network/util/NettyUtils.java 40.00% <0.00%> (ø)
...rometheus/PrometheusPushGatewayMetricReporter.java 74.46% <0.00%> (ø)
...niffle/common/security/SecurityContextFactory.java 84.21% <0.00%> (ø)
.../apache/uniffle/coordinator/CoordinatorServer.java 59.23% <0.00%> (ø)
...ache/uniffle/coordinator/SimpleClusterManager.java 75.31% <0.00%> (ø)
... and 22 more

... and 20 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@jerqi jerqi left a comment

Choose a reason for hiding this comment

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

LGTM

@jerqi jerqi merged commit 8db9330 into apache:master Mar 22, 2023
@kaijchen kaijchen deleted the runtime-exception branch March 22, 2023 16:48
xianjingfeng pushed a commit to xianjingfeng/incubator-uniffle that referenced this pull request Apr 5, 2023
…ache#753)

### What changes were proposed in this pull request?

Replace raw use of `RuntimeException` with `RssException` in src/main.
Enable spotbugs check: [THROWS_METHOD_THROWS_RUNTIMEEXCEPTION][1]

[1]: https://spotbugs.readthedocs.io/en/stable/bugDescriptions.html#throws-method-intentionally-throws-runtimeexception-throws-method-throws-runtimeexception

### Why are the changes needed?

Fix: apache#752 

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Tested by spotbugs and existing tests.
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.

[Improvement] Replace raw use of RuntimeException
3 participants