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

refactor(metarepos): suppress logging in GetMetadata method #1007

Merged
merged 6 commits into from
Mar 31, 2025

Conversation

ijsong
Copy link
Member

@ijsong ijsong commented Mar 5, 2025

What this PR does

Change logging level to Debug for the GetMetadata method in
raft_metadata_repository.go to reduce verbosity.

@ijsong ijsong requested a review from hungryjang as a code owner March 5, 2025 12:09
Copy link

codecov bot commented Mar 5, 2025

Codecov Report

Attention: Patch coverage is 68.64407% with 37 lines in your changes missing coverage. Please review.

Project coverage is 79.66%. Comparing base (15d90d2) to head (93ed36d).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
pkg/util/telemetry/metric_provider.go 0.00% 13 Missing ⚠️
internal/storagenode/logstream/backup_writer.go 62.50% 8 Missing and 1 partial ⚠️
internal/storagenode/logstream/writer.go 63.63% 8 Missing ⚠️
internal/flags/logger.go 50.00% 2 Missing and 1 partial ⚠️
internal/storage/recovery_points.go 86.36% 2 Missing and 1 partial ⚠️
internal/storagenode/logstream/executor.go 91.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1007      +/-   ##
==========================================
- Coverage   79.74%   79.66%   -0.08%     
==========================================
  Files         178      178              
  Lines       21478    21573      +95     
==========================================
+ Hits        17127    17186      +59     
- Misses       3562     3595      +33     
- Partials      789      792       +3     

☔ View full report in Codecov by Sentry.
📢 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.

@ijsong ijsong force-pushed the sn_bootstrap_logging branch from 5f67987 to fb442bb Compare March 6, 2025 10:23
@ijsong ijsong force-pushed the mr_suppress_verbose_log branch from 5a28ec4 to f102f80 Compare March 6, 2025 10:23
@ijsong ijsong force-pushed the sn_bootstrap_logging branch from fb442bb to 5851201 Compare March 8, 2025 13:07
@ijsong ijsong force-pushed the mr_suppress_verbose_log branch from f102f80 to f766d2a Compare March 8, 2025 13:07
@ijsong ijsong force-pushed the sn_bootstrap_logging branch from 5851201 to b9f9a7a Compare March 14, 2025 14:12
@ijsong ijsong force-pushed the mr_suppress_verbose_log branch from f766d2a to b7ed043 Compare March 14, 2025 14:12
@ijsong ijsong force-pushed the sn_bootstrap_logging branch from b9f9a7a to daac6fa Compare March 26, 2025 15:11
@ijsong ijsong force-pushed the mr_suppress_verbose_log branch from b7ed043 to 3d9d134 Compare March 26, 2025 15:11
@ijsong ijsong force-pushed the sn_bootstrap_logging branch from daac6fa to 5a2296a Compare March 29, 2025 11:22
@ijsong ijsong force-pushed the mr_suppress_verbose_log branch from 3d9d134 to 1f70ec6 Compare March 29, 2025 11:22
@ijsong ijsong force-pushed the sn_bootstrap_logging branch from 5a2296a to c4b17f7 Compare March 29, 2025 13:33
@ijsong ijsong force-pushed the mr_suppress_verbose_log branch from 1f70ec6 to 6832c7b Compare March 29, 2025 13:33
ijsong added 6 commits March 29, 2025 23:10
…e metrics

This commit enables Varlog to support both new and deprecated OpenTelemetry
runtime metrics.

Previously, Varlog only supported the deprecated runtime instrumentation. This
change ensures backward compatibility by simultaneously setting the
`OTEL_GO_X_DEPRECATED_RUNTIME_METRICS` environment variable and using the new
version.

This enhancement allows Varlog to leverage the latest OpenTelemetry features
while maintaining compatibility with older versions, collecting more
comprehensive runtime metrics.
Add validation for empty payloads in the Append RPC. If there is no payload
in the append request, the RPC returns a gRPC status code of InvalidArgument.
This PR adds a new flag `--enable-development-mode` to enable development mode
for the logger. If it is true, the logger panics at the DPanic level.
This PR adds error handling to prevent panic when an unexpected LLSN is
encountered in backup and primary replicas. If `--enable-development-mode` is
set, panic occurs as before.
… commit context

Enhance logging while bootstrapping log stream replica:
- Add `MarshalLogObject` method to `CommitContext` and `RecoveryPoints` for
  structured logging.
- Add logs to print more useful information during data loading on restarts.
Change logging level to Debug for the GetMetadata method in
raft_metadata_repository.go to reduce verbosity.
@ijsong ijsong force-pushed the sn_bootstrap_logging branch from c4b17f7 to 6b6a5b7 Compare March 29, 2025 14:10
@ijsong ijsong force-pushed the mr_suppress_verbose_log branch from 6832c7b to 93ed36d Compare March 29, 2025 14:10
Base automatically changed from sn_bootstrap_logging to main March 31, 2025 09:07
@ijsong ijsong merged commit dcae0cf into main Mar 31, 2025
10 checks passed
@ijsong ijsong deleted the mr_suppress_verbose_log branch March 31, 2025 09:22
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.

None yet

2 participants