|
|
-
Omid: Transactional Support for HBase
Daniel Gómez Ferro 2011-11-04, 09:49
Hi all, It is my pleasure to announce the open source release of Omid, a project whose goal is to add lock-free transactional support on top of HBase. The current release includes CrSO, a client-replicated status oracle that detects the write-write conflicts to provide Snapshot Isolation. CrSO has the following appealing properties: 1) It does not need any modification into the HBase code nor the table scheme. 2) The overhead on HBase DataNodes is negligible (only after an abort) 3) It scales up to 50,000 write transactions per second (TPS) and a thousand of client connections. We have setup a github project: https://github.com/dgomezferro/omidMore information is available at the wiki: https://github.com/dgomezferro/omid/wikiIf you are interested, installation and running instructions are available on the README: https://github.com/dgomezferro/omid/blob/master/README.mdPlease do not hesitate to contact us in the case of any question. Best Regards, Daniel Gómez Ferro
-
Omid: Transactional Support for HBase
Daniel Gómez Ferro 2011-11-04, 11:24
(I apologize for resending but I forgot to add the user list.) Hi all, It is my pleasure to announce the open source release of Omid, a project whose goal is to add lock-free transactional support on top of HBase. The current release includes CrSO, a client-replicated status oracle that detects the write-write conflicts to provide Snapshot Isolation. CrSO has the following appealing properties: 1) It does not need any modification into the HBase code nor the table scheme. 2) The overhead on HBase DataNodes is negligible (only after an abort) 3) It scales up to 50,000 write transactions per second (TPS) and a thousand of client connections. We have setup a github project: https://github.com/dgomezferro/omidMore information is available at the wiki: https://github.com/dgomezferro/omid/wikiIf you are interested, installation and running instructions are available on the README: https://github.com/dgomezferro/omid/blob/master/README.mdPlease do not hesitate to contact us in the case of any question. Best Regards, Daniel Gómez Ferro
-
Re: Omid: Transactional Support for HBase
Stack 2011-11-04, 18:25
2011/11/4 Daniel Gómez Ferro <[EMAIL PROTECTED]>: > Hi all, > > It is my pleasure to announce the open source release of Omid, a project whose goal is to add lock-free transactional support on top of HBase. The current release includes CrSO, a client-replicated status oracle that detects the write-write conflicts to provide Snapshot Isolation. CrSO has the following appealing properties: >
Nice addition Daniel. Thank you for posting the list (FYI, slaves in HBase are called RegionServers not DataNodes -- you might want to update your graphic). What does CrSo stand for? If it fails, all transactions just abort -- the clients will time them out? (Thats not bad I'd say). Thanks for doing the comparison to hbase-trx. That helps.
Good stuff Daniel, St.Ack
-
Re: Omid: Transactional Support for HBase
Gary Helmling 2011-11-04, 19:53
Hi Daniel, Cool stuff. You might want to link your project on the "supporting projects" wiki page as well: http://wiki.apache.org/hadoop/SupportingProjectsCan't guarantee it'll drive a lot of traffic, but it's a good reference point for new users looking for options. --gh On Fri, Nov 4, 2011 at 11:25 AM, Stack <[EMAIL PROTECTED]> wrote: > 2011/11/4 Daniel Gómez Ferro <[EMAIL PROTECTED]>: >> Hi all, >> >> It is my pleasure to announce the open source release of Omid, a project whose goal is to add lock-free transactional support on top of HBase. The current release includes CrSO, a client-replicated status oracle that detects the write-write conflicts to provide Snapshot Isolation. CrSO has the following appealing properties: >> > > Nice addition Daniel. Thank you for posting the list (FYI, slaves in > HBase are called RegionServers not DataNodes -- you might want to > update your graphic). What does CrSo stand for? If it fails, all > transactions just abort -- the clients will time them out? (Thats not > bad I'd say). Thanks for doing the comparison to hbase-trx. That > helps. > > Good stuff Daniel, > St.Ack >
-
Re: Omid: Transactional Support for HBase
Daniel Gómez Ferro 2011-11-04, 21:45
Thanks St.Ack. These are very good questions.
On Nov 4, 2011, at 19:25 , Stack wrote:
2011/11/4 Daniel Gómez Ferro <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>>: Hi all,
It is my pleasure to announce the open source release of Omid, a project whose goal is to add lock-free transactional support on top of HBase. The current release includes CrSO, a client-replicated status oracle that detects the write-write conflicts to provide Snapshot Isolation. CrSO has the following appealing properties: Nice addition Daniel. Thank you for posting the list (FYI, slaves in HBase are called RegionServers not DataNodes -- you might want to update your graphic).
The graphic is updated, thanks for noticing.
What does CrSo stand for?
CrSO stands for Client-replicated Status Oracle, which is our current approach to detect conflicts with the least overhead.
If it fails, all transactions just abort -- the clients will time them out? (Thats not bad I'd say). Thanks for doing the comparison to hbase-trx. That helps.
If the CrSO fails it will recover its state from the Write Ahead Log (WAL) that is replicated into multiple remote storage devices via BookKeeper. (Reconstructing memory state from the stored WAL is not implemented yet). The transactions that were started before the node failure are pessimistically aborted by the new instance of the status oracle. Good stuff Daniel, St.Ack
-
Re: Omid: Transactional Support for HBase
Daniel Gómez Ferro 2011-11-04, 22:19
Hi Gary Thanks for your tip, I just added a link, I'm sure it will raise its visibility. On Nov 4, 2011, at 20:53 , Gary Helmling wrote: > Hi Daniel, > > Cool stuff. You might want to link your project on the "supporting > projects" wiki page as well: > http://wiki.apache.org/hadoop/SupportingProjects> > Can't guarantee it'll drive a lot of traffic, but it's a good > reference point for new users looking for options. > > --gh > > > On Fri, Nov 4, 2011 at 11:25 AM, Stack <[EMAIL PROTECTED]> wrote: >> 2011/11/4 Daniel Gómez Ferro <[EMAIL PROTECTED]>: >>> Hi all, >>> >>> It is my pleasure to announce the open source release of Omid, a project whose goal is to add lock-free transactional support on top of HBase. The current release includes CrSO, a client-replicated status oracle that detects the write-write conflicts to provide Snapshot Isolation. CrSO has the following appealing properties: >>> >> >> Nice addition Daniel. Thank you for posting the list (FYI, slaves in >> HBase are called RegionServers not DataNodes -- you might want to >> update your graphic). What does CrSo stand for? If it fails, all >> transactions just abort -- the clients will time them out? (Thats not >> bad I'd say). Thanks for doing the comparison to hbase-trx. That >> helps. >> >> Good stuff Daniel, >> St.Ack >>
-
Re: Omid: Transactional Support for HBase
lars hofhansl 2011-11-05, 04:37
Cool stuff Daniel, Was looking through the code a bit. Seems like you make a best effort to push as much of the filtering of KVs of uncommitted transactions to HBase and then do some filtering on the client not a bad approach. (I hope I didn't misunderstand the approach, only looked through the code for 1/2 hour or so). One thing I was wondering: Why bookkeeper? Why not store the WAL itself in HBase? That way you might not even need a separate server. Did you see: HBaseSI ( http://www.cs.uwaterloo.ca/~c15zhang/HBaseSI.pdf), they also do MVCC on top of unaltered HBase/schema, although from reading that paper I get the impression that it would not scale to scans touching many rows (which is where your client side filtering comes in). -- Lars ----- Original Message ----- From: Daniel Gómez Ferro <[EMAIL PROTECTED]> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>; "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> Cc: Maysam Yabandeh <[EMAIL PROTECTED]>; Flavio Junqueira <[EMAIL PROTECTED]>; Benjamin Reed <[EMAIL PROTECTED]>; Ivan Kelly <[EMAIL PROTECTED]> Sent: Friday, November 4, 2011 4:24 AM Subject: Omid: Transactional Support for HBase (I apologize for resending but I forgot to add the user list.) Hi all, It is my pleasure to announce the open source release of Omid, a project whose goal is to add lock-free transactional support on top of HBase. The current release includes CrSO, a client-replicated status oracle that detects the write-write conflicts to provide Snapshot Isolation. CrSO has the following appealing properties: 1) It does not need any modification into the HBase code nor the table scheme. 2) The overhead on HBase DataNodes is negligible (only after an abort) 3) It scales up to 50,000 write transactions per second (TPS) and a thousand of client connections. We have setup a github project: https://github.com/dgomezferro/omidMore information is available at the wiki: https://github.com/dgomezferro/omid/wikiIf you are interested, installation and running instructions are available on the README: https://github.com/dgomezferro/omid/blob/master/README.mdPlease do not hesitate to contact us in the case of any question. Best Regards, Daniel Gómez Ferro
-
Re: Omid: Transactional Support for HBase
Flavio Junqueira 2011-11-05, 07:53
On Nov 5, 2011, at 5:37 AM, lars hofhansl wrote: > One thing I was wondering: Why bookkeeper? Why not store the WAL > itself in HBase? That way > you might not even need a separate server. > Lars, The key reasons are performance and scalability. We also would like to have region servers at some point using BookKeeper for WAL for our applications, even though the figure doesn't show it. In that case, we have a common platform for WAL. We have a jira open about it, but we haven't made progress in a while due to other priorities and some issues with the WAL interface, but we have been planning on getting back to it. Btw, I'm assuming you know about the project: http://zookeeper.apache.org/bookkeeper/-Flavio > ----- Original Message ----- > From: Daniel Gómez Ferro <[EMAIL PROTECTED]> > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>; "[EMAIL PROTECTED] > " <[EMAIL PROTECTED]> > Cc: Maysam Yabandeh <[EMAIL PROTECTED]>; Flavio Junqueira <[EMAIL PROTECTED] > >; Benjamin Reed <[EMAIL PROTECTED]>; Ivan Kelly <[EMAIL PROTECTED] > > > Sent: Friday, November 4, 2011 4:24 AM > Subject: Omid: Transactional Support for HBase > > (I apologize for resending but I forgot to add the user list.) > > Hi all, > > It is my pleasure to announce the open source release of Omid, a > project whose goal is to add lock-free transactional support on top > of HBase. The current release includes CrSO, a client-replicated > status oracle that detects the write-write conflicts to provide > Snapshot Isolation. CrSO has the following appealing properties: > > 1) It does not need any modification into the HBase code nor the > table scheme. > 2) The overhead on HBase DataNodes is negligible (only after an abort) > 3) It scales up to 50,000 write transactions per second (TPS) and a > thousand of client connections. > > We have setup a github project: https://github.com/dgomezferro/omid> > More information is available at the wiki: https://github.com/dgomezferro/omid/wiki> > If you are interested, installation and running instructions are > available on the README: https://github.com/dgomezferro/omid/blob/master/README.md> > Please do not hesitate to contact us in the case of any question. > > Best Regards, > Daniel Gómez Ferro > flavio junqueira research scientist [EMAIL PROTECTED] direct +34 93-183-8828 avinguda diagonal 177, 8th floor, barcelona, 08018, es phone (408) 349 3300 fax (408) 349 3301
-
Re: Omid: Transactional Support for HBase
Stack 2011-11-05, 18:40
On Sat, Nov 5, 2011 at 12:53 AM, Flavio Junqueira <[EMAIL PROTECTED]> wrote: > > On Nov 5, 2011, at 5:37 AM, lars hofhansl wrote: > >> One thing I was wondering: Why bookkeeper? Why not store the WAL itself in >> HBase? That way >> you might not even need a separate server. >> > > Lars, The key reasons are performance and scalability. We also would like to > have region servers at some point using BookKeeper for WAL for our > applications, even though the figure doesn't show it. In that case, we have > a common platform for WAL. We have a jira open about it, but we haven't made > progress in a while due to other priorities and some issues with the WAL > interface, but we have been planning on getting back to it. > > Btw, I'm assuming you know about the project: > http://zookeeper.apache.org/bookkeeper/> Please keep us posted on project. It sounds like an interesting experiment. What is the JIRA so we can follow. What are the WAL Interface issues (same as for NN?). Thanks Flavio, St.Ack
-
Re: Omid: Transactional Support for HBase
Flavio Junqueira 2011-11-05, 18:56
Hi Stack, It is an old jira: HBASE-2315. -Flavio On Nov 5, 2011, at 7:40 PM, Stack wrote: > On Sat, Nov 5, 2011 at 12:53 AM, Flavio Junqueira <fpj@yahoo- > inc.com> wrote: >> >> On Nov 5, 2011, at 5:37 AM, lars hofhansl wrote: >> >>> One thing I was wondering: Why bookkeeper? Why not store the WAL >>> itself in >>> HBase? That way >>> you might not even need a separate server. >>> >> >> Lars, The key reasons are performance and scalability. We also >> would like to >> have region servers at some point using BookKeeper for WAL for our >> applications, even though the figure doesn't show it. In that case, >> we have >> a common platform for WAL. We have a jira open about it, but we >> haven't made >> progress in a while due to other priorities and some issues with >> the WAL >> interface, but we have been planning on getting back to it. >> >> Btw, I'm assuming you know about the project: >> http://zookeeper.apache.org/bookkeeper/>> > > Please keep us posted on project. It sounds like an interesting > experiment. What is the JIRA so we can follow. What are the WAL > Interface issues (same as for NN?). > > Thanks Flavio, > St.Ack flavio junqueira research scientist [EMAIL PROTECTED] direct +34 93-183-8828 avinguda diagonal 177, 8th floor, barcelona, 08018, es phone (408) 349 3300 fax (408) 349 3301
-
Re: Omid: Transactional Support for HBase
Daniel Gómez Ferro 2011-11-05, 20:36
On Nov 5, 2011, at 05:37 , lars hofhansl wrote: Cool stuff Daniel, Hi Lars, Thanks for the good points. Was looking through the code a bit. Seems like you make a best effort to push as much of the filtering of KVs of uncommitted transactions to HBase and then do some filtering on the client not a bad approach. (I hope I didn't misunderstand the approach, only looked through the code for 1/2 hour or so). Putting it more accurately, the uncommitted KVs are stored at HBase, but it is the client's job to filter them using the commit information that it has received from the status oracle. According to snapshot isolation guarantee, all the versions that are inserted with a timestamp larger than the transaction start timestamp must be ignored, which is done by setting the time range on the client's get request sent to HBase. Since the uncommitted changes of the aborted transactions are eventually removed from HBase, the client rarely needs to fetch more than a version to reach a KV that is committed before the transaction starts (the first property of snapshot isolation). One thing I was wondering: Why bookkeeper? Why not store the WAL itself in HBase? That way you might not even need a separate server. Did you see: HBaseSI ( http://www.cs.uwaterloo.ca/~c15zhang/HBaseSI.pdf), they also do MVCC on top of unaltered HBase/schema, although from reading that paper I get the impression that it would not scale to scans touching many rows (which is where your client side filtering comes in). Thanks for the link. We had seen the other paper of the same authors (Grid2010) that shares the same bottlenecks with the recent work. As you pointed out correctly, the question is about performance. You could see the scalability bottleneck of 400 TPS in the evaluation section of this paper. Our approach, however, provides snapshot isolation with a negligible overhead on region servers, and could scale up to tens of thousands write transactions per second. If you are interested, a summary of techniques that we used to achieve this performance is published at SOSP'11, poster section. http://sigops.org/sosp/sosp11/posters/summaries/sosp11-final12.pdf-- Lars ----- Original Message ----- From: Daniel Gómez Ferro <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> To: "[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>" <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>>; "[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>" <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> Cc: Maysam Yabandeh <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>>; Flavio Junqueira <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>>; Benjamin Reed <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>>; Ivan Kelly <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> Sent: Friday, November 4, 2011 4:24 AM Subject: Omid: Transactional Support for HBase (I apologize for resending but I forgot to add the user list.) Hi all, It is my pleasure to announce the open source release of Omid, a project whose goal is to add lock-free transactional support on top of HBase. The current release includes CrSO, a client-replicated status oracle that detects the write-write conflicts to provide Snapshot Isolation. CrSO has the following appealing properties: 1) It does not need any modification into the HBase code nor the table scheme. 2) The overhead on HBase DataNodes is negligible (only after an abort) 3) It scales up to 50,000 write transactions per second (TPS) and a thousand of client connections. We have setup a github project: https://github.com/dgomezferro/omidMore information is available at the wiki: https://github.com/dgomezferro/omid/wikiIf you are interested, installation and running instructions are available on the README: https://github.com/dgomezferro/omid/blob/master/README.mdPlease do not hesitate to contact us in the case of any question. Best Regards, Daniel Gómez Ferro
-
Re: Omid: Transactional Support for HBase
Flavio Junqueira 2011-11-06, 15:14
A quick note on Omid for the ones following on github: the repository we will be working with is the fork under the Yahoo! account: https://github.com/yahoo/omid/-Flavio On Nov 5, 2011, at 9:36 PM, Daniel Gómez Ferro wrote: > > On Nov 5, 2011, at 05:37 , lars hofhansl wrote: > >> Cool stuff Daniel, > > Hi Lars, > > Thanks for the good points. > >> >> Was looking through the code a bit. Seems like you make a best >> effort to push as much of >> the filtering of KVs of uncommitted transactions to HBase and then >> do some filtering on the client >> not a bad approach. (I hope I didn't misunderstand the approach, >> only looked through the code for >> 1/2 hour or so). > > Putting it more accurately, the uncommitted KVs are stored at HBase, > but it is the client's job to filter them using the commit > information that it has received from the status oracle. According > to snapshot isolation guarantee, all the versions that are inserted > with a timestamp larger than the transaction start timestamp must be > ignored, which is done by setting the time range on the client's get > request sent to HBase. Since the uncommitted changes of the aborted > transactions are eventually removed from HBase, the client rarely > needs to fetch more than a version to reach a KV that is committed > before the transaction starts (the first property of snapshot > isolation). > >> >> >> One thing I was wondering: Why bookkeeper? Why not store the WAL >> itself in HBase? That way >> you might not even need a separate server. >> >> Did you see: HBaseSI ( http://www.cs.uwaterloo.ca/~c15zhang/HBaseSI.pdf >> ), they also do MVCC >> on top of unaltered HBase/schema, although from reading that paper >> I get the impression that it >> would not scale to scans touching many rows (which is where your >> client side filtering comes in). > > Thanks for the link. We had seen the other paper of the same authors > (Grid2010) that shares the same bottlenecks with the recent work. > As you pointed out correctly, the question is about performance. You > could see the scalability bottleneck of 400 TPS in the evaluation > section of this paper. Our approach, however, provides snapshot > isolation with a negligible overhead on region servers, and could > scale up to tens of thousands write transactions per second. If you > are interested, a summary of techniques that we used to achieve this > performance is published at SOSP'11, poster section. > http://sigops.org/sosp/sosp11/posters/summaries/sosp11-final12.pdf> >> >> -- Lars >> >> >> ----- Original Message ----- >> From: Daniel Gómez Ferro <[EMAIL PROTECTED]> >> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>; "[EMAIL PROTECTED] >> " <[EMAIL PROTECTED]> >> Cc: Maysam Yabandeh <[EMAIL PROTECTED]>; Flavio Junqueira <[EMAIL PROTECTED] >> >; Benjamin Reed <[EMAIL PROTECTED]>; Ivan Kelly <[EMAIL PROTECTED] >> > >> Sent: Friday, November 4, 2011 4:24 AM >> Subject: Omid: Transactional Support for HBase >> >> (I apologize for resending but I forgot to add the user list.) >> >> Hi all, >> >> It is my pleasure to announce the open source release of Omid, a >> project whose goal is to add lock-free transactional support on top >> of HBase. The current release includes CrSO, a client-replicated >> status oracle that detects the write-write conflicts to provide >> Snapshot Isolation. CrSO has the following appealing properties: >> >> 1) It does not need any modification into the HBase code nor the >> table scheme. >> 2) The overhead on HBase DataNodes is negligible (only after an >> abort) >> 3) It scales up to 50,000 write transactions per second (TPS) and a >> thousand of client connections. >> >> We have setup a github project: https://github.com/dgomezferro/omid>> >> More information is available at the wiki: https://github.com/dgomezferro/omid/wiki>> >> If you are interested, installation and running instructions are >> available on the README: https://github.com/dgomezferro/omid/blob/master/README.mdflavio junqueira research scientist [EMAIL PROTECTED] direct +34 93-183-8828 avinguda diagonal 177, 8th floor, barcelona, 08018, es phone (408) 349 3300 fax (408) 349 3301
-
Re: Omid: Transactional Support for HBase
lars hofhansl 2011-11-06, 20:53
Another question: I assume this will not work out of the box with deletes? Deletes always cover all key values in the past (from their timestamps on backwards), so once a delete marker is placed there is no way to get back any of a puts it affects. HBase trunk has HBASE-4536 to allow time-range scans to work with deleted rows (but needs to be enabled for a column family - I still think it should be the default, but anyway). -- Lars ________________________________ From: Flavio Junqueira <[EMAIL PROTECTED]> To: Daniel Gómez Ferro <[EMAIL PROTECTED]> Cc: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>; lars hofhansl <[EMAIL PROTECTED]>; "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>; Maysam Yabandeh <[EMAIL PROTECTED]>; Benjamin Reed <[EMAIL PROTECTED]>; Ivan Kelly <[EMAIL PROTECTED]> Sent: Sunday, November 6, 2011 7:14 AM Subject: Re: Omid: Transactional Support for HBase A quick note on Omid for the ones following on github: the repository we will be working with is the fork under the Yahoo! account: https://github.com/yahoo/omid/-Flavio On Nov 5, 2011, at 9:36 PM, Daniel Gómez Ferro wrote: > >On Nov 5, 2011, at 05:37 , lars hofhansl wrote: > >Cool stuff Daniel, >> > >Hi Lars, > >Thanks for the good points. > > > >>Was looking through the code a bit. Seems like you make a best effort to push as much of >>the filtering of KVs of uncommitted transactions to HBase and then do some filtering on the client >>not a bad approach. (I hope I didn't misunderstand the approach, only looked through the code for >>1/2 hour or so). >> > >Putting it more accurately, the uncommitted KVs are stored at HBase, but it is the client's job to filter them using the commit information that it has received from the status oracle. According to snapshot isolation guarantee, all the versions that are inserted with a timestamp larger than the transaction start timestamp must be ignored, which is done by setting the time range on the client's get request sent to HBase. Since the uncommitted changes of the aborted transactions are eventually removed from HBase, the client rarely needs to fetch more than a version to reach a KV that is committed before the transaction starts (the first property of snapshot isolation). > > >> >>One thing I was wondering: Why bookkeeper? Why not store the WAL itself in HBase? That way >>you might not even need a separate server. >> >>Did you see: HBaseSI ( http://www.cs.uwaterloo.ca/~c15zhang/HBaseSI.pdf), they also do MVCC >>on top of unaltered HBase/schema, although from reading that paper I get the impression that it >>would not scale to scans touching many rows (which is where your client side filtering comes in). >> > > >Thanks for the link. We had seen the other paper of the same authors (Grid2010) that shares the same bottlenecks with the recent work. >As you pointed out correctly, the question is about performance. You could see the scalability bottleneck of 400 TPS in the evaluation section of this paper. Our approach, however, provides snapshot isolation with a negligible overhead on region servers, and could scale up to tens of thousands write transactions per second. If you are interested, a summary of techniques that we used to achieve this performance is published at SOSP'11, poster section. > http://sigops.org/sosp/sosp11/posters/summaries/sosp11-final12.pdf> > >>-- Lars >> >> >>----- Original Message ----- >>From: Daniel Gómez Ferro <[EMAIL PROTECTED]> >>To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>; "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> >>Cc: Maysam Yabandeh <[EMAIL PROTECTED]>; Flavio Junqueira <[EMAIL PROTECTED]>; Benjamin Reed <[EMAIL PROTECTED]>; Ivan Kelly <[EMAIL PROTECTED]> >>Sent: Friday, November 4, 2011 4:24 AM >>Subject: Omid: Transactional Support for HBase >> >>(I apologize for resending but I forgot to add the user list.) >> >>Hi all, >> >>It is my pleasure to announce the open source release of Omid, a project whose goal is to add lock-free transactional support on top of HBase. The current release includes CrSO, a client-replicated status oracle that detects the write-write conflicts to provide Snapshot Isolation. CrSO has the following appealing properties: flavio junqueira research scientist [EMAIL PROTECTED] direct +34 93-183-8828 avinguda diagonal 177, 8th floor, barcelona, 08018, es phone (408) 349 3300 fax (408) 349 3301
-
Re: Omid: Transactional Support for HBase
Daniel Gómez Ferro 2011-11-07, 11:33
On Nov 6, 2011, at 21:53 , lars hofhansl wrote: > Another question: I assume this will not work out of the box with deletes? Hi, Our current approach does support deletes (i.e., user requested deletes). Right now we use empty values as delete marks: when the user calls TransactionalTable.delete() we insert empty values at the specified timestamp. At the filtering time, we keep track of these delete marks and we can discard the ones that are uncommitted or fall outside our time range of interest. When a transaction aborts, the cleanup procedure deletes the specific values inserted by the transactions (in contrast to all versions). This way we don't insert delete tombstones that mask previous values. The drawbacks of this approach are that (i) we give a special meaning to the empty values, and (ii) to delete the whole column family (in contrast with a column) we have to perform a get beforehand to obtain the column qualifiers. > > Deletes always cover all key values in the past (from their timestamps on backwards), so once a delete marker is placed there is no way to get back any of a puts it affects. > > HBase trunk has HBASE-4536 to allow time-range scans to work with deleted rows (but needs to be enabled for a column family - I still think it should be the default, but anyway). > I think this feature would be very useful, and enables a cleaner implementation. It would be great if the flag was enabled by default, we want the user to change as little as possible his setup, but it's not a big deal. > -- Lars > > ________________________________ > From: Flavio Junqueira <[EMAIL PROTECTED]> > To: Daniel Gómez Ferro <[EMAIL PROTECTED]> > Cc: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>; lars hofhansl <[EMAIL PROTECTED]>; "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>; Maysam Yabandeh <[EMAIL PROTECTED]>; Benjamin Reed <[EMAIL PROTECTED]>; Ivan Kelly <[EMAIL PROTECTED]> > Sent: Sunday, November 6, 2011 7:14 AM > Subject: Re: Omid: Transactional Support for HBase > > > A quick note on Omid for the ones following on github: the repository we will be working with is the fork under the Yahoo! account: > > > https://github.com/yahoo/omid/> > -Flavio > > > On Nov 5, 2011, at 9:36 PM, Daniel Gómez Ferro wrote: > > >> >> On Nov 5, 2011, at 05:37 , lars hofhansl wrote: >> >> Cool stuff Daniel, >>> >> >> Hi Lars, >> >> Thanks for the good points. >> >> >> >>> Was looking through the code a bit. Seems like you make a best effort to push as much of >>> the filtering of KVs of uncommitted transactions to HBase and then do some filtering on the client >>> not a bad approach. (I hope I didn't misunderstand the approach, only looked through the code for >>> 1/2 hour or so). >>> >> >> Putting it more accurately, the uncommitted KVs are stored at HBase, but it is the client's job to filter them using the commit information that it has received from the status oracle. According to snapshot isolation guarantee, all the versions that are inserted with a timestamp larger than the transaction start timestamp must be ignored, which is done by setting the time range on the client's get request sent to HBase. Since the uncommitted changes of the aborted transactions are eventually removed from HBase, the client rarely needs to fetch more than a version to reach a KV that is committed before the transaction starts (the first property of snapshot isolation). >> >> >>> >>> One thing I was wondering: Why bookkeeper? Why not store the WAL itself in HBase? That way >>> you might not even need a separate server. >>> >>> Did you see: HBaseSI ( http://www.cs.uwaterloo.ca/~c15zhang/HBaseSI.pdf), they also do MVCC >>> on top of unaltered HBase/schema, although from reading that paper I get the impression that it >>> would not scale to scans touching many rows (which is where your client side filtering comes in). >>> >> >> >> Thanks for the link. We had seen the other paper of the same authors (Grid2010) that shares the same bottlenecks with the recent work.
|
|