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

WAL(Write Ahead Log) operations..? #48

Closed
Narenthirasamy opened this issue Oct 30, 2013 · 4 comments
Closed

WAL(Write Ahead Log) operations..? #48

Narenthirasamy opened this issue Oct 30, 2013 · 4 comments

Comments

@Narenthirasamy
Copy link

Does happybase support turning off WAL(Write Ahead Log) while put and scan operation?

@wbolster
Copy link
Member

wbolster commented Nov 3, 2013

Not currently, since those flags could not be set in the Thrift API from HBase versions. It seems more recent Thrift versions [1] do support a writeToWAL flag:

struct Mutation {
 1:bool isDelete = 0,
 2:Text column,
 3:Text value,
 :bool writeToWAL = 1
}

HappyBase does not have support for this flag at this moment. This looks like a useful addition though.

[1] http://svn.apache.org/viewvc/hbase/trunk/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift/Hbase.thrift?view=markup

@wbolster
Copy link
Member

wbolster commented Nov 3, 2013

It occurred to me issue #36 already tracks this request, so I'm closing this as a duplicate.

@wbolster wbolster closed this as completed Nov 3, 2013
@wbolster
Copy link
Member

wbolster commented Nov 3, 2013

Fwiw, you mention the WAL in combination with scan operations. That doesn't make sense, since scans are read operations, and the WAL is only used for write operations, i.e. puts and deletes.

@wbolster
Copy link
Member

wbolster commented Nov 3, 2013

Various data manipulation methods now support a wal argument; see issue #36 and 7cfb9ee.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants