zero length write fro store_test to bluestore
Hi All,
I'm hitting the following issue while running Synthetic test case (from store_test.cc) against bluestore:
store_test asserts on read data mismatch when read happens after the zero-length write above object boundary.
Test case assumes all the data between the old and new object boundaries are filled with zeros. But current bluestore write path implementation simply discards zero-length writes and hence doesn't raise object size. As a result subsequent read doesn't return anything above the old boundary.
The question is what's the proper fix for that:
1) Ignore zero-length writes in the test case and do not increase object size/fill content on them.
or
2) Increase object content size on such writes in the bluestore.
Thanks,
Igor
Quoted 13 lines · Igor Fedotov
Hi All,
I'm hitting the following issue while running Synthetic test case (from store_test.cc) against bluestore:
store_testasserts on read data mismatch when read happens after the zero-length write above object boundary.Test case assumes all the data between the old and new object boundaries are filled with zeros. But current bluestore write path implementation simply discards zero-length writes and hence doesn't raise object size. As a result subsequent read doesn't return anything above the old boundary.
Quoted 8 lines
The question is what's the proper fix for that:
1) Ignore zero-length writes in the test case and do not increase object size/fill content on them.
or
2) Increase object content size on such writes in the bluestore.
Heh, I just hit this too. I think it makes more sense for 0 length writes to not affect object size. I added a test for it and fixed Memstore. store_test.cc needs to be adjusted still though...
Pushed patches to top of wip-bluestore-2q, do you mind pulling those 2 out and fixing store_test in another PR?
Thanks!
sage
Quoted 21 lines · Sage Weil
Quoted 20 lines · Igor Fedotov
Hi All,
I'm hitting the following issue while running Synthetic test case (from store_test.cc) against bluestore:
store_testasserts on read data mismatch when read happens after the zero-length write above object boundary.Test case assumes all the data between the old and new object boundaries are filled with zeros. But current bluestore write path implementation simply discards zero-length writes and hence doesn't raise object size. As a result subsequent read doesn't return anything above the old boundary.
The question is what's the proper fix for that:
1) Ignore zero-length writes in the test case and do not increase object size/fill content on them.
or
Quoted 7 lines
Quoted 1 line
2) Increase object content size on such writes in the bluestore.
Heh, I just hit this too. I think it makes more sense for 0 length writes to not affect object size. I added a test for it and fixed Memstore. store_test.cc needs to be adjusted still though...
Pushed patches to top of wip-bluestore-2q, do you mind pulling those 2 out and fixing
store_testin another PR?
OK, will do.
Quoted 4 lines
Thanks!
sage
How does FileStore handle this case? Why are we doing anything different?
Quoted 51 lines
-----Original Message-----
From: [email protected] [mailto:ceph-devel- [email protected]] On Behalf Of Igor Fedotov
Sent: Monday, June 20, 2016 6:57 AM
To: Sage Weil <[email protected]>
Cc: ceph-devel <[email protected]>
Subject: Re: zero length write frostore_testto bluestoreQuoted 7 lines · Sage Weil
Quoted 6 lines · Igor Fedotov
Hi All,
I'm hitting the following issue while running Synthetic test case (from
store_test.cc) against bluestore:Quoted 7 lines
Quoted 7 lines
store_testasserts on read data mismatch when read happens after the zero-length write above object boundary.Test case assumes all the data between the old and new object boundaries are filled with zeros. But current bluestore write path implementation simply discards zero-length writes and hence doesn't raise object size. As a result subsequent read doesn't return anything
above the old boundary.
Quoted 8 lines
Quoted 8 lines
The question is what's the proper fix for that:
1) Ignore zero-length writes in the test case and do not increase object size/fill content on them.
or
Quoted 7 lines
Quoted 1 line
2) Increase object content size on such writes in the bluestore.
Heh, I just hit this too. I think it makes more sense for 0 length writes to not affect object size. I added a test for it and fixed Memstore. store_test.cc needs to be adjusted still though...
Pushed patches to top of wip-bluestore-2q, do you mind pulling those 2 out and fixing
store_testin another PR?OK, will do.
Quoted 4 lines
Thanks!
sage--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html