Project

General

Profile

Actions

Bug #63697

open

client: zero byte sync write fails

Added by Dhairya Parmar 5 months ago. Updated 5 months ago.

Status:
In Progress
Priority:
Normal
Category:
-
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
reef,quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

dparmar:build$ ./bin/ceph_test_libcephfs
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from LibCephFS
[ RUN      ] LibCephFS.PreadvPwritevZeroBytesSyncIO
/home/dparmar/CephRepoForRunningTestsLocally/ceph/src/osdc/Striper.cc: In function 'static void Striper::file_to_extents(ceph::common::CephContext*, const file_layout_t*, uint64_t, uint64_t, uint64_t, uint64_t, striper::LightweightObjectExtents*)' thread 7f6a13e3f500 time 2023-11-30T18:45:22.765304+0530
/home/dparmar/CephRepoForRunningTestsLocally/ceph/src/osdc/Striper.cc: 186: FAILED ceph_assert(len > 0)
 ceph version 18.0.0-7275-g8bc4cf1939c (8bc4cf1939ce76918542dbb5433652de295e5916) reef (dev)
 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x125) [0x7f6a1482127d]
 2: (ceph::register_assert_context(ceph::common::CephContext*)+0) [0x7f6a14821484]
 3: /home/dparmar/CephRepoForRunningTestsLocally/ceph/build/lib/libcephfs.so.2(+0x17c087) [0x7f6a1537c087]
 4: /home/dparmar/CephRepoForRunningTestsLocally/ceph/build/lib/libcephfs.so.2(+0x17cc87) [0x7f6a1537cc87]
 5: /home/dparmar/CephRepoForRunningTestsLocally/ceph/build/lib/libcephfs.so.2(+0xc735b) [0x7f6a152c735b]
 6: /home/dparmar/CephRepoForRunningTestsLocally/ceph/build/lib/libcephfs.so.2(+0xe5355) [0x7f6a152e5355]
 7: /home/dparmar/CephRepoForRunningTestsLocally/ceph/build/lib/libcephfs.so.2(+0xb4c03) [0x7f6a152b4c03]
 8: /home/dparmar/CephRepoForRunningTestsLocally/ceph/build/lib/libcephfs.so.2(+0xb5662) [0x7f6a152b5662]
 9: /home/dparmar/CephRepoForRunningTestsLocally/ceph/build/lib/libcephfs.so.2(+0xb5ac6) [0x7f6a152b5ac6]
 10: /home/dparmar/CephRepoForRunningTestsLocally/ceph/build/lib/libcephfs.so.2(+0xb5b75) [0x7f6a152b5b75]
 11: ceph_pwritev()
 12: (LibCephFS_PreadvPwritevZeroBytesSyncIO_Test::TestBody()+0x25c) [0x5600c8a11f4e]
 13: (void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)+0x1b) [0x5600c8a30756]
 14: (void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)+0x80) [0x5600c8a396b5]
 15: (testing::Test::Run()+0xb4) [0x5600c8a29d12]
 16: (testing::TestInfo::Run()+0x104) [0x5600c8a29e18]
 17: (testing::TestSuite::Run()+0xb2) [0x5600c8a29ecc]
 18: (testing::internal::UnitTestImpl::RunAllTests()+0x36b) [0x5600c8a2b355]
 19: (bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)+0x1b) [0x5600c8a309c6]
 20: (bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)+0x80) [0x5600c8a39afb]
 21: (testing::UnitTest::Run()+0x63) [0x5600c8a29fe7]
 22: (RUN_ALL_TESTS()+0x11) [0x5600c8a13e41]
 23: main()
 24: /lib64/libc.so.6(+0x27550) [0x7f6a1344a550]
 25: __libc_start_main()
 26: _start()
Aborted (core dumped)

Related issues 2 (1 open1 closed)

Related to CephFS - Bug #63679: client: handle zero byte sync/async write casesClosedDhairya Parmar

Actions
Related to CephFS - Bug #63712: client: add test cases for sync io code pathsNewDhairya Parmar

Actions
Actions #1

Updated by Dhairya Parmar 5 months ago

  • Pull request ID set to 54734
Actions #2

Updated by Patrick Donnelly 5 months ago

  • Status changed from New to In Progress
  • Assignee set to Dhairya Parmar
  • Target version set to v19.0.0
  • Source set to Development
  • Backport set to reef,quincy
  • Component(FS) Client added
Actions #3

Updated by Dhairya Parmar 5 months ago

  • Related to Bug #63679: client: handle zero byte sync/async write cases added
Actions #4

Updated by Dhairya Parmar 5 months ago

  • Related to Bug #63712: client: add test cases for sync io code paths added
Actions #5

Updated by Dhairya Parmar 5 months ago

im thinking to add this as well as all possible test cases for sync io in https://tracker.ceph.com/issues/63712

Actions

Also available in: Atom PDF