Repository navigation
[CELEBORN-2565] Reject invalid logger levels in REST API - #3983
Open
huangxiaopingRD wants to merge 1 commit into
Open
huangxiaopingRD wants to merge 1 commit into
huangxiaopingRD wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3983 +/- ##
============================================
+ Coverage 62.64% 62.68% +0.04%
Complexity 451 451
============================================
Files 407 407
Lines 29032 29037 +5
Branches 2858 2861 +3
============================================
+ Hits 18185 18198 +13
+ Misses 9467 9460 -7
+ Partials 1380 1379 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
huangxiaopingRD
force-pushed
the
fix-invalid-logger-level
branch
from
November 20, 2026 10:53
7c93b54 to
9876e16
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Reject invalid or missing logger levels with HTTP 400 before changing the logger. Preserve support for case-insensitive names and registered custom levels.
Why are the changes needed?
Level.toLevel(String)defaults toDEBUGfor an unrecognized or missing value. For example, postingINF0currently changes anINFOlogger toDEBUGand returns success.Resolves CELEBORN-2565.
Does this PR resolve a correctness bug?
Does this PR introduce any user-facing change?
Invalid or missing log levels now receive HTTP 400 and leave the current level unchanged.
How was this patch tested?
mvn -pl service -am -DwildcardSuites=org.apache.celeborn.server.common.http.LoggerResourceSuite -Dtest=none -DfailIfNoTests=false testmvn -o -pl service com.diffplug.spotless:spotless-maven-plugin:2.24.1:check