Skip to content

os/Objectstore: remove legacy tbl support - #9064

Closed
majianpeng wants to merge 3 commits into
ceph:masterfrom
majianpeng:objectstore-calc-largest-data-offset
Closed

majianpeng wants to merge 3 commits into
ceph:masterfrom
majianpeng:objectstore-calc-largest-data-offset

Conversation

@majianpeng

Copy link
Copy Markdown
Contributor

No description provided.

@majianpeng

Copy link
Copy Markdown
Contributor Author

@liewegas . hope your comments. Thanks!

@liewegas

Copy link
Copy Markdown
Member

Note that we can actually remove the legacy tbl support completely now. Let's do that instead of the tbl fix in the first patch?

@majianpeng

Copy link
Copy Markdown
Contributor Author

Are you mean no place use tbl? If sure, i can do. In fact, whether or not use_tbl, it use the same parameter: largest_data_off_in_tbl. So i deem add a new patch to remove tbl. Other reconstruct. How about it?

@liewegas

liewegas commented May 11, 2016 via email

Copy link
Copy Markdown
Member

@majianpeng majianpeng closed this May 12, 2016
@majianpeng
majianpeng force-pushed the objectstore-calc-largest-data-offset branch from f082348 to b8172a5 Compare May 12, 2016 06:00
@majianpeng majianpeng reopened this May 13, 2016
@majianpeng

Copy link
Copy Markdown
Contributor Author

@liewegas . update. But for decode() part, i'm not sure whether your suggest. Please review. Thanks!

@athanatos

Copy link
Copy Markdown
Contributor

Something seems to be messed up, it claims there are 12 commits. @majianpeng I think a rebase went wrong.

@majianpeng
majianpeng force-pushed the objectstore-calc-largest-data-offset branch from d06bf6d to 3098483 Compare June 12, 2016 07:07
@yuyuyu101

Copy link
Copy Markdown
Contributor

lgtm

@liewegas liewegas changed the title Objectstore calc largest data offset if use_tbl disabled. os/Objectstore: remove legacy tbl support Sep 8, 2016
Comment thread src/os/ObjectStore.h Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we don't need v8, then we can drop decode8_5() entirely, right?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v8 -> v9 bug was fixed in 2598fc5, which precedes jewel, so v8 support is safe to remove entirely.

@liewegas

Copy link
Copy Markdown
Member

@majianpeng ping. would love to get this in!

@liewegas

Copy link
Copy Markdown
Member

ping

@majianpeng
majianpeng force-pushed the objectstore-calc-largest-data-offset branch from 3098483 to 82462c6 Compare September 27, 2016 07:39
@majianpeng

Copy link
Copy Markdown
Contributor Author

@liewegas .Sorry late to response. Update and rebase

@liewegas

Copy link
Copy Markdown
Member

Two problems: a crash in decode_attrset:

(gdb) bt
#0  0x00007ff4aa7248d9 in raise () from /lib64/libpthread.so.0
#1  0x000055c06509031c in reraise_fatal (signum=6)
    at /home/sage/src/ceph/src/global/signal_handler.cc:72
#2  handle_fatal_signal (signum=6) at /home/sage/src/ceph/src/global/signal_handler.cc:134
#3  
#4  0x00007ff4a92c2a28 in raise () from /lib64/libc.so.6
#5  0x00007ff4a92c462a in abort () from /lib64/libc.so.6
#6  0x00007ff4a9bf7add in __gnu_cxx::__verbose_terminate_handler() ()
   from /lib64/libstdc++.so.6
#7  0x00007ff4a9bf5936 in ?? () from /lib64/libstdc++.so.6
#8  0x00007ff4a9bf5981 in std::terminate() () from /lib64/libstdc++.so.6
#9  0x00007ff4a9bf5b99 in __cxa_throw () from /lib64/libstdc++.so.6
#10 0x000055c064adfdf7 in ceph::buffer::list::copy_in (crc_reset=, 
    src=, len=, off=, this=)
    at /home/sage/src/ceph/src/common/buffer.cc:1744
#11 0x000055c06539cd61 in ceph::buffer::list::iterator_impl::copy (this=0x7ff49dcccc98, 
    len=, dest=...) at /home/sage/src/ceph/src/common/buffer.cc:1200
#12 0x000055c064eae2c0 in decode (p=..., bp=...)
    at /home/sage/src/ceph/src/include/encoding.h:242
#13 decode, std::allocator >, ceph::buffer::ptr, std::less, std::allocator > > > (p=..., m=std::map with 1 elements = {...})
    at /home/sage/src/ceph/src/include/encoding.h:736
#14 ObjectStore::Transaction::iterator::decode_attrset (aset=std::map with 1 elements = {...}, 
    this=0x7ff49dcccc80) at /home/sage/src/ceph/src/os/ObjectStore.h:933
#15 FileStore::_do_transaction (this=this@entry=0x55c06f058000, t=..., op_seq=op_seq@entry=31, 
    trans_num=trans_num@entry=0, handle=handle@entry=0x7ff49dccda30)
    at /home/sage/src/ceph/src/os/filestore/FileStore.cc:2622
#16 0x000055c064eb207b in FileStore::_do_transactions (this=this@entry=0x55c06f058000, 
    tls=std::vector of length 1, capacity 1 = {...}, op_seq=31, 
    handle=handle@entry=0x7ff49dccda30)
    at /home/sage/src/ceph/src/os/filestore/FileStore.cc:2227
#17 0x000055c064eb2654 in FileStore::_do_op (this=0x55c06f058000, osr=, 
    handle=...) at /home/sage/src/ceph/src/os/filestore/FileStore.cc:1997
#18 0x000055c0652359cd in ThreadPool::worker (this=0x55c06f058cb0, wt=0x55c06f0fdb90)
    at /home/sage/src/ceph/src/common/WorkQueue.cc:132
#19 0x000055c065236b40 in ThreadPool::WorkThread::entry (this=)
    at /home/sage/src/ceph/src/common/WorkQueue.h:446
#20 0x00007ff4aa71b61a in start_thread () from /lib64/libpthread.so.0
#21 0x00007ff4a93905fd in clone () from /lib64/libc.so.6
(gdb) f 15
#15 FileStore::_do_transaction (this=this@entry=0x55c06f058000, t=..., op_seq=op_seq@entry=31, 
    trans_num=trans_num@entry=0, handle=handle@entry=0x7ff49dccda30)
    at /home/sage/src/ceph/src/os/filestore/FileStore.cc:2622
2622            i.decode_attrset(aset);

easily reproducible by running vstart.

also a compile error,

diff --git a/src/test/objectstore/test_transaction.cc b/src/test/objectstore/test_transaction.cc
index 31710d2..a452de7 100644
--- a/src/test/objectstore/test_transaction.cc
+++ b/src/test/objectstore/test_transaction.cc
@@ -115,7 +115,6 @@ ObjectStore::Transaction generate_transaction()
 TEST(Transaction, MoveRangesDelSrcObj)
 {
   auto t = ObjectStore::Transaction{};
-  t.set_use_tbl(false);
   t.nop();
 
   coll_t c(spg_t(pg_t(1,2), shard_id_t::NO_SHARD));

@liewegas liewegas removed the needs-qa label Oct 19, 2016
@majianpeng
majianpeng force-pushed the objectstore-calc-largest-data-offset branch from 82462c6 to 79b06fc Compare October 20, 2016 07:19
@majianpeng

Copy link
Copy Markdown
Contributor Author

@liewegas . I repeat vstart w/ osd objectstore=fielstore and repeat 'reados setxattr'. But no crash happen. What's your commands? Thanks!

@majianpeng
majianpeng force-pushed the objectstore-calc-largest-data-offset branch from 79b06fc to 5f05961 Compare October 21, 2016 06:37
@liewegas

liewegas commented Nov 3, 2016

Copy link
Copy Markdown
Member

replaced by #9064

@liewegas liewegas closed this Nov 3, 2016
smithfarm pushed a commit to SUSE/ceph that referenced this pull request Feb 9, 2017
We cannot redirect a RW ordered read.

Fixes: ceph#9064
Introduced: 0ed3adc
Signed-off-by: Samuel Just <[email protected]>
(cherry picked from commit 24aeca9)
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.

5 participants