apache / apache/hudi

Reduce noisy logs in all test cases

Open
#14,546 1 comment 0 reactions 0 assignees View on GitHub
area:code-quality area:tests from-jira priority:high type:improvement
Dominant language
Java
Stars
6.2k
Forks
2.5k
Avg merge
2d 8h
Merged PRs (30d)
111

Description

{quote} 

Our test logs are very noisy — there are a lot of NPEs, ConnectException, etc which don’t seem to affect the test though obstruct troubleshooting substantially as there’s an avalanche of them. We need to make sure that all non-critical exceptions are addressed or suppressed, to make sure our logs are actionable.

tests should say nothing unless it fails. in the past i’ve seen mainly 2 sources

{color:#172b4d}heavy test utils (minicluster, etc) stopping print errors{color}

{color:#172b4d}test case verifying failure situations do not silence logs{color}
{quote}

## JIRA info

- Link: https://issues.apache.org/jira/browse/HUDI-664
- Type: Improvement
- Epic: https://issues.apache.org/jira/browse/HUDI-3303

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the test suite and identifying the sources of the noisy NPE and ConnectException output. Inspect the heavy test utilities such as minicluster and test cases that verify failure situations; done means tests produce no output unless they fail while retaining actionable failure logs.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.