Skip to content

[CELEBORN-2565] Reject invalid logger levels in REST API - #3983

Open
huangxiaopingRD wants to merge 1 commit into
apache:mainfrom
huangxiaopingRD:fix-invalid-logger-level
Open

huangxiaopingRD wants to merge 1 commit into
apache:mainfrom
huangxiaopingRD:fix-invalid-logger-level

Conversation

@huangxiaopingRD

@huangxiaopingRD huangxiaopingRD commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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 to DEBUG for an unrecognized or missing value. For example, posting INF0 currently changes an INFO logger to DEBUG and returns success.

Resolves CELEBORN-2565.

Does this PR resolve a correctness bug?

  • Yes

Does this PR introduce any user-facing change?

  • Yes

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 test
  • mvn -o -pl service com.diffplug.spotless:spotless-maven-plugin:2.24.1:check

@github-actions github-actions Bot added correctness Correctness bugfix module:service labels Nov 19, 2026
@codecov

codecov Bot commented Nov 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.68%. Comparing base (dfdada3) to head (7c93b54).
⚠️ Report is 7 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@huangxiaopingRD
huangxiaopingRD force-pushed the fix-invalid-logger-level branch from 7c93b54 to 9876e16 Compare November 20, 2026 10:53
@github-actions github-actions Bot removed the correctness Correctness bugfix label Nov 20, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant