Okay, good to know.
One last clarification: everytime I call: HTableInterface table = connection.getTable(tableNameBytes); *Must* there always be a call to table.close()? I would like to avoid caching a reference to an HTableInterface object, but to do that means that I have to call getTable every time I need to put/delete etc. If, in turn, I must call table.close() every time, then it defeats the purpose of disabling autoflush since each close() will trigger a call to flushCommits(). So can I call connection.getTable() without closing the returned table, if I ensure that I will call table.close() when I need to? Lastly: this is what I was referring to when I mentioned that Puts and Delets are mentioned together as Writes in the 0.98 doc: https://github.com/apache/hbase/blob/0.98/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java#L91 On Mon, May 16, 2016 at 8:24 PM, Stack <[email protected]> wrote: > On Mon, May 16, 2016 at 5:20 PM, Natasha d'silva <[email protected]> > wrote: > > > Thanks for the quick response. What about check and put? The check is > > atomic but is the put buffered? > > > > No. checkAnd* are operations unto themselves that are sent to the server to > run; only it has the means of achieving a checkAnd* that has integrity. > St.Ack > > > > > On May 16, 2016 6:30 PM, "Stack" <[email protected]> wrote: > > > > > In 0.98, only Puts are buffered. > > > > > > I did a search of the above text but didn't find it in 0.98... I'm > > > searching wrong? Mind fling an issue so we fix the above > > misdocumentation? > > > > > > Thank you, > > > S > > > > > > > > > > > > On Mon, May 16, 2016 at 10:30 AM, Natasha d'silva <[email protected] > > > > > wrote: > > > > > > > Hi, I would like some clarification on whether or not disabling > > autoflush > > > > affects Put and Delete operations or just Puts. > > > > The setAutoFlush doc states that it only affects Puts, but elsewhere > in > > > the > > > > documentation for HTable, Puts and Writes are mentioned together: "In > > > case > > > > of writes (Put, Delete), the underlying write buffer can be corrupted > > if > > > > multiple threads contend over a single HTable instance." > > > > I would appreciate it if someone could please clarify. > > > > > > > > Thanks! > > > > > > > > -- > > > > -Natasha D'Silva > > > > > > > > > > -- -Natasha D'Silva
