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

archival: Handle nested shutdown errors #24927

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

Lazin
Copy link
Contributor

@Lazin Lazin commented Jan 24, 2025

Nested exceptions are treated as shutdown errors only if both inner and outer exceptions are shutdown errors. But sometimes the connections are closed during the shutdown and the disconnect error is triggered. In this case the exception is reported as true error. This increases the noise level and complicates log monitoring.

This commit changes nested exception handling. If one of the exceptions is a shutdown error and another one is a disconnect exception (broken pipe) the error is treated as a shutdown error.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v24.3.x
  • v24.2.x
  • v24.1.x

Release Notes

  • none

Nested exceptions are treated as shutdown errors only if both inner and
outer exceptions are shutdown errors. But sometimes the connections are
closed during the shutdown and the disconnect error is triggered. In
this case the exception is reported as true error. This increases the
noise level and complicates log monitoring.

This commit changes nested exception handling. If one of the exceptions
is a shutdown error and another one is a disconnect exception (broken
pipe) the error is treated as a shutdown error.

Signed-off-by: Evgeny Lazin <[email protected]>
@vbotbuildovich
Copy link
Collaborator

CI test results

test results on build#61164
test_id test_kind job_url test_status passed
rptest.tests.datalake.partition_movement_test.PartitionMovementTest.test_cross_core_movements.cloud_storage_type=CloudStorageType.S3 ducktape https://buildkite.com/redpanda/redpanda/builds/61164#019498c4-d6cd-4fc2-bdc7-0c47c0246259 FLAKY 1/2
rptest.tests.partition_force_reconfiguration_test.PartitionForceReconfigurationTest.test_basic_reconfiguration.acks=-1.restart=False.controller_snapshots=True ducktape https://buildkite.com/redpanda/redpanda/builds/61164#019498c4-d6cd-4fc2-bdc7-0c47c0246259 FLAKY 1/2

@Lazin Lazin merged commit a7c9ad7 into redpanda-data:dev Jan 27, 2025
18 checks passed
@vbotbuildovich
Copy link
Collaborator

/backport v24.3.x

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.

3 participants