Commit Graph

67 Commits

Author SHA1 Message Date
Nick Dimiduk ab18158e60 HBASE-12728 buffered writes substantially less useful after removal of HTablePool (Solomon Duskis and Nick Dimiduk)
In our pre-1.0 API, HTable is considered a light-weight object that consumed by
a single thread at a time. The HTablePool class provided a means of sharing
multiple HTable instances across a number of threads. As an optimization,
HTable managed a "write buffer", accumulating edits and sending a "batch" all
at once. By default the batch was sent as the last step in invocations of
put(Put) and put(List<Put>). The user could disable the automatic flushing of
the write buffer, retaining edits locally and only sending the whole "batch"
once the write buffer has filled or when the flushCommits() method in invoked
explicitly. Explicit or implicit batch writing was controlled by the
setAutoFlushTo(boolean) method. A value of true (the default) had the write
buffer flushed at the completion of a call to put(Put) or put(List<Put>). A
value of false allowed for explicit buffer management. HTable also exposed the
buffer to consumers via getWriteBuffer().

The combination of HTable with setAutoFlushTo(false) and the HTablePool
provided a convenient mechanism by which multiple "Put-producing" threads could
share a common write buffer. Both HTablePool and HTable are deprecated, and
they are officially replaced in The new 1.0 API by Table and BufferedMutator.
Table, which replaces HTable, no longer exposes explicit write-buffer
management. Instead, explicit buffer management is exposed via BufferedMutator.
BufferedMutator is made safe for concurrent use. Where code would previously
retrieve and return HTables from an HTablePool, now that code creates and
shares a single BufferedMutator instance across all threads.
2015-01-23 08:48:31 -08:00
Misty Stanley-Jones 1a21c1684c HBASE-11533 Asciidoc Proof of Concept 2015-01-13 22:32:29 -08:00
tedyu 9246af8dac HBASE-12796 Clean up HTable and HBaseAdmin deprecated constructor usage (Jurriaan Mous) 2015-01-08 07:49:28 -08:00
Esteban Gutierrez b2eea8cac6 HBASE-12695 JDK 1.8 compilation broken
Signed-off-by: stack <stack@apache.org>
2014-12-29 11:02:04 -08:00
Srikanth Srungarapu ba86c18f20 HBASE-12704 Add demo client which uses doAs functionality on Thrift-over-HTTPS 2014-12-17 16:13:24 -08:00
Jimmy Xiang d2c5e4bf74 Revert "Adding demo client"
This reverts commit 77a7925c32.
2014-12-17 16:11:47 -08:00
Srikanth Srungarapu 77a7925c32 Adding demo client 2014-12-17 16:06:56 -08:00
stack 56a03d736a HBASE-12603 Remove javadoc warnings introduced due to removal of unused imports (Varun Saxena) 2014-12-01 10:13:16 -08:00
stack 555e78005d HBASE-12526 Remove unused imports (Varun Saxena) 2014-11-29 09:20:46 -08:00
Andrew Purtell 1ba615657b HBASE-12382 Restore incremental compilation 2014-11-11 17:45:37 -08:00
Andrew Purtell 70a312e53f HBASE-11912 Catch some bad practices at compile time with error-prone 2014-10-27 09:29:23 -07:00
Andrew Purtell ff5bc351b2 Revert "HBASE-11912 Catch some bad practices at compile time with error-prone"
This reverts commit 7ed0260eff.
2014-10-25 08:33:43 -07:00
Andrew Purtell 7ed0260eff HBASE-11912 Catch some bad practices at compile time with error-prone 2014-10-24 18:15:12 -07:00
Andrew Purtell 3557a32352 HBASE-12106 Move test annotations to test artifact (Enis Soztutar) 2014-10-06 23:16:22 -07:00
stack b5783795cd HBASE-12038 Replace internal uses of signatures with byte[] and String tableNames to use the TableName equivalents (Solomon Duskis) 2014-09-30 16:35:55 -07:00
Enis Soztutar 6189b52fb0 HBASE-12042 Replace internal uses of HTable(Configuration, String) with HTable(Configuration, TableName) (Solomon Duskis) 2014-09-29 18:39:44 -07:00
Elliott Clark 2635791027 HBASE-12062 Fix usage of Collections.toArray 2014-09-23 09:58:24 -07:00
Jimmy Xiang 0ff05f46e7 HBASE-11960 Provide a sample to show how to use Thrift client authentication 2014-09-19 09:31:30 -07:00
stack 3c9bd7d296 HBASE-11911 Break up tests into more fine grained categories (Alex Newman) 2014-09-12 21:37:06 -07:00
Enis Soztutar 4995ed8a02 HBASE-11679 Replace HTable with HTableInterface where backwards-compatible (Carter) 2014-09-08 23:39:34 -07:00
stack 3bfbd06291 HBASE-11822 Convert EnvironmentEdge#getCurrentTimeMillis to getCurrentTime 2014-08-29 17:14:25 -07:00
Enis Soztutar 92c52a727a Updated version in master to 2.0.0-SNAPSHOT after 'branch-1' is created for 1.x line of releases 2014-06-30 20:26:47 -07:00
Andrew Purtell 8b145419ed HBASE-11161 Provide example of POJO encoding with protobuf (Nick Dimiduk) 2014-05-23 13:53:23 -07:00
Enis Soztutar b021a1a513 HBASE-10163 Example Thrift DemoClient is flaky
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1551385 13f79535-47bb-0310-9956-ffa450edef68
2013-12-16 22:34:36 +00:00
Michael Stack 57b8613688 HBASE_9955 Make hadoop2 the default and deprecate hadoop1; RETRY
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1548374 13f79535-47bb-0310-9956-ffa450edef68
2013-12-06 02:42:20 +00:00
Michael Stack fe5b28625a HBASE-9955 Make hadoop2 the default and deprecate hadoop1; REVERT
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1548351 13f79535-47bb-0310-9956-ffa450edef68
2013-12-06 01:16:51 +00:00
Michael Stack 7fbe97470e HBASE-9955 Make hadoop2 the default and deprecate hadoop1
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1548349 13f79535-47bb-0310-9956-ffa450edef68
2013-12-06 01:10:59 +00:00
Andrew Kyle Purtell f8139d1bf5 Update version in POMs to 0.99.0-SNAPSHOT after branching for release 0.98.0
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1547743 13f79535-47bb-0310-9956-ffa450edef68
2013-12-04 09:31:02 +00:00
Enis Soztutar 770e336ef6 HBASE-10020 Add maven compile-protobuf profile
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1546237 13f79535-47bb-0310-9956-ffa450edef68
2013-11-27 23:57:23 +00:00
Zhihong Yu 09ec361d3a HBASE-9754 Eliminate threadlocal from MVCC code (Ted Yu)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1533633 13f79535-47bb-0310-9956-ffa450edef68
2013-10-18 21:09:48 +00:00
eclark ce7c5b8e03 HBASE-9699 For Downstreamers using HBaseTestingUtility is hard.
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1528645 13f79535-47bb-0310-9956-ffa450edef68
2013-10-02 21:59:19 +00:00
eclark 10f0270f2c HBASE-9597 Create an hbase-thrift module
* Starting to create a thrift server module.
* Finished creating a thrift module
* Fix the assembly.
(cherry picked from commit 84e71a3469ec8eea1e0164bee3f7b2c9e0242847)
(cherry picked from commit 7fa170bd25e9b311b1cf268070ae05562d221f49)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1525139 13f79535-47bb-0310-9956-ffa450edef68
2013-09-20 20:44:22 +00:00
sershe ed90c565ef HBASE-9496 make sure HBase APIs are compatible between 0.94 and 0.96
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1523825 13f79535-47bb-0310-9956-ffa450edef68
2013-09-16 22:36:38 +00:00
Jonathan Hsieh 3e25e1b7f5 HBASE-9493 Rename CellUtil#get*Array to CellUtil#clone*
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1521676 13f79535-47bb-0310-9956-ffa450edef68
2013-09-10 23:05:50 +00:00
Jonathan Hsieh 5a3060ee37 HBASE-9334 Convert KeyValue to Cell in hbase-client module - Filters
HBASE-9359 Convert KeyValue to Cell in hbase-client module - Result/Put/Delete, ColumnInterpreter


git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1519077 13f79535-47bb-0310-9956-ffa450edef68
2013-08-30 20:31:47 +00:00
jeffreyz 72eacc89f3 hbase-9226: Thrift host and port are hardcoded in thrift2 DemoClient.java
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1514425 13f79535-47bb-0310-9956-ffa450edef68
2013-08-15 18:25:21 +00:00
jeffreyz 00c3eb1a0e hbase-9222: Thrift DemoClient failed with error IllegalArgument(message:Row length is 0)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1514401 13f79535-47bb-0310-9956-ffa450edef68
2013-08-15 17:49:37 +00:00
Michael Stack 46fb7c409d HBASE-8408 Implement namespace
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1511577 13f79535-47bb-0310-9956-ffa450edef68
2013-08-08 04:19:49 +00:00
Michael Stack 34c8e0ab16 HBASE-8224 Publish hbase build against h1 and h2 adding '-hadoop1' or '-hadoop2' to version string
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1509813 13f79535-47bb-0310-9956-ffa450edef68
2013-08-02 19:01:34 +00:00
Devaraj Das 3daea02e86 HBASE-8846. Refactors the old exceptions back to their original packages.
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1508301 13f79535-47bb-0310-9956-ffa450edef68
2013-07-30 05:14:32 +00:00
larsh 00175ae834 HBASE-8877 Reentrant row locks (Dave Latham)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1504002 13f79535-47bb-0310-9956-ffa450edef68
2013-07-17 05:34:00 +00:00
Lars George 8bf99de619 HBASE-8890 Fix Thrift 2 example class location
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1501722 13f79535-47bb-0310-9956-ffa450edef68
2013-07-10 11:17:06 +00:00
Zhihong Yu 191ba57a27 HBASE-8534 Fix coverage for org.apache.hadoop.hbase.mapreduce (Aleksey Gorshkov)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1488542 13f79535-47bb-0310-9956-ffa450edef68
2013-06-01 16:23:55 +00:00
anoopsamjohn 6ff1dc821d HBASE-8641 IndexBuilder example : CF name of the src table is hard coded
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1487909 13f79535-47bb-0310-9956-ffa450edef68
2013-05-30 16:12:05 +00:00
Michael Stack c6f4c60ac4 HBASE-1762 Remove concept of ZooKeeper from HConnection interface
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1480501 13f79535-47bb-0310-9956-ffa450edef68
2013-05-09 00:05:17 +00:00
Michael Stack df95e96647 HBASE-5472 LoadIncrementalHFiles loops forever if the target table misses a CF -- REVERT -- ANOTHER OVERCOMMIT
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1471247 13f79535-47bb-0310-9956-ffa450edef68
2013-04-24 04:45:44 +00:00
Michael Stack e5094baacf HBASE-5472 LoadIncrementalHFiles loops forever if the target table misses a CF -- REAPPLY
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1471246 13f79535-47bb-0310-9956-ffa450edef68
2013-04-24 04:44:09 +00:00
Jean-Daniel Cryans 0aadc0b0f4 HBASE-8390 Trunk/0.95 cannot simply compile against Hadoop 1.0
HBASE-8391  StochasticLoadBalancer doesn't call needsBalance


git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1471050 13f79535-47bb-0310-9956-ffa450edef68
2013-04-23 17:14:51 +00:00
Michael Stack 00f7bb46c5 HBASE-8187 trunk/0.95 tarball packaging
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1462606 13f79535-47bb-0310-9956-ffa450edef68
2013-03-29 18:49:42 +00:00
Michael Stack 130d95e78d HBASE-8005 DemoClient.cpp can not be built correctly
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1461177 13f79535-47bb-0310-9956-ffa450edef68
2013-03-26 15:12:24 +00:00