[jira] [Commented] (HBASE-10885) Support visibility expressions on Deletes

2014-04-15 Thread Anoop Sam John (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969254#comment-13969254
 ] 

Anoop Sam John commented on HBASE-10885:


bq. Do the delete handling in compaction because for the deleteColumn or 
deleteFamily cases if we convert that delete request to a set of per-cell 
deletes, this could produce an explosion of tombstones. 
+1
bq.If we are not storing visibility expression terminals (LeafExpressionNodes) 
in sorted order by ordinal we probably should consider it. (I don't think we 
are.) Because e.g. A|B == B|A. It would be most efficient if we can simply do 
byte comparison of serialized visibility expressions on the delete marker and 
any found while enumerating cells covered by it. 
Yes +1.

 So when we decide at the compaction time by direct byte compare of expressions 
in Delete kv and other kvs, what abt the old HFile data written using 98.0 or 
98.1 versions?  This will be like not sorted.
Also it wont one simple bytes compare.   AB will be stored as one Tag. In case 
of '|' it will be stored as 2 tags.   So we need to consider all these tags and 
compare all.  Just a note before starting the impl.



 Support visibility expressions on Deletes
 -

 Key: HBASE-10885
 URL: https://issues.apache.org/jira/browse/HBASE-10885
 Project: HBase
  Issue Type: Improvement
Affects Versions: 0.98.1
Reporter: Andrew Purtell
Assignee: ramkrishna.s.vasudevan
 Fix For: 0.99.0, 0.98.2


 Accumulo can specify visibility expressions for delete markers. During 
 compaction the cells covered by the tombstone are determined in part by 
 matching the visibility expression. This is useful for the use case of data 
 set coalescing, where entries from multiple data sets carrying different 
 labels are combined into one common large table. Later, a subset of entries 
 can be conveniently removed using visibility expressions.
 Currently doing the same in HBase would only be possible with a custom 
 coprocessor. Otherwise, a Delete will affect all cells covered by the 
 tombstone regardless of any visibility expression scoping. This is correct 
 behavior in that no data spill is possible, but certainly could be 
 surprising, and is only meant to be transitional. We decided not to support 
 visibility expressions on Deletes to control the complexity of the initial 
 implementation.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10966) RowCounter misinterprets column names that have colons in their qualifier

2014-04-15 Thread stack (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

stack updated HBASE-10966:
--

Attachment: 10966v094.txt

v0.94 version that I applied.

 RowCounter misinterprets column names that have colons in their qualifier
 -

 Key: HBASE-10966
 URL: https://issues.apache.org/jira/browse/HBASE-10966
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.99.0
Reporter: Alexandre Normand
Assignee: Alexandre Normand
Priority: Trivial
 Attachments: 10966v094.txt, HBASE-10966-1.patch


 RowCounter allows for column names to be specify at command line:
 {code}
 Usage: RowCounter [options] tablename [--range=[startKey],[endKey]] 
 [column1 column2...]
 For performance consider the following options:
 -Dhbase.client.scanner.caching=100
 -Dmapred.map.tasks.speculative.execution=false
 {code}
 However, the column names are parsed assuming that if there is a colon, there 
 are only two parts to the string. In other words, it assumes 
 {{family:qualifier}} where {{qualifier}} wouldn't contain a colon. 
 This came up as I was trying to do a row count on a {{kiji}} table where 
 qualifiers typically have multiple colon-delimited components (i.e. {{B:C}} 
 could be a qualifier in the {{B}} family).
 The flaw is in this code:
 {code}
String  [] fields = columnName.split(:);
 if(fields.length == 1) {
   scan.addFamily(Bytes.toBytes(fields[0]));
 } else {
   byte[] qualifier = Bytes.toBytes(fields[1]);
   qualifiers.add(qualifier);
   scan.addColumn(Bytes.toBytes(fields[0]), qualifier); 
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10966) RowCounter misinterprets column names that have colons in their qualifier

2014-04-15 Thread stack (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

stack updated HBASE-10966:
--

   Resolution: Fixed
Fix Version/s: 0.96.3
   0.98.2
   0.94.19
   0.99.0
 Release Note: Applied to all branches (0.94 doesn't have TestRowCounter so 
didn't get test change).  Thanks for the patch Alexandre.
 Hadoop Flags: Reviewed
   Status: Resolved  (was: Patch Available)

 RowCounter misinterprets column names that have colons in their qualifier
 -

 Key: HBASE-10966
 URL: https://issues.apache.org/jira/browse/HBASE-10966
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.99.0
Reporter: Alexandre Normand
Assignee: Alexandre Normand
Priority: Trivial
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10966v094.txt, HBASE-10966-1.patch


 RowCounter allows for column names to be specify at command line:
 {code}
 Usage: RowCounter [options] tablename [--range=[startKey],[endKey]] 
 [column1 column2...]
 For performance consider the following options:
 -Dhbase.client.scanner.caching=100
 -Dmapred.map.tasks.speculative.execution=false
 {code}
 However, the column names are parsed assuming that if there is a colon, there 
 are only two parts to the string. In other words, it assumes 
 {{family:qualifier}} where {{qualifier}} wouldn't contain a colon. 
 This came up as I was trying to do a row count on a {{kiji}} table where 
 qualifiers typically have multiple colon-delimited components (i.e. {{B:C}} 
 could be a qualifier in the {{B}} family).
 The flaw is in this code:
 {code}
String  [] fields = columnName.split(:);
 if(fields.length == 1) {
   scan.addFamily(Bytes.toBytes(fields[0]));
 } else {
   byte[] qualifier = Bytes.toBytes(fields[1]);
   qualifiers.add(qualifier);
   scan.addColumn(Bytes.toBytes(fields[0]), qualifier); 
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10960) Enhance HBase Thrift 1 to include append and checkAndPut operations

2014-04-15 Thread Srikanth Srungarapu (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969259#comment-13969259
 ] 

Srikanth Srungarapu commented on HBASE-10960:
-

Added the patch to the review board (https://reviews.apache.org/r/20361/).

 Enhance HBase Thrift 1 to include append and checkAndPut operations
 ---

 Key: HBASE-10960
 URL: https://issues.apache.org/jira/browse/HBASE-10960
 Project: HBase
  Issue Type: Improvement
  Components: Thrift
Reporter: Srikanth Srungarapu
Assignee: Srikanth Srungarapu
 Fix For: 0.98.2

 Attachments: HBASE-10960.patch


 Both append, and checkAndPut functionalities are available in Thrift 2 
 interface, but not in Thrift. So, adding the support for these 
 functionalities in Thrift1 too.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10845) Memstore snapshot size isn't updated in DefaultMemStore#rollback()

2014-04-15 Thread stack (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969264#comment-13969264
 ] 

stack commented on HBASE-10845:
---

[~ted_yu] Not what I was thinking but its a test... +1 (I was thinking you'd 
just do mock up in TestDefaultMemStore -- it already has a bunch of these kind 
of size calculations).

It looks like trunk already has this fix since HBASE-10648.  It was just not 
backported?

Thanks.

 Memstore snapshot size isn't updated in DefaultMemStore#rollback()
 --

 Key: HBASE-10845
 URL: https://issues.apache.org/jira/browse/HBASE-10845
 Project: HBase
  Issue Type: Bug
Reporter: Ted Yu
Assignee: Ted Yu
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10845-0.98.txt, 10845-v1.txt, 10845-v2.txt, 
 10845-v3.txt, 10845-v4.txt


 In DefaultMemStore#rollback() :
 {code}
  if (found != null  found.getMvccVersion() == kv.getMvccVersion()) {
this.snapshot.remove(kv);
  }
 {code}
 this.snapshotSize should be updated in case of rollback.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10965) Automate detection of presence of Filter#filterRow()

2014-04-15 Thread Anoop Sam John (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969266#comment-13969266
 ] 

Anoop Sam John commented on HBASE-10965:


In initial time of 94 , I remember that   Filter#hasFilterRow() was associated 
with Filter#filterRow(ListKV)
We used this boolean API in 2 places
1. To check whether Scan is with a Filter, which is having row filtering, and 
with a batch value set. This is not correct way and we have to fail then
2. The place before we call Filter#filterRow(ListKV) in HRegion

Later we made it like hasFilterRow() to return true when filterRow() is also 
implemented and so same is used in code where we call filterRow() also.

Actually we need to use this boolean API only in case 1.  When one uses a 
filter and a Scan batch wrongly, we will fail the scan op 1st step itself. 
So there is no need to check this boolean API value before calling the actual 
Filter methods. The impl in FilterBase do nothing and no problem in calling 
that I believe.

So with this Jira, if there is consensus to remove even the hasFilterRow() 
method, we can simplify the things.  Just in place where we check the Scan 
filter and batch to see whether we can proceed with the open scanner, just do 
this auto detect of method impls and act.  In other places of HRegion scan 
flow, no need to rely on any of these boolean values of hasFilterRow() returns.

Make some sense?

When we auto detect presence of methods take care of the FL case. ( FL inside 
FL) which I was saying above.

 Automate detection of presence of Filter#filterRow()
 

 Key: HBASE-10965
 URL: https://issues.apache.org/jira/browse/HBASE-10965
 Project: HBase
  Issue Type: Task
Reporter: Ted Yu
Assignee: Ted Yu
 Attachments: 10965-v1.txt, 10965-v2.txt, 10965-v3.txt, 10965-v4.txt


 There is potential inconsistency between the return value of 
 Filter#hasFilterRow() and presence of Filter#filterRow().
 Filters may override Filter#filterRow() while leaving return value of 
 Filter#hasFilterRow() being false (inherited from FilterBase).
 This JIRA aims to remove the inconsistency by automatically detecting the 
 presence of overridden Filter#filterRow(). If filterRow() is implemented and 
 not inherited from FilterBase, it is equivalent to having hasFilterRow() 
 return true.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10845) Memstore snapshot size isn't updated in DefaultMemStore#rollback()

2014-04-15 Thread Anoop Sam John (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969269#comment-13969269
 ] 

Anoop Sam John commented on HBASE-10845:


bq.It looks like trunk already has this fix 
No Stack.  This fix is not there in any of the branch.

 Memstore snapshot size isn't updated in DefaultMemStore#rollback()
 --

 Key: HBASE-10845
 URL: https://issues.apache.org/jira/browse/HBASE-10845
 Project: HBase
  Issue Type: Bug
Reporter: Ted Yu
Assignee: Ted Yu
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10845-0.98.txt, 10845-v1.txt, 10845-v2.txt, 
 10845-v3.txt, 10845-v4.txt


 In DefaultMemStore#rollback() :
 {code}
  if (found != null  found.getMvccVersion() == kv.getMvccVersion()) {
this.snapshot.remove(kv);
  }
 {code}
 this.snapshotSize should be updated in case of rollback.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10982) TestZKProcedure.testMultiCohortWithMemberTimeoutDuringPrepare fails frequently in 0.94

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969271#comment-13969271
 ] 

Hudson commented on HBASE-10982:


SUCCESS: Integrated in HBase-0.94-security #463 (See 
[https://builds.apache.org/job/HBase-0.94-security/463/])
HBASE-10982 TestZKProcedure.testMultiCohortWithMemberTimeoutDuringPrepare fails 
frequently in 0.94. (larsh: rev 1587398)
* 
/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/procedure/TestZKProcedure.java


 TestZKProcedure.testMultiCohortWithMemberTimeoutDuringPrepare fails 
 frequently in 0.94
 --

 Key: HBASE-10982
 URL: https://issues.apache.org/jira/browse/HBASE-10982
 Project: HBase
  Issue Type: Bug
Reporter: Lars Hofhansl
Assignee: Lars Hofhansl
 Fix For: 0.94.19

 Attachments: 10982.txt


 Turns out this is fixed in trunk already.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10543) Two rare test failures with TestLogsCleaner and TestSplitLogWorker

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969282#comment-13969282
 ] 

Hudson commented on HBASE-10543:


SUCCESS: Integrated in hbase-0.96 #382 (See 
[https://builds.apache.org/job/hbase-0.96/382/])
HBASE-10543 Two rare test failures with TestLogsCleaner and TestSplitLogWorker 
(stack: rev 1587366)
* 
/hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/master/cleaner/TestLogsCleaner.java
* 
/hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestSplitLogWorker.java


 Two rare test failures with TestLogsCleaner and TestSplitLogWorker
 --

 Key: HBASE-10543
 URL: https://issues.apache.org/jira/browse/HBASE-10543
 Project: HBase
  Issue Type: Test
Reporter: Jimmy Xiang
Assignee: Jimmy Xiang
Priority: Minor
 Fix For: 0.98.1, 0.99.0, 0.96.3

 Attachments: hbase-10543.patch


 TestSplitLogWorker#testPreemptTask timed out in waiting for a task prempted.  
 TestLogsCleaner#testLogCleaning failed to check the files remaining.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10569) Co-locate meta and master

2014-04-15 Thread Francis Liu (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969283#comment-13969283
 ] 

Francis Liu commented on HBASE-10569:
-

Thanks for the writeup. Left some comments, mainly concerned about 
splittability, as it seems the main draw of this approach is local writes to 
the meta which seems to be at odds with meta splittability?

 Co-locate meta and master
 -

 Key: HBASE-10569
 URL: https://issues.apache.org/jira/browse/HBASE-10569
 Project: HBase
  Issue Type: Improvement
  Components: master, Region Assignment
Reporter: Jimmy Xiang
Assignee: Jimmy Xiang
 Fix For: 0.99.0

 Attachments: hbase-10569_v1.patch, hbase-10569_v2.patch, 
 hbase-10569_v3.1.patch, hbase-10569_v3.patch


 I was thinking simplifying/improving the region assignments. The first step 
 is to co-locate the meta and the master as many people agreed on HBASE-5487.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10844) Coprocessor failure during batchmutation leaves the memstore datastructs in an inconsistent state

2014-04-15 Thread Lars Hofhansl (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Hofhansl updated HBASE-10844:
--

Fix Version/s: (was: 0.94.19)
   0.94.20

 Coprocessor failure during batchmutation leaves the memstore datastructs in 
 an inconsistent state
 -

 Key: HBASE-10844
 URL: https://issues.apache.org/jira/browse/HBASE-10844
 Project: HBase
  Issue Type: Bug
  Components: regionserver
Reporter: Devaraj Das
Assignee: Devaraj Das
 Fix For: 0.99.0, 0.98.2, 0.96.3, 0.94.20

 Attachments: 10844-1.txt


 Observed this in the testing with Phoenix. The test in Phoenix - 
 MutableIndexFailureIT deliberately fails the batchmutation call via the 
 installed coprocessor. But the update is not rolled back. That leaves the 
 memstore inconsistent. In particular, I observed that getFlushableSize is 
 updated before the coprocessor was called but the update is not rolled back. 
 When the region is being closed at some later point, the assert introduced in 
 HBASE-10514 in the HRegion.doClose() causes the RegionServer to shutdown 
 abnormally.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10844) Coprocessor failure during batchmutation leaves the memstore datastructs in an inconsistent state

2014-04-15 Thread Lars Hofhansl (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969285#comment-13969285
 ] 

Lars Hofhansl commented on HBASE-10844:
---

Oh, I totally agree. I was just answering Ram's hypothetical question :)
A _post_ hook is a post hook, it should not undo anything.


 Coprocessor failure during batchmutation leaves the memstore datastructs in 
 an inconsistent state
 -

 Key: HBASE-10844
 URL: https://issues.apache.org/jira/browse/HBASE-10844
 Project: HBase
  Issue Type: Bug
  Components: regionserver
Reporter: Devaraj Das
Assignee: Devaraj Das
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10844-1.txt


 Observed this in the testing with Phoenix. The test in Phoenix - 
 MutableIndexFailureIT deliberately fails the batchmutation call via the 
 installed coprocessor. But the update is not rolled back. That leaves the 
 memstore inconsistent. In particular, I observed that getFlushableSize is 
 updated before the coprocessor was called but the update is not rolled back. 
 When the region is being closed at some later point, the assert introduced in 
 HBASE-10514 in the HRegion.doClose() causes the RegionServer to shutdown 
 abnormally.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10844) Coprocessor failure during batchmutation leaves the memstore datastructs in an inconsistent state

2014-04-15 Thread Lars Hofhansl (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969287#comment-13969287
 ] 

Lars Hofhansl commented on HBASE-10844:
---

Should we close this as invalid?

 Coprocessor failure during batchmutation leaves the memstore datastructs in 
 an inconsistent state
 -

 Key: HBASE-10844
 URL: https://issues.apache.org/jira/browse/HBASE-10844
 Project: HBase
  Issue Type: Bug
  Components: regionserver
Reporter: Devaraj Das
Assignee: Devaraj Das
 Fix For: 0.99.0, 0.98.2, 0.96.3, 0.94.20

 Attachments: 10844-1.txt


 Observed this in the testing with Phoenix. The test in Phoenix - 
 MutableIndexFailureIT deliberately fails the batchmutation call via the 
 installed coprocessor. But the update is not rolled back. That leaves the 
 memstore inconsistent. In particular, I observed that getFlushableSize is 
 updated before the coprocessor was called but the update is not rolled back. 
 When the region is being closed at some later point, the assert introduced in 
 HBASE-10514 in the HRegion.doClose() causes the RegionServer to shutdown 
 abnormally.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10969) TestDistributedLogSplitting fails frequently in 0.94.

2014-04-15 Thread Lars Hofhansl (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969289#comment-13969289
 ] 

Lars Hofhansl commented on HBASE-10969:
---

Committed the addendum. Thanks [~stack]. I hope this is the end of this.

 TestDistributedLogSplitting fails frequently in 0.94.
 -

 Key: HBASE-10969
 URL: https://issues.apache.org/jira/browse/HBASE-10969
 Project: HBase
  Issue Type: Bug
  Components: test
Reporter: Lars Hofhansl
Assignee: Lars Hofhansl
 Fix For: 0.94.19

 Attachments: 10969-addendum.txt, 10969.txt


 Example:
 {code}
 Error Message
 null not an instance of org.apache.hadoop.hbase.MiniHBaseCluster
 Stacktrace
 java.lang.RuntimeException: null not an instance of 
 org.apache.hadoop.hbase.MiniHBaseCluster
   at 
 org.apache.hadoop.hbase.HBaseTestingUtility.getMiniHBaseCluster(HBaseTestingUtility.java:701)
   at 
 org.apache.hadoop.hbase.HBaseTestingUtility.getHBaseCluster(HBaseTestingUtility.java:1653)
   at 
 org.apache.hadoop.hbase.master.TestDistributedLogSplitting.after(TestDistributedLogSplitting.java:125)
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10835) DBE encode path improvements

2014-04-15 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969290#comment-13969290
 ] 

Hadoop QA commented on HBASE-10835:
---

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  http://issues.apache.org/jira/secure/attachment/12640204/HBASE-10835.patch
  against trunk revision .
  ATTACHMENT ID: 12640204

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:green}+1 tests included{color}.  The patch appears to include 18 new 
or modified tests.

{color:green}+1 javadoc{color}.  The javadoc tool did not generate any 
warning messages.

{color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

{color:green}+1 findbugs{color}.  The patch does not introduce any new 
Findbugs (version 1.3.9) warnings.

{color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

{color:red}-1 lineLengths{color}.  The patch introduces the following lines 
longer than 100:
+HFileBlockDefaultEncodingContext encodingCtx = 
(HFileBlockDefaultEncodingContext) blkEncodingCtx;
+ListDataBlockEncoder.EncodedSeeker encodedSeekers = new 
ArrayListDataBlockEncoder.EncodedSeeker();
+HFileDataBlockEncoder dbe = (diskAlgo == DataBlockEncoding.NONE) ? 
NoOpDataBlockEncoder.INSTANCE

  {color:green}+1 site{color}.  The mvn site goal succeeds with this patch.

 {color:red}-1 core tests{color}.  The patch failed these unit tests:
   org.apache.hadoop.hbase.mapreduce.TestHFileOutputFormat2
  org.apache.hadoop.hbase.mapreduce.TestHFileOutputFormat

 {color:red}-1 core zombie tests{color}.  There are 1 zombie test(s):   
at 
org.apache.hadoop.hbase.mapreduce.TestMultiTableInputFormat.testScan(TestMultiTableInputFormat.java:244)
at 
org.apache.hadoop.hbase.mapreduce.TestMultiTableInputFormat.testScanYZYToEmpty(TestMultiTableInputFormat.java:195)

Test results: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9288//testReport/
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9288//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop2-compat.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9288//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-prefix-tree.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9288//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-client.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9288//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9288//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-protocol.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9288//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9288//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-examples.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9288//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-thrift.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9288//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop-compat.html
Console output: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9288//console

This message is automatically generated.

 DBE encode path improvements
 

 Key: HBASE-10835
 URL: https://issues.apache.org/jira/browse/HBASE-10835
 Project: HBase
  Issue Type: Improvement
Reporter: Anoop Sam John
Assignee: Anoop Sam John
 Fix For: 0.99.0

 Attachments: HBASE-10835.patch


 Here 1st we write KVs (Cells) into a buffer and then passed to DBE encoder. 
 Encoder again reads kvs one by one from the buffer and encodes and creates a 
 new buffer.
 There is no need to have this model now. Previously we had option of no 
 encode in disk and encode only in cache. At that time the read buffer from a 
 HFile block was passed to this and encodes.
 So encode cell by cell can be done now. Making this change will need us to 
 have a NoOp DBE impl which just do the write of a cell as it is with out any 
 encoding.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10982) TestZKProcedure.testMultiCohortWithMemberTimeoutDuringPrepare fails frequently in 0.94

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969302#comment-13969302
 ] 

Hudson commented on HBASE-10982:


SUCCESS: Integrated in HBase-0.94 #1344 (See 
[https://builds.apache.org/job/HBase-0.94/1344/])
HBASE-10982 TestZKProcedure.testMultiCohortWithMemberTimeoutDuringPrepare fails 
frequently in 0.94. (larsh: rev 1587398)
* 
/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/procedure/TestZKProcedure.java


 TestZKProcedure.testMultiCohortWithMemberTimeoutDuringPrepare fails 
 frequently in 0.94
 --

 Key: HBASE-10982
 URL: https://issues.apache.org/jira/browse/HBASE-10982
 Project: HBase
  Issue Type: Bug
Reporter: Lars Hofhansl
Assignee: Lars Hofhansl
 Fix For: 0.94.19

 Attachments: 10982.txt


 Turns out this is fixed in trunk already.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10982) TestZKProcedure.testMultiCohortWithMemberTimeoutDuringPrepare fails frequently in 0.94

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969312#comment-13969312
 ] 

Hudson commented on HBASE-10982:


FAILURE: Integrated in HBase-0.94-JDK7 #110 (See 
[https://builds.apache.org/job/HBase-0.94-JDK7/110/])
HBASE-10982 TestZKProcedure.testMultiCohortWithMemberTimeoutDuringPrepare fails 
frequently in 0.94. (larsh: rev 1587398)
* 
/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/procedure/TestZKProcedure.java


 TestZKProcedure.testMultiCohortWithMemberTimeoutDuringPrepare fails 
 frequently in 0.94
 --

 Key: HBASE-10982
 URL: https://issues.apache.org/jira/browse/HBASE-10982
 Project: HBase
  Issue Type: Bug
Reporter: Lars Hofhansl
Assignee: Lars Hofhansl
 Fix For: 0.94.19

 Attachments: 10982.txt


 Turns out this is fixed in trunk already.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10969) TestDistributedLogSplitting fails frequently in 0.94.

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969367#comment-13969367
 ] 

Hudson commented on HBASE-10969:


FAILURE: Integrated in HBase-0.94-on-Hadoop-2 #69 (See 
[https://builds.apache.org/job/HBase-0.94-on-Hadoop-2/69/])
HBASE-10969 Addendum - avoid races in dfs/zk cluster start/stop (larsh: rev 
1587458)
* 
/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/master/TestDistributedLogSplitting.java


 TestDistributedLogSplitting fails frequently in 0.94.
 -

 Key: HBASE-10969
 URL: https://issues.apache.org/jira/browse/HBASE-10969
 Project: HBase
  Issue Type: Bug
  Components: test
Reporter: Lars Hofhansl
Assignee: Lars Hofhansl
 Fix For: 0.94.19

 Attachments: 10969-addendum.txt, 10969.txt


 Example:
 {code}
 Error Message
 null not an instance of org.apache.hadoop.hbase.MiniHBaseCluster
 Stacktrace
 java.lang.RuntimeException: null not an instance of 
 org.apache.hadoop.hbase.MiniHBaseCluster
   at 
 org.apache.hadoop.hbase.HBaseTestingUtility.getMiniHBaseCluster(HBaseTestingUtility.java:701)
   at 
 org.apache.hadoop.hbase.HBaseTestingUtility.getHBaseCluster(HBaseTestingUtility.java:1653)
   at 
 org.apache.hadoop.hbase.master.TestDistributedLogSplitting.after(TestDistributedLogSplitting.java:125)
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10982) TestZKProcedure.testMultiCohortWithMemberTimeoutDuringPrepare fails frequently in 0.94

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969366#comment-13969366
 ] 

Hudson commented on HBASE-10982:


FAILURE: Integrated in HBase-0.94-on-Hadoop-2 #69 (See 
[https://builds.apache.org/job/HBase-0.94-on-Hadoop-2/69/])
HBASE-10982 TestZKProcedure.testMultiCohortWithMemberTimeoutDuringPrepare fails 
frequently in 0.94. (larsh: rev 1587398)
* 
/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/procedure/TestZKProcedure.java


 TestZKProcedure.testMultiCohortWithMemberTimeoutDuringPrepare fails 
 frequently in 0.94
 --

 Key: HBASE-10982
 URL: https://issues.apache.org/jira/browse/HBASE-10982
 Project: HBase
  Issue Type: Bug
Reporter: Lars Hofhansl
Assignee: Lars Hofhansl
 Fix For: 0.94.19

 Attachments: 10982.txt


 Turns out this is fixed in trunk already.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10966) RowCounter misinterprets column names that have colons in their qualifier

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969365#comment-13969365
 ] 

Hudson commented on HBASE-10966:


FAILURE: Integrated in HBase-0.94-on-Hadoop-2 #69 (See 
[https://builds.apache.org/job/HBase-0.94-on-Hadoop-2/69/])
HBASE-10966 RowCounter misinterprets column names that have colons in their 
qualifier (stack: rev 1587445)
* 
/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/mapreduce/RowCounter.java


 RowCounter misinterprets column names that have colons in their qualifier
 -

 Key: HBASE-10966
 URL: https://issues.apache.org/jira/browse/HBASE-10966
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.99.0
Reporter: Alexandre Normand
Assignee: Alexandre Normand
Priority: Trivial
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10966v094.txt, HBASE-10966-1.patch


 RowCounter allows for column names to be specify at command line:
 {code}
 Usage: RowCounter [options] tablename [--range=[startKey],[endKey]] 
 [column1 column2...]
 For performance consider the following options:
 -Dhbase.client.scanner.caching=100
 -Dmapred.map.tasks.speculative.execution=false
 {code}
 However, the column names are parsed assuming that if there is a colon, there 
 are only two parts to the string. In other words, it assumes 
 {{family:qualifier}} where {{qualifier}} wouldn't contain a colon. 
 This came up as I was trying to do a row count on a {{kiji}} table where 
 qualifiers typically have multiple colon-delimited components (i.e. {{B:C}} 
 could be a qualifier in the {{B}} family).
 The flaw is in this code:
 {code}
String  [] fields = columnName.split(:);
 if(fields.length == 1) {
   scan.addFamily(Bytes.toBytes(fields[0]));
 } else {
   byte[] qualifier = Bytes.toBytes(fields[1]);
   qualifiers.add(qualifier);
   scan.addColumn(Bytes.toBytes(fields[0]), qualifier); 
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10966) RowCounter misinterprets column names that have colons in their qualifier

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969423#comment-13969423
 ] 

Hudson commented on HBASE-10966:


SUCCESS: Integrated in HBase-0.98-on-Hadoop-1.1 #261 (See 
[https://builds.apache.org/job/HBase-0.98-on-Hadoop-1.1/261/])
HBASE-10966 RowCounter misinterprets column names that have colons in their 
qualifier (stack: rev 1587442)
* 
/hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/RowCounter.java
* 
/hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestRowCounter.java


 RowCounter misinterprets column names that have colons in their qualifier
 -

 Key: HBASE-10966
 URL: https://issues.apache.org/jira/browse/HBASE-10966
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.99.0
Reporter: Alexandre Normand
Assignee: Alexandre Normand
Priority: Trivial
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10966v094.txt, HBASE-10966-1.patch


 RowCounter allows for column names to be specify at command line:
 {code}
 Usage: RowCounter [options] tablename [--range=[startKey],[endKey]] 
 [column1 column2...]
 For performance consider the following options:
 -Dhbase.client.scanner.caching=100
 -Dmapred.map.tasks.speculative.execution=false
 {code}
 However, the column names are parsed assuming that if there is a colon, there 
 are only two parts to the string. In other words, it assumes 
 {{family:qualifier}} where {{qualifier}} wouldn't contain a colon. 
 This came up as I was trying to do a row count on a {{kiji}} table where 
 qualifiers typically have multiple colon-delimited components (i.e. {{B:C}} 
 could be a qualifier in the {{B}} family).
 The flaw is in this code:
 {code}
String  [] fields = columnName.split(:);
 if(fields.length == 1) {
   scan.addFamily(Bytes.toBytes(fields[0]));
 } else {
   byte[] qualifier = Bytes.toBytes(fields[1]);
   qualifiers.add(qualifier);
   scan.addColumn(Bytes.toBytes(fields[0]), qualifier); 
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10972) OOBE in prefix key encoding

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969424#comment-13969424
 ] 

Hudson commented on HBASE-10972:


SUCCESS: Integrated in HBase-0.98-on-Hadoop-1.1 #261 (See 
[https://builds.apache.org/job/HBase-0.98-on-Hadoop-1.1/261/])
HBASE-10972 - OOBE in prefix key encoding (Ram) (ramkrishna: rev 1587418)
* 
/hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/io/encoding/TestDataBlockEncoders.java


 OOBE in prefix key encoding
 ---

 Key: HBASE-10972
 URL: https://issues.apache.org/jira/browse/HBASE-10972
 Project: HBase
  Issue Type: Sub-task
  Components: Scanners
Affects Versions: 0.98.1
Reporter: Andrew Purtell
Assignee: ramkrishna.s.vasudevan
 Fix For: 0.99.0, 0.98.2

 Attachments: 10936-0.98.txt, HBASE-10972.patch


 From HBASE-10936.
 {noformat}
 testZeroByte[1](org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders)  
 Time elapsed: 0.008 sec   ERROR!
 java.lang.IndexOutOfBoundsException
 at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:138)
 at java.io.DataOutputStream.write(DataOutputStream.java:107)
 at 
 org.apache.hadoop.hbase.util.ByteBufferUtils.copyBufferToStream(ByteBufferUtils.java:163)
 at 
 org.apache.hadoop.hbase.util.ByteBufferUtils.moveBufferToStream(ByteBufferUtils.java:147)
 at 
 org.apache.hadoop.hbase.io.encoding.PrefixKeyDeltaEncoder.addKV(PrefixKeyDeltaEncoder.java:70)
 at 
 org.apache.hadoop.hbase.io.encoding.PrefixKeyDeltaEncoder.internalEncodeKeyValues(PrefixKeyDeltaEncoder.java:87)
 at 
 org.apache.hadoop.hbase.io.encoding.BufferedDataBlockEncoder.encodeKeyValues(BufferedDataBlockEncoder.java:591)
 at 
 org.apache.hadoop.hbase.io.encoding.PrefixKeyDeltaEncoder.encodeKeyValues(PrefixKeyDeltaEncoder.java:44)
 at 
 org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders.encodeBytes(TestDataBlockEncoders.java:100)
 at 
 org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders.testAlgorithm(TestDataBlockEncoders.java:112)
 at 
 org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders.testEncodersOnDataset(TestDataBlockEncoders.java:423)
 at 
 org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders.testZeroByte(TestDataBlockEncoders.java:208)
 {noformat}
 See attached test case.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-2166) Inconsistent/wrong treatment of timestamp parameters in the old Thrift API

2014-04-15 Thread A B (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-2166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969430#comment-13969430
 ] 

A B commented on HBASE-2166:


getRowTs ('tab', 'key', '1234567890' ...) with string as timestampt treats 
timestamp as not set and works as getRow(..)

 Inconsistent/wrong treatment of timestamp parameters in the old Thrift API
 --

 Key: HBASE-2166
 URL: https://issues.apache.org/jira/browse/HBASE-2166
 Project: HBase
  Issue Type: Bug
  Components: Thrift
Affects Versions: 0.20.2
Reporter: Lars Francke

 The old Thrift API treats timestamps wrong/inconsistent.
 getRowTs should return a specific version or null if that doesn't exist. 
 Currently it does seem to treat the timestamp as exclusive so the row is not 
 found. Same goes for getVerTs but there it might only be a documentation 
 problem.
 I'll go through the old API and will try to find any such problems and 
 correct them in a way that is consistent with the Java API where possible.
 Peter Falk reported this on the mailing list. Thanks!



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10969) TestDistributedLogSplitting fails frequently in 0.94.

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969437#comment-13969437
 ] 

Hudson commented on HBASE-10969:


SUCCESS: Integrated in HBase-0.94-security #464 (See 
[https://builds.apache.org/job/HBase-0.94-security/464/])
HBASE-10969 Addendum - avoid races in dfs/zk cluster start/stop (larsh: rev 
1587458)
* 
/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/master/TestDistributedLogSplitting.java


 TestDistributedLogSplitting fails frequently in 0.94.
 -

 Key: HBASE-10969
 URL: https://issues.apache.org/jira/browse/HBASE-10969
 Project: HBase
  Issue Type: Bug
  Components: test
Reporter: Lars Hofhansl
Assignee: Lars Hofhansl
 Fix For: 0.94.19

 Attachments: 10969-addendum.txt, 10969.txt


 Example:
 {code}
 Error Message
 null not an instance of org.apache.hadoop.hbase.MiniHBaseCluster
 Stacktrace
 java.lang.RuntimeException: null not an instance of 
 org.apache.hadoop.hbase.MiniHBaseCluster
   at 
 org.apache.hadoop.hbase.HBaseTestingUtility.getMiniHBaseCluster(HBaseTestingUtility.java:701)
   at 
 org.apache.hadoop.hbase.HBaseTestingUtility.getHBaseCluster(HBaseTestingUtility.java:1653)
   at 
 org.apache.hadoop.hbase.master.TestDistributedLogSplitting.after(TestDistributedLogSplitting.java:125)
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10966) RowCounter misinterprets column names that have colons in their qualifier

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969436#comment-13969436
 ] 

Hudson commented on HBASE-10966:


SUCCESS: Integrated in HBase-0.94-security #464 (See 
[https://builds.apache.org/job/HBase-0.94-security/464/])
HBASE-10966 RowCounter misinterprets column names that have colons in their 
qualifier (stack: rev 1587445)
* 
/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/mapreduce/RowCounter.java


 RowCounter misinterprets column names that have colons in their qualifier
 -

 Key: HBASE-10966
 URL: https://issues.apache.org/jira/browse/HBASE-10966
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.99.0
Reporter: Alexandre Normand
Assignee: Alexandre Normand
Priority: Trivial
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10966v094.txt, HBASE-10966-1.patch


 RowCounter allows for column names to be specify at command line:
 {code}
 Usage: RowCounter [options] tablename [--range=[startKey],[endKey]] 
 [column1 column2...]
 For performance consider the following options:
 -Dhbase.client.scanner.caching=100
 -Dmapred.map.tasks.speculative.execution=false
 {code}
 However, the column names are parsed assuming that if there is a colon, there 
 are only two parts to the string. In other words, it assumes 
 {{family:qualifier}} where {{qualifier}} wouldn't contain a colon. 
 This came up as I was trying to do a row count on a {{kiji}} table where 
 qualifiers typically have multiple colon-delimited components (i.e. {{B:C}} 
 could be a qualifier in the {{B}} family).
 The flaw is in this code:
 {code}
String  [] fields = columnName.split(:);
 if(fields.length == 1) {
   scan.addFamily(Bytes.toBytes(fields[0]));
 } else {
   byte[] qualifier = Bytes.toBytes(fields[1]);
   qualifiers.add(qualifier);
   scan.addColumn(Bytes.toBytes(fields[0]), qualifier); 
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10845) Memstore snapshot size isn't updated in DefaultMemStore#rollback()

2014-04-15 Thread ramkrishna.s.vasudevan (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969456#comment-13969456
 ] 

ramkrishna.s.vasudevan commented on HBASE-10845:


Patch looks good.  The test is also looking great.
+1.

 Memstore snapshot size isn't updated in DefaultMemStore#rollback()
 --

 Key: HBASE-10845
 URL: https://issues.apache.org/jira/browse/HBASE-10845
 Project: HBase
  Issue Type: Bug
Reporter: Ted Yu
Assignee: Ted Yu
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10845-0.98.txt, 10845-v1.txt, 10845-v2.txt, 
 10845-v3.txt, 10845-v4.txt


 In DefaultMemStore#rollback() :
 {code}
  if (found != null  found.getMvccVersion() == kv.getMvccVersion()) {
this.snapshot.remove(kv);
  }
 {code}
 this.snapshotSize should be updated in case of rollback.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10965) Automate detection of presence of Filter#filterRow()

2014-04-15 Thread ramkrishna.s.vasudevan (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969457#comment-13969457
 ] 

ramkrishna.s.vasudevan commented on HBASE-10965:


bq.This will be problematic When a FL contains another FL, the inner one will 
always say hasFilterRow as true.
Good catch.
We could deprecate hasFilterRow() if there is a consensus in removing it.  
Later can remove it.
You mean to use the hasFilterrow() only in openScanner and not use in every 
next() calls? Ideally if the 
{code}
if ((isEmptyRow || ret == FilterWrapper.FilterRowRetCode.EXCLUDE) || 
filterRow()) {
{code}
filterRow() is getting removed here then hasfilterRow() is called to check the 
stopRow alone.  In that case moving it to the openScanner makes sense instead 
of doing the reflection way of using it.


 Automate detection of presence of Filter#filterRow()
 

 Key: HBASE-10965
 URL: https://issues.apache.org/jira/browse/HBASE-10965
 Project: HBase
  Issue Type: Task
Reporter: Ted Yu
Assignee: Ted Yu
 Attachments: 10965-v1.txt, 10965-v2.txt, 10965-v3.txt, 10965-v4.txt


 There is potential inconsistency between the return value of 
 Filter#hasFilterRow() and presence of Filter#filterRow().
 Filters may override Filter#filterRow() while leaving return value of 
 Filter#hasFilterRow() being false (inherited from FilterBase).
 This JIRA aims to remove the inconsistency by automatically detecting the 
 presence of overridden Filter#filterRow(). If filterRow() is implemented and 
 not inherited from FilterBase, it is equivalent to having hasFilterRow() 
 return true.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10969) TestDistributedLogSplitting fails frequently in 0.94.

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969460#comment-13969460
 ] 

Hudson commented on HBASE-10969:


FAILURE: Integrated in HBase-0.94 #1345 (See 
[https://builds.apache.org/job/HBase-0.94/1345/])
HBASE-10969 Addendum - avoid races in dfs/zk cluster start/stop (larsh: rev 
1587458)
* 
/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/master/TestDistributedLogSplitting.java


 TestDistributedLogSplitting fails frequently in 0.94.
 -

 Key: HBASE-10969
 URL: https://issues.apache.org/jira/browse/HBASE-10969
 Project: HBase
  Issue Type: Bug
  Components: test
Reporter: Lars Hofhansl
Assignee: Lars Hofhansl
 Fix For: 0.94.19

 Attachments: 10969-addendum.txt, 10969.txt


 Example:
 {code}
 Error Message
 null not an instance of org.apache.hadoop.hbase.MiniHBaseCluster
 Stacktrace
 java.lang.RuntimeException: null not an instance of 
 org.apache.hadoop.hbase.MiniHBaseCluster
   at 
 org.apache.hadoop.hbase.HBaseTestingUtility.getMiniHBaseCluster(HBaseTestingUtility.java:701)
   at 
 org.apache.hadoop.hbase.HBaseTestingUtility.getHBaseCluster(HBaseTestingUtility.java:1653)
   at 
 org.apache.hadoop.hbase.master.TestDistributedLogSplitting.after(TestDistributedLogSplitting.java:125)
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10966) RowCounter misinterprets column names that have colons in their qualifier

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969459#comment-13969459
 ] 

Hudson commented on HBASE-10966:


FAILURE: Integrated in HBase-0.94 #1345 (See 
[https://builds.apache.org/job/HBase-0.94/1345/])
HBASE-10966 RowCounter misinterprets column names that have colons in their 
qualifier (stack: rev 1587445)
* 
/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/mapreduce/RowCounter.java


 RowCounter misinterprets column names that have colons in their qualifier
 -

 Key: HBASE-10966
 URL: https://issues.apache.org/jira/browse/HBASE-10966
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.99.0
Reporter: Alexandre Normand
Assignee: Alexandre Normand
Priority: Trivial
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10966v094.txt, HBASE-10966-1.patch


 RowCounter allows for column names to be specify at command line:
 {code}
 Usage: RowCounter [options] tablename [--range=[startKey],[endKey]] 
 [column1 column2...]
 For performance consider the following options:
 -Dhbase.client.scanner.caching=100
 -Dmapred.map.tasks.speculative.execution=false
 {code}
 However, the column names are parsed assuming that if there is a colon, there 
 are only two parts to the string. In other words, it assumes 
 {{family:qualifier}} where {{qualifier}} wouldn't contain a colon. 
 This came up as I was trying to do a row count on a {{kiji}} table where 
 qualifiers typically have multiple colon-delimited components (i.e. {{B:C}} 
 could be a qualifier in the {{B}} family).
 The flaw is in this code:
 {code}
String  [] fields = columnName.split(:);
 if(fields.length == 1) {
   scan.addFamily(Bytes.toBytes(fields[0]));
 } else {
   byte[] qualifier = Bytes.toBytes(fields[1]);
   qualifiers.add(qualifier);
   scan.addColumn(Bytes.toBytes(fields[0]), qualifier); 
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10966) RowCounter misinterprets column names that have colons in their qualifier

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969461#comment-13969461
 ] 

Hudson commented on HBASE-10966:


SUCCESS: Integrated in HBase-TRUNK #5085 (See 
[https://builds.apache.org/job/HBase-TRUNK/5085/])
HBASE-10966 RowCounter misinterprets column names that have colons in their 
qualifier (stack: rev 1587443)
* 
/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/RowCounter.java
* 
/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestRowCounter.java


 RowCounter misinterprets column names that have colons in their qualifier
 -

 Key: HBASE-10966
 URL: https://issues.apache.org/jira/browse/HBASE-10966
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.99.0
Reporter: Alexandre Normand
Assignee: Alexandre Normand
Priority: Trivial
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10966v094.txt, HBASE-10966-1.patch


 RowCounter allows for column names to be specify at command line:
 {code}
 Usage: RowCounter [options] tablename [--range=[startKey],[endKey]] 
 [column1 column2...]
 For performance consider the following options:
 -Dhbase.client.scanner.caching=100
 -Dmapred.map.tasks.speculative.execution=false
 {code}
 However, the column names are parsed assuming that if there is a colon, there 
 are only two parts to the string. In other words, it assumes 
 {{family:qualifier}} where {{qualifier}} wouldn't contain a colon. 
 This came up as I was trying to do a row count on a {{kiji}} table where 
 qualifiers typically have multiple colon-delimited components (i.e. {{B:C}} 
 could be a qualifier in the {{B}} family).
 The flaw is in this code:
 {code}
String  [] fields = columnName.split(:);
 if(fields.length == 1) {
   scan.addFamily(Bytes.toBytes(fields[0]));
 } else {
   byte[] qualifier = Bytes.toBytes(fields[1]);
   qualifiers.add(qualifier);
   scan.addColumn(Bytes.toBytes(fields[0]), qualifier); 
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10972) OOBE in prefix key encoding

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969462#comment-13969462
 ] 

Hudson commented on HBASE-10972:


SUCCESS: Integrated in HBase-TRUNK #5085 (See 
[https://builds.apache.org/job/HBase-TRUNK/5085/])
HBASE-10972 - OOBE in prefix key encoding (Ram) (ramkrishna: rev 1587417)
* 
/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/io/encoding/TestDataBlockEncoders.java


 OOBE in prefix key encoding
 ---

 Key: HBASE-10972
 URL: https://issues.apache.org/jira/browse/HBASE-10972
 Project: HBase
  Issue Type: Sub-task
  Components: Scanners
Affects Versions: 0.98.1
Reporter: Andrew Purtell
Assignee: ramkrishna.s.vasudevan
 Fix For: 0.99.0, 0.98.2

 Attachments: 10936-0.98.txt, HBASE-10972.patch


 From HBASE-10936.
 {noformat}
 testZeroByte[1](org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders)  
 Time elapsed: 0.008 sec   ERROR!
 java.lang.IndexOutOfBoundsException
 at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:138)
 at java.io.DataOutputStream.write(DataOutputStream.java:107)
 at 
 org.apache.hadoop.hbase.util.ByteBufferUtils.copyBufferToStream(ByteBufferUtils.java:163)
 at 
 org.apache.hadoop.hbase.util.ByteBufferUtils.moveBufferToStream(ByteBufferUtils.java:147)
 at 
 org.apache.hadoop.hbase.io.encoding.PrefixKeyDeltaEncoder.addKV(PrefixKeyDeltaEncoder.java:70)
 at 
 org.apache.hadoop.hbase.io.encoding.PrefixKeyDeltaEncoder.internalEncodeKeyValues(PrefixKeyDeltaEncoder.java:87)
 at 
 org.apache.hadoop.hbase.io.encoding.BufferedDataBlockEncoder.encodeKeyValues(BufferedDataBlockEncoder.java:591)
 at 
 org.apache.hadoop.hbase.io.encoding.PrefixKeyDeltaEncoder.encodeKeyValues(PrefixKeyDeltaEncoder.java:44)
 at 
 org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders.encodeBytes(TestDataBlockEncoders.java:100)
 at 
 org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders.testAlgorithm(TestDataBlockEncoders.java:112)
 at 
 org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders.testEncodersOnDataset(TestDataBlockEncoders.java:423)
 at 
 org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders.testZeroByte(TestDataBlockEncoders.java:208)
 {noformat}
 See attached test case.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10972) OOBE in prefix key encoding

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969467#comment-13969467
 ] 

Hudson commented on HBASE-10972:


SUCCESS: Integrated in HBase-0.98 #277 (See 
[https://builds.apache.org/job/HBase-0.98/277/])
HBASE-10972 - OOBE in prefix key encoding (Ram) (ramkrishna: rev 1587418)
* 
/hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/io/encoding/TestDataBlockEncoders.java


 OOBE in prefix key encoding
 ---

 Key: HBASE-10972
 URL: https://issues.apache.org/jira/browse/HBASE-10972
 Project: HBase
  Issue Type: Sub-task
  Components: Scanners
Affects Versions: 0.98.1
Reporter: Andrew Purtell
Assignee: ramkrishna.s.vasudevan
 Fix For: 0.99.0, 0.98.2

 Attachments: 10936-0.98.txt, HBASE-10972.patch


 From HBASE-10936.
 {noformat}
 testZeroByte[1](org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders)  
 Time elapsed: 0.008 sec   ERROR!
 java.lang.IndexOutOfBoundsException
 at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:138)
 at java.io.DataOutputStream.write(DataOutputStream.java:107)
 at 
 org.apache.hadoop.hbase.util.ByteBufferUtils.copyBufferToStream(ByteBufferUtils.java:163)
 at 
 org.apache.hadoop.hbase.util.ByteBufferUtils.moveBufferToStream(ByteBufferUtils.java:147)
 at 
 org.apache.hadoop.hbase.io.encoding.PrefixKeyDeltaEncoder.addKV(PrefixKeyDeltaEncoder.java:70)
 at 
 org.apache.hadoop.hbase.io.encoding.PrefixKeyDeltaEncoder.internalEncodeKeyValues(PrefixKeyDeltaEncoder.java:87)
 at 
 org.apache.hadoop.hbase.io.encoding.BufferedDataBlockEncoder.encodeKeyValues(BufferedDataBlockEncoder.java:591)
 at 
 org.apache.hadoop.hbase.io.encoding.PrefixKeyDeltaEncoder.encodeKeyValues(PrefixKeyDeltaEncoder.java:44)
 at 
 org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders.encodeBytes(TestDataBlockEncoders.java:100)
 at 
 org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders.testAlgorithm(TestDataBlockEncoders.java:112)
 at 
 org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders.testEncodersOnDataset(TestDataBlockEncoders.java:423)
 at 
 org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders.testZeroByte(TestDataBlockEncoders.java:208)
 {noformat}
 See attached test case.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10966) RowCounter misinterprets column names that have colons in their qualifier

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969466#comment-13969466
 ] 

Hudson commented on HBASE-10966:


SUCCESS: Integrated in HBase-0.98 #277 (See 
[https://builds.apache.org/job/HBase-0.98/277/])
HBASE-10966 RowCounter misinterprets column names that have colons in their 
qualifier (stack: rev 1587442)
* 
/hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/RowCounter.java
* 
/hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestRowCounter.java


 RowCounter misinterprets column names that have colons in their qualifier
 -

 Key: HBASE-10966
 URL: https://issues.apache.org/jira/browse/HBASE-10966
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.99.0
Reporter: Alexandre Normand
Assignee: Alexandre Normand
Priority: Trivial
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10966v094.txt, HBASE-10966-1.patch


 RowCounter allows for column names to be specify at command line:
 {code}
 Usage: RowCounter [options] tablename [--range=[startKey],[endKey]] 
 [column1 column2...]
 For performance consider the following options:
 -Dhbase.client.scanner.caching=100
 -Dmapred.map.tasks.speculative.execution=false
 {code}
 However, the column names are parsed assuming that if there is a colon, there 
 are only two parts to the string. In other words, it assumes 
 {{family:qualifier}} where {{qualifier}} wouldn't contain a colon. 
 This came up as I was trying to do a row count on a {{kiji}} table where 
 qualifiers typically have multiple colon-delimited components (i.e. {{B:C}} 
 could be a qualifier in the {{B}} family).
 The flaw is in this code:
 {code}
String  [] fields = columnName.split(:);
 if(fields.length == 1) {
   scan.addFamily(Bytes.toBytes(fields[0]));
 } else {
   byte[] qualifier = Bytes.toBytes(fields[1]);
   qualifiers.add(qualifier);
   scan.addColumn(Bytes.toBytes(fields[0]), qualifier); 
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10969) TestDistributedLogSplitting fails frequently in 0.94.

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969474#comment-13969474
 ] 

Hudson commented on HBASE-10969:


FAILURE: Integrated in HBase-0.94-JDK7 #111 (See 
[https://builds.apache.org/job/HBase-0.94-JDK7/111/])
HBASE-10969 Addendum - avoid races in dfs/zk cluster start/stop (larsh: rev 
1587458)
* 
/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/master/TestDistributedLogSplitting.java


 TestDistributedLogSplitting fails frequently in 0.94.
 -

 Key: HBASE-10969
 URL: https://issues.apache.org/jira/browse/HBASE-10969
 Project: HBase
  Issue Type: Bug
  Components: test
Reporter: Lars Hofhansl
Assignee: Lars Hofhansl
 Fix For: 0.94.19

 Attachments: 10969-addendum.txt, 10969.txt


 Example:
 {code}
 Error Message
 null not an instance of org.apache.hadoop.hbase.MiniHBaseCluster
 Stacktrace
 java.lang.RuntimeException: null not an instance of 
 org.apache.hadoop.hbase.MiniHBaseCluster
   at 
 org.apache.hadoop.hbase.HBaseTestingUtility.getMiniHBaseCluster(HBaseTestingUtility.java:701)
   at 
 org.apache.hadoop.hbase.HBaseTestingUtility.getHBaseCluster(HBaseTestingUtility.java:1653)
   at 
 org.apache.hadoop.hbase.master.TestDistributedLogSplitting.after(TestDistributedLogSplitting.java:125)
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10966) RowCounter misinterprets column names that have colons in their qualifier

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969473#comment-13969473
 ] 

Hudson commented on HBASE-10966:


FAILURE: Integrated in HBase-0.94-JDK7 #111 (See 
[https://builds.apache.org/job/HBase-0.94-JDK7/111/])
HBASE-10966 RowCounter misinterprets column names that have colons in their 
qualifier (stack: rev 1587445)
* 
/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/mapreduce/RowCounter.java


 RowCounter misinterprets column names that have colons in their qualifier
 -

 Key: HBASE-10966
 URL: https://issues.apache.org/jira/browse/HBASE-10966
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.99.0
Reporter: Alexandre Normand
Assignee: Alexandre Normand
Priority: Trivial
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10966v094.txt, HBASE-10966-1.patch


 RowCounter allows for column names to be specify at command line:
 {code}
 Usage: RowCounter [options] tablename [--range=[startKey],[endKey]] 
 [column1 column2...]
 For performance consider the following options:
 -Dhbase.client.scanner.caching=100
 -Dmapred.map.tasks.speculative.execution=false
 {code}
 However, the column names are parsed assuming that if there is a colon, there 
 are only two parts to the string. In other words, it assumes 
 {{family:qualifier}} where {{qualifier}} wouldn't contain a colon. 
 This came up as I was trying to do a row count on a {{kiji}} table where 
 qualifiers typically have multiple colon-delimited components (i.e. {{B:C}} 
 could be a qualifier in the {{B}} family).
 The flaw is in this code:
 {code}
String  [] fields = columnName.split(:);
 if(fields.length == 1) {
   scan.addFamily(Bytes.toBytes(fields[0]));
 } else {
   byte[] qualifier = Bytes.toBytes(fields[1]);
   qualifiers.add(qualifier);
   scan.addColumn(Bytes.toBytes(fields[0]), qualifier); 
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10966) RowCounter misinterprets column names that have colons in their qualifier

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969503#comment-13969503
 ] 

Hudson commented on HBASE-10966:


SUCCESS: Integrated in hbase-0.96 #383 (See 
[https://builds.apache.org/job/hbase-0.96/383/])
HBASE-10966 RowCounter misinterprets column names that have colons in their 
qualifier (stack: rev 1587441)
* 
/hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/RowCounter.java
* 
/hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestRowCounter.java


 RowCounter misinterprets column names that have colons in their qualifier
 -

 Key: HBASE-10966
 URL: https://issues.apache.org/jira/browse/HBASE-10966
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.99.0
Reporter: Alexandre Normand
Assignee: Alexandre Normand
Priority: Trivial
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10966v094.txt, HBASE-10966-1.patch


 RowCounter allows for column names to be specify at command line:
 {code}
 Usage: RowCounter [options] tablename [--range=[startKey],[endKey]] 
 [column1 column2...]
 For performance consider the following options:
 -Dhbase.client.scanner.caching=100
 -Dmapred.map.tasks.speculative.execution=false
 {code}
 However, the column names are parsed assuming that if there is a colon, there 
 are only two parts to the string. In other words, it assumes 
 {{family:qualifier}} where {{qualifier}} wouldn't contain a colon. 
 This came up as I was trying to do a row count on a {{kiji}} table where 
 qualifiers typically have multiple colon-delimited components (i.e. {{B:C}} 
 could be a qualifier in the {{B}} family).
 The flaw is in this code:
 {code}
String  [] fields = columnName.split(:);
 if(fields.length == 1) {
   scan.addFamily(Bytes.toBytes(fields[0]));
 } else {
   byte[] qualifier = Bytes.toBytes(fields[1]);
   qualifiers.add(qualifier);
   scan.addColumn(Bytes.toBytes(fields[0]), qualifier); 
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (HBASE-10983) Enhance LoadIncrementalHFile with option to do splitting in a distributed fashon

2014-04-15 Thread Ted Malaska (JIRA)
Ted Malaska created HBASE-10983:
---

 Summary: Enhance LoadIncrementalHFile with option to do splitting 
in a distributed fashon
 Key: HBASE-10983
 URL: https://issues.apache.org/jira/browse/HBASE-10983
 Project: HBase
  Issue Type: Improvement
Reporter: Ted Malaska
Priority: Minor


Currently LoadIncrementalHFile supports splitting HFiles if they don't match up 
with the current regions of the table being imported too.  

However this functionality of reading and rewriting the HFile is done through a 
single JVM, which limits the overall speed of the splitting process.

This jira will allow the user to set a flag or a threshold (on the total size 
of the HFiles to be split) that may trigger the splitting logic to be executed 
through a Map Only job as opposed to the existing thread pool in a single JVM. 

I will have the following goals when writing this patch:
1. Extend LoadIncrementalHFile
2. Reuse as much code from LoadIncrementalHFile as possible



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10835) DBE encode path improvements

2014-04-15 Thread Anoop Sam John (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anoop Sam John updated HBASE-10835:
---

Attachment: HBASE-10835_V2.patch

 DBE encode path improvements
 

 Key: HBASE-10835
 URL: https://issues.apache.org/jira/browse/HBASE-10835
 Project: HBase
  Issue Type: Improvement
Reporter: Anoop Sam John
Assignee: Anoop Sam John
 Fix For: 0.99.0

 Attachments: HBASE-10835.patch, HBASE-10835_V2.patch


 Here 1st we write KVs (Cells) into a buffer and then passed to DBE encoder. 
 Encoder again reads kvs one by one from the buffer and encodes and creates a 
 new buffer.
 There is no need to have this model now. Previously we had option of no 
 encode in disk and encode only in cache. At that time the read buffer from a 
 HFile block was passed to this and encodes.
 So encode cell by cell can be done now. Making this change will need us to 
 have a NoOp DBE impl which just do the write of a cell as it is with out any 
 encoding.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10966) RowCounter misinterprets column names that have colons in their qualifier

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969579#comment-13969579
 ] 

Hudson commented on HBASE-10966:


FAILURE: Integrated in hbase-0.96-hadoop2 #264 (See 
[https://builds.apache.org/job/hbase-0.96-hadoop2/264/])
HBASE-10966 RowCounter misinterprets column names that have colons in their 
qualifier (stack: rev 1587441)
* 
/hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/RowCounter.java
* 
/hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestRowCounter.java


 RowCounter misinterprets column names that have colons in their qualifier
 -

 Key: HBASE-10966
 URL: https://issues.apache.org/jira/browse/HBASE-10966
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.99.0
Reporter: Alexandre Normand
Assignee: Alexandre Normand
Priority: Trivial
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10966v094.txt, HBASE-10966-1.patch


 RowCounter allows for column names to be specify at command line:
 {code}
 Usage: RowCounter [options] tablename [--range=[startKey],[endKey]] 
 [column1 column2...]
 For performance consider the following options:
 -Dhbase.client.scanner.caching=100
 -Dmapred.map.tasks.speculative.execution=false
 {code}
 However, the column names are parsed assuming that if there is a colon, there 
 are only two parts to the string. In other words, it assumes 
 {{family:qualifier}} where {{qualifier}} wouldn't contain a colon. 
 This came up as I was trying to do a row count on a {{kiji}} table where 
 qualifiers typically have multiple colon-delimited components (i.e. {{B:C}} 
 could be a qualifier in the {{B}} family).
 The flaw is in this code:
 {code}
String  [] fields = columnName.split(:);
 if(fields.length == 1) {
   scan.addFamily(Bytes.toBytes(fields[0]));
 } else {
   byte[] qualifier = Bytes.toBytes(fields[1]);
   qualifiers.add(qualifier);
   scan.addColumn(Bytes.toBytes(fields[0]), qualifier); 
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (HBASE-10984) Add description about setting up htrace-zipkin to documentation

2014-04-15 Thread Masatake Iwasaki (JIRA)
Masatake Iwasaki created HBASE-10984:


 Summary: Add description about setting up htrace-zipkin to 
documentation
 Key: HBASE-10984
 URL: https://issues.apache.org/jira/browse/HBASE-10984
 Project: HBase
  Issue Type: Improvement
  Components: documentation
Reporter: Masatake Iwasaki
Assignee: Masatake Iwasaki
Priority: Trivial


adding manual setup procedure of htrace-zipkin for tracing.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10984) Add description about setting up htrace-zipkin to documentation

2014-04-15 Thread Masatake Iwasaki (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Masatake Iwasaki updated HBASE-10984:
-

Attachment: HBASE-10984-0.patch

 Add description about setting up htrace-zipkin to documentation
 ---

 Key: HBASE-10984
 URL: https://issues.apache.org/jira/browse/HBASE-10984
 Project: HBase
  Issue Type: Improvement
  Components: documentation
Reporter: Masatake Iwasaki
Assignee: Masatake Iwasaki
Priority: Trivial
 Attachments: HBASE-10984-0.patch


 adding manual setup procedure of htrace-zipkin for tracing.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10984) Add description about setting up htrace-zipkin to documentation

2014-04-15 Thread Masatake Iwasaki (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Masatake Iwasaki updated HBASE-10984:
-

Status: Patch Available  (was: Open)

 Add description about setting up htrace-zipkin to documentation
 ---

 Key: HBASE-10984
 URL: https://issues.apache.org/jira/browse/HBASE-10984
 Project: HBase
  Issue Type: Improvement
  Components: documentation
Reporter: Masatake Iwasaki
Assignee: Masatake Iwasaki
Priority: Trivial
 Attachments: HBASE-10984-0.patch


 adding manual setup procedure of htrace-zipkin for tracing.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10845) Memstore snapshot size isn't updated in DefaultMemStore#rollback()

2014-04-15 Thread Ted Yu (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Yu updated HBASE-10845:
---

Status: Open  (was: Patch Available)

 Memstore snapshot size isn't updated in DefaultMemStore#rollback()
 --

 Key: HBASE-10845
 URL: https://issues.apache.org/jira/browse/HBASE-10845
 Project: HBase
  Issue Type: Bug
Reporter: Ted Yu
Assignee: Ted Yu
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10845-0.98.txt, 10845-v1.txt, 10845-v2.txt, 
 10845-v3.txt, 10845-v4.txt


 In DefaultMemStore#rollback() :
 {code}
  if (found != null  found.getMvccVersion() == kv.getMvccVersion()) {
this.snapshot.remove(kv);
  }
 {code}
 this.snapshotSize should be updated in case of rollback.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10886) add htrace-zipkin to the runtime dependencies again

2014-04-15 Thread Masatake Iwasaki (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969642#comment-13969642
 ] 

Masatake Iwasaki commented on HBASE-10886:
--

I sent a pull request and filed HBASE-10984.

 add htrace-zipkin to the runtime dependencies again
 ---

 Key: HBASE-10886
 URL: https://issues.apache.org/jira/browse/HBASE-10886
 Project: HBase
  Issue Type: Improvement
  Components: build, documentation
Reporter: Masatake Iwasaki
Assignee: Masatake Iwasaki
Priority: Minor
 Fix For: 0.99.0

 Attachments: HBASE-10886-0.patch, HBASE-10886-1.patch


 Once htrace-zipkin was removed from depencencies in HBASE-9700. Because all 
 of the depencencies of htrace-zipkin is bundled with HBase now, it is good to 
 add it for the ease of use.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10845) Memstore snapshot size isn't updated in DefaultMemStore#rollback()

2014-04-15 Thread Ted Yu (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Yu updated HBASE-10845:
---

Hadoop Flags: Reviewed

Integrated to all branches.

Thanks for the reviews.

 Memstore snapshot size isn't updated in DefaultMemStore#rollback()
 --

 Key: HBASE-10845
 URL: https://issues.apache.org/jira/browse/HBASE-10845
 Project: HBase
  Issue Type: Bug
Reporter: Ted Yu
Assignee: Ted Yu
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10845-0.94.txt, 10845-0.98.txt, 10845-v1.txt, 
 10845-v2.txt, 10845-v3.txt, 10845-v4.txt


 In DefaultMemStore#rollback() :
 {code}
  if (found != null  found.getMvccVersion() == kv.getMvccVersion()) {
this.snapshot.remove(kv);
  }
 {code}
 this.snapshotSize should be updated in case of rollback.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10845) Memstore snapshot size isn't updated in DefaultMemStore#rollback()

2014-04-15 Thread Ted Yu (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Yu updated HBASE-10845:
---

Attachment: 10845-0.94.txt

Patch for 0.94

Porting the test is not trivial - none of the existing tests in TestHRegion 
uses StoreFlushContext

 Memstore snapshot size isn't updated in DefaultMemStore#rollback()
 --

 Key: HBASE-10845
 URL: https://issues.apache.org/jira/browse/HBASE-10845
 Project: HBase
  Issue Type: Bug
Reporter: Ted Yu
Assignee: Ted Yu
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10845-0.94.txt, 10845-0.98.txt, 10845-v1.txt, 
 10845-v2.txt, 10845-v3.txt, 10845-v4.txt


 In DefaultMemStore#rollback() :
 {code}
  if (found != null  found.getMvccVersion() == kv.getMvccVersion()) {
this.snapshot.remove(kv);
  }
 {code}
 this.snapshotSize should be updated in case of rollback.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10845) Memstore snapshot size isn't updated in DefaultMemStore#rollback()

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969653#comment-13969653
 ] 

Hudson commented on HBASE-10845:


FAILURE: Integrated in hbase-0.96 #384 (See 
[https://builds.apache.org/job/hbase-0.96/384/])
HBASE-10845 Memstore snapshot size isn't updated in DefaultMemStore#rollback() 
(tedyu: rev 1587610)
* 
/hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStore.java
* 
/hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java
* 
/hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/FaultyHLog.java


 Memstore snapshot size isn't updated in DefaultMemStore#rollback()
 --

 Key: HBASE-10845
 URL: https://issues.apache.org/jira/browse/HBASE-10845
 Project: HBase
  Issue Type: Bug
Reporter: Ted Yu
Assignee: Ted Yu
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10845-0.94.txt, 10845-0.98.txt, 10845-v1.txt, 
 10845-v2.txt, 10845-v3.txt, 10845-v4.txt


 In DefaultMemStore#rollback() :
 {code}
  if (found != null  found.getMvccVersion() == kv.getMvccVersion()) {
this.snapshot.remove(kv);
  }
 {code}
 this.snapshotSize should be updated in case of rollback.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10970) [AccessController] delete latest version should check covering permission for the latest version only

2014-04-15 Thread Andrew Purtell (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969662#comment-13969662
 ] 

Andrew Purtell commented on HBASE-10970:


Why not one fix to take care of the remaining corner cases instead of one fix 
for one corner case?

 [AccessController] delete latest version should check covering permission for 
 the latest  version only
 --

 Key: HBASE-10970
 URL: https://issues.apache.org/jira/browse/HBASE-10970
 Project: HBase
  Issue Type: Bug
Reporter: ramkrishna.s.vasudevan
Assignee: ramkrishna.s.vasudevan
 Fix For: 0.99.0, 0.98.2


 Refer to discussion in HBASE-10823.
 bq.The exact version deletion also check for the preceeding version though 
 the latest version allows the permission



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10835) DBE encode path improvements

2014-04-15 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969670#comment-13969670
 ] 

Hadoop QA commented on HBASE-10835:
---

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  http://issues.apache.org/jira/secure/attachment/12640277/HBASE-10835_V2.patch
  against trunk revision .
  ATTACHMENT ID: 12640277

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:green}+1 tests included{color}.  The patch appears to include 18 new 
or modified tests.

{color:green}+1 javadoc{color}.  The javadoc tool did not generate any 
warning messages.

{color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

{color:green}+1 findbugs{color}.  The patch does not introduce any new 
Findbugs (version 1.3.9) warnings.

{color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

{color:green}+1 lineLengths{color}.  The patch does not introduce lines 
longer than 100

  {color:green}+1 site{color}.  The mvn site goal succeeds with this patch.

 {color:red}-1 core tests{color}.  The patch failed these unit tests:
 

 {color:red}-1 core zombie tests{color}.  There are 2 zombie test(s):   
at 
org.apache.hadoop.hbase.mapreduce.TestImportExport.testImport94Table(TestImportExport.java:230)

Test results: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9289//testReport/
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9289//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop2-compat.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9289//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-prefix-tree.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9289//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-client.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9289//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9289//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-protocol.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9289//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9289//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-examples.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9289//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-thrift.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9289//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop-compat.html
Console output: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9289//console

This message is automatically generated.

 DBE encode path improvements
 

 Key: HBASE-10835
 URL: https://issues.apache.org/jira/browse/HBASE-10835
 Project: HBase
  Issue Type: Improvement
Reporter: Anoop Sam John
Assignee: Anoop Sam John
 Fix For: 0.99.0

 Attachments: HBASE-10835.patch, HBASE-10835_V2.patch


 Here 1st we write KVs (Cells) into a buffer and then passed to DBE encoder. 
 Encoder again reads kvs one by one from the buffer and encodes and creates a 
 new buffer.
 There is no need to have this model now. Previously we had option of no 
 encode in disk and encode only in cache. At that time the read buffer from a 
 HFile block was passed to this and encodes.
 So encode cell by cell can be done now. Making this change will need us to 
 have a NoOp DBE impl which just do the write of a cell as it is with out any 
 encoding.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10845) Memstore snapshot size isn't updated in DefaultMemStore#rollback()

2014-04-15 Thread Ted Yu (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Yu updated HBASE-10845:
---

Attachment: 10845-0.96.addendum

 Memstore snapshot size isn't updated in DefaultMemStore#rollback()
 --

 Key: HBASE-10845
 URL: https://issues.apache.org/jira/browse/HBASE-10845
 Project: HBase
  Issue Type: Bug
Reporter: Ted Yu
Assignee: Ted Yu
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10845-0.94.txt, 10845-0.96.addendum, 10845-0.98.txt, 
 10845-v1.txt, 10845-v2.txt, 10845-v3.txt, 10845-v4.txt


 In DefaultMemStore#rollback() :
 {code}
  if (found != null  found.getMvccVersion() == kv.getMvccVersion()) {
this.snapshot.remove(kv);
  }
 {code}
 this.snapshotSize should be updated in case of rollback.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10984) Add description about setting up htrace-zipkin to documentation

2014-04-15 Thread Nick Dimiduk (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969681#comment-13969681
 ] 

Nick Dimiduk commented on HBASE-10984:
--

Zipkin jars are published to maven central, yes? Better to advocate installing 
the appropriate version release rather than building from scratch.

 Add description about setting up htrace-zipkin to documentation
 ---

 Key: HBASE-10984
 URL: https://issues.apache.org/jira/browse/HBASE-10984
 Project: HBase
  Issue Type: Improvement
  Components: documentation
Reporter: Masatake Iwasaki
Assignee: Masatake Iwasaki
Priority: Trivial
 Attachments: HBASE-10984-0.patch


 adding manual setup procedure of htrace-zipkin for tracing.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10976) Start CatalogTracker after cluster ID is available

2014-04-15 Thread Jimmy Xiang (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969684#comment-13969684
 ] 

Jimmy Xiang commented on HBASE-10976:
-

In startCatalogTracker(), we make sure it is started only once. The tests work 
fine locally. They may be flaky.

 Start CatalogTracker after cluster ID is available
 --

 Key: HBASE-10976
 URL: https://issues.apache.org/jira/browse/HBASE-10976
 Project: HBase
  Issue Type: Bug
Reporter: Jimmy Xiang
Assignee: Jimmy Xiang
Priority: Trivial
 Fix For: 0.99.0

 Attachments: hbase-10976.patch


 CatalogTracker is started before cluster ID is created now. So the 
 HConnection doesn't have the cluster information.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10885) Support visibility expressions on Deletes

2014-04-15 Thread Andrew Purtell (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969688#comment-13969688
 ] 

Andrew Purtell commented on HBASE-10885:


bq. Also it wont one simple bytes compare. AB will be stored as one Tag. In 
case of '|' it will be stored as 2 tags. So we need to consider all these tags 
and compare all. Just a note before starting the impl.

Ok thanks Anoop.

 Support visibility expressions on Deletes
 -

 Key: HBASE-10885
 URL: https://issues.apache.org/jira/browse/HBASE-10885
 Project: HBase
  Issue Type: Improvement
Affects Versions: 0.98.1
Reporter: Andrew Purtell
Assignee: ramkrishna.s.vasudevan
 Fix For: 0.99.0, 0.98.2


 Accumulo can specify visibility expressions for delete markers. During 
 compaction the cells covered by the tombstone are determined in part by 
 matching the visibility expression. This is useful for the use case of data 
 set coalescing, where entries from multiple data sets carrying different 
 labels are combined into one common large table. Later, a subset of entries 
 can be conveniently removed using visibility expressions.
 Currently doing the same in HBase would only be possible with a custom 
 coprocessor. Otherwise, a Delete will affect all cells covered by the 
 tombstone regardless of any visibility expression scoping. This is correct 
 behavior in that no data spill is possible, but certainly could be 
 surprising, and is only meant to be transitional. We decided not to support 
 visibility expressions on Deletes to control the complexity of the initial 
 implementation.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10970) [AccessController] delete latest version should check covering permission for the latest version only

2014-04-15 Thread ramkrishna.s.vasudevan (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969699#comment-13969699
 ] 

ramkrishna.s.vasudevan commented on HBASE-10970:


bq.Why not one fix to take care of the remaining corner cases instead of one 
fix for one corner case?
Ok fine.  I was thinking we could handle this case separately as this is 
concerned with delete with specific version.


 [AccessController] delete latest version should check covering permission for 
 the latest  version only
 --

 Key: HBASE-10970
 URL: https://issues.apache.org/jira/browse/HBASE-10970
 Project: HBase
  Issue Type: Bug
Reporter: ramkrishna.s.vasudevan
Assignee: ramkrishna.s.vasudevan
 Fix For: 0.99.0, 0.98.2


 Refer to discussion in HBASE-10823.
 bq.The exact version deletion also check for the preceeding version though 
 the latest version allows the permission



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-9933) checkAndMutate doesn't do checks for increments and appends

2014-04-15 Thread Nick Dimiduk (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969710#comment-13969710
 ] 

Nick Dimiduk commented on HBASE-9933:
-

The only implementations we have are checkAndPut and checkAndDelete. Increment 
and Append don't have conditional equivalents; there's no check to unpack. This 
could be a nice API to support, but otherwise I don't follow.

 checkAndMutate doesn't do checks for increments and appends
 ---

 Key: HBASE-9933
 URL: https://issues.apache.org/jira/browse/HBASE-9933
 Project: HBase
  Issue Type: Bug
Reporter: Sergey Shelukhin

 See HRegionServer::mutate switch statement. For puts/deletes it checks 
 condition, for i/a it just does the operation. Discovered while doing stuff 
 for HBASE-3787



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10974) Improve DBEs read performance by avoiding byte array deep copies for key[] and value[]

2014-04-15 Thread ramkrishna.s.vasudevan (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ramkrishna.s.vasudevan updated HBASE-10974:
---

Attachment: HBASE-10972.patch

This patch also has the getCell() change replacing getKeyValue().  
TestProcedureManager generally fails when i run the test suite. Is it really 
under the small tests category? Or should it be medium tests?  Because we are 
starting a cluster there.
Need to find a way to allocate a buffer for the key which is sufficient in 
length so that unnecessary copy does not happen.  Running to get a hadoopQA 
run.  
Large tests are running in my machine.

 Improve DBEs read performance by avoiding byte array deep copies for key[] 
 and value[]
 --

 Key: HBASE-10974
 URL: https://issues.apache.org/jira/browse/HBASE-10974
 Project: HBase
  Issue Type: Improvement
  Components: Scanners
Affects Versions: 0.99.0
Reporter: ramkrishna.s.vasudevan
Assignee: ramkrishna.s.vasudevan
 Fix For: 0.99.0

 Attachments: HBASE-10972.patch


 As part of HBASE-10801, we  tried to reduce the copy of the value [] in 
 forming the KV from the DBEs. 
 The keys required copying and this was restricting us in using Cells and 
 always wanted to copy to be done.
 The idea here is to replace the key byte[] as ByteBuffer and create a 
 consecutive stream of the keys (currently the same byte[] is used and hence 
 the copy).  Use offset and length to track this key bytebuffer.
 The copy of the encoded format to normal Key format is definitely needed and 
 can't be avoided but we could always avoid the deep copy of the bytes to form 
 a KV and thus use cells effectively. Working on a patch, will post it soon.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10974) Improve DBEs read performance by avoiding byte array deep copies for key[] and value[]

2014-04-15 Thread ramkrishna.s.vasudevan (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ramkrishna.s.vasudevan updated HBASE-10974:
---

Status: Patch Available  (was: Open)

 Improve DBEs read performance by avoiding byte array deep copies for key[] 
 and value[]
 --

 Key: HBASE-10974
 URL: https://issues.apache.org/jira/browse/HBASE-10974
 Project: HBase
  Issue Type: Improvement
  Components: Scanners
Affects Versions: 0.99.0
Reporter: ramkrishna.s.vasudevan
Assignee: ramkrishna.s.vasudevan
 Fix For: 0.99.0

 Attachments: HBASE-10972.patch


 As part of HBASE-10801, we  tried to reduce the copy of the value [] in 
 forming the KV from the DBEs. 
 The keys required copying and this was restricting us in using Cells and 
 always wanted to copy to be done.
 The idea here is to replace the key byte[] as ByteBuffer and create a 
 consecutive stream of the keys (currently the same byte[] is used and hence 
 the copy).  Use offset and length to track this key bytebuffer.
 The copy of the encoded format to normal Key format is definitely needed and 
 can't be avoided but we could always avoid the deep copy of the bytes to form 
 a KV and thus use cells effectively. Working on a patch, will post it soon.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10845) Memstore snapshot size isn't updated in DefaultMemStore#rollback()

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969727#comment-13969727
 ] 

Hudson commented on HBASE-10845:


FAILURE: Integrated in HBase-0.98-on-Hadoop-1.1 #262 (See 
[https://builds.apache.org/job/HBase-0.98-on-Hadoop-1.1/262/])
HBASE-10845 Memstore snapshot size isn't updated in DefaultMemStore#rollback() 
(tedyu: rev 1587612)
* 
/hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStore.java
* 
/hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java
* 
/hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/FaultyHLog.java


 Memstore snapshot size isn't updated in DefaultMemStore#rollback()
 --

 Key: HBASE-10845
 URL: https://issues.apache.org/jira/browse/HBASE-10845
 Project: HBase
  Issue Type: Bug
Reporter: Ted Yu
Assignee: Ted Yu
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10845-0.94.txt, 10845-0.96.addendum, 10845-0.98.txt, 
 10845-v1.txt, 10845-v2.txt, 10845-v3.txt, 10845-v4.txt


 In DefaultMemStore#rollback() :
 {code}
  if (found != null  found.getMvccVersion() == kv.getMvccVersion()) {
this.snapshot.remove(kv);
  }
 {code}
 this.snapshotSize should be updated in case of rollback.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10974) Improve DBEs read performance by avoiding byte array deep copies for key[] and value[]

2014-04-15 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969730#comment-13969730
 ] 

Hadoop QA commented on HBASE-10974:
---

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  http://issues.apache.org/jira/secure/attachment/12640294/HBASE-10972.patch
  against trunk revision .
  ATTACHMENT ID: 12640294

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:green}+1 tests included{color}.  The patch appears to include 3 new 
or modified tests.

{color:red}-1 patch{color}.  The patch command could not apply the patch.

Console output: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9292//console

This message is automatically generated.

 Improve DBEs read performance by avoiding byte array deep copies for key[] 
 and value[]
 --

 Key: HBASE-10974
 URL: https://issues.apache.org/jira/browse/HBASE-10974
 Project: HBase
  Issue Type: Improvement
  Components: Scanners
Affects Versions: 0.99.0
Reporter: ramkrishna.s.vasudevan
Assignee: ramkrishna.s.vasudevan
 Fix For: 0.99.0

 Attachments: HBASE-10972.patch


 As part of HBASE-10801, we  tried to reduce the copy of the value [] in 
 forming the KV from the DBEs. 
 The keys required copying and this was restricting us in using Cells and 
 always wanted to copy to be done.
 The idea here is to replace the key byte[] as ByteBuffer and create a 
 consecutive stream of the keys (currently the same byte[] is used and hence 
 the copy).  Use offset and length to track this key bytebuffer.
 The copy of the encoded format to normal Key format is definitely needed and 
 can't be avoided but we could always avoid the deep copy of the bytes to form 
 a KV and thus use cells effectively. Working on a patch, will post it soon.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (HBASE-10985) Decouple Split Transaction from Zookeeper

2014-04-15 Thread Sergey Soldatov (JIRA)
Sergey Soldatov created HBASE-10985:
---

 Summary: Decouple Split Transaction from Zookeeper
 Key: HBASE-10985
 URL: https://issues.apache.org/jira/browse/HBASE-10985
 Project: HBase
  Issue Type: Sub-task
  Components: regionserver, Zookeeper
Reporter: Sergey Soldatov


As part of  HBASE-10296 SplitTransaction should be decoupled from Zookeeper. 
This is an initial patch for review. At the moment the consensus provider  
placed directly to SplitTransaction to minimize affected code. In the ideal 
world it should be done in HServer.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10981) taskmonitor use subList may cause recursion and get a java.lang.StackOverflowError

2014-04-15 Thread Jean-Daniel Cryans (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969737#comment-13969737
 ] 

Jean-Daniel Cryans commented on HBASE-10981:


I'd rather we use my patch from HBASE-10312.

 taskmonitor use subList may cause recursion and get a 
 java.lang.StackOverflowError
 --

 Key: HBASE-10981
 URL: https://issues.apache.org/jira/browse/HBASE-10981
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.98.0, 0.96.0, 0.96.2, 0.98.1, 0.96.1.1, 0.98.2
 Environment: java version 1.7.0_03 64bit
Reporter: sinfox
Priority: Critical
 Attachments: fixsubListException.patch

   Original Estimate: 5m
  Remaining Estimate: 5m

 2014-04-14 11:52:45,905 ERROR [RS_CLOSE_REGION-in16-062:60020-1] 
 executor.EventHandler: Caught throwable while processing event
 M_RS_CLOSE_REGION
 java.lang.RuntimeException: java.lang.StackOverflowError
 at 
 org.apache.hadoop.hbase.regionserver.handler.CloseRegionHandler.process(CloseRegionHandler.java:161)
 at 
 org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:128)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)
 Caused by: java.lang.StackOverflowError
 at java.util.ArrayList$SubList.add(ArrayList.java:965)
 at java.util.ArrayList$SubList.add(ArrayList.java:965)



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10985) Decouple Split Transaction from Zookeeper

2014-04-15 Thread Sergey Soldatov (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Soldatov updated HBASE-10985:


Status: Patch Available  (was: Open)

First version for review

 Decouple Split Transaction from Zookeeper
 -

 Key: HBASE-10985
 URL: https://issues.apache.org/jira/browse/HBASE-10985
 Project: HBase
  Issue Type: Sub-task
  Components: regionserver, Zookeeper
Reporter: Sergey Soldatov

 As part of  HBASE-10296 SplitTransaction should be decoupled from Zookeeper. 
 This is an initial patch for review. At the moment the consensus provider  
 placed directly to SplitTransaction to minimize affected code. In the ideal 
 world it should be done in HServer.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Resolved] (HBASE-10845) Memstore snapshot size isn't updated in DefaultMemStore#rollback()

2014-04-15 Thread Ted Yu (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Yu resolved HBASE-10845.


Resolution: Fixed

 Memstore snapshot size isn't updated in DefaultMemStore#rollback()
 --

 Key: HBASE-10845
 URL: https://issues.apache.org/jira/browse/HBASE-10845
 Project: HBase
  Issue Type: Bug
Reporter: Ted Yu
Assignee: Ted Yu
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10845-0.94.txt, 10845-0.96.addendum, 10845-0.98.txt, 
 10845-v1.txt, 10845-v2.txt, 10845-v3.txt, 10845-v4.txt


 In DefaultMemStore#rollback() :
 {code}
  if (found != null  found.getMvccVersion() == kv.getMvccVersion()) {
this.snapshot.remove(kv);
  }
 {code}
 this.snapshotSize should be updated in case of rollback.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10845) Memstore snapshot size isn't updated in DefaultMemStore#rollback()

2014-04-15 Thread stack (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969750#comment-13969750
 ] 

stack commented on HBASE-10845:
---

bq. No Stack.  This fix is not there in any of the branch.

Yeah.  Second misread of the evening.  Pardon me.

 Memstore snapshot size isn't updated in DefaultMemStore#rollback()
 --

 Key: HBASE-10845
 URL: https://issues.apache.org/jira/browse/HBASE-10845
 Project: HBase
  Issue Type: Bug
Reporter: Ted Yu
Assignee: Ted Yu
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10845-0.94.txt, 10845-0.96.addendum, 10845-0.98.txt, 
 10845-v1.txt, 10845-v2.txt, 10845-v3.txt, 10845-v4.txt


 In DefaultMemStore#rollback() :
 {code}
  if (found != null  found.getMvccVersion() == kv.getMvccVersion()) {
this.snapshot.remove(kv);
  }
 {code}
 this.snapshotSize should be updated in case of rollback.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10985) Decouple Split Transaction from Zookeeper

2014-04-15 Thread Sergey Soldatov (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Soldatov updated HBASE-10985:


Attachment: HBASE-10985.patch

 Decouple Split Transaction from Zookeeper
 -

 Key: HBASE-10985
 URL: https://issues.apache.org/jira/browse/HBASE-10985
 Project: HBase
  Issue Type: Sub-task
  Components: regionserver, Zookeeper
Reporter: Sergey Soldatov
 Attachments: HBASE-10985.patch


 As part of  HBASE-10296 SplitTransaction should be decoupled from Zookeeper. 
 This is an initial patch for review. At the moment the consensus provider  
 placed directly to SplitTransaction to minimize affected code. In the ideal 
 world it should be done in HServer.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10965) Automate detection of presence of Filter#filterRow()

2014-04-15 Thread Ted Yu (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969760#comment-13969760
 ] 

Ted Yu commented on HBASE-10965:


bq. You would change how we run filters to accommodate brokenly implemented 
filters?

Accommodating brokenly implemented filters is already in place. Please take a 
look at the following method in HRegion#RegionScannerImpl:
{code}
private boolean filterRow() throws IOException {
  // when hasFilterRow returns true, filter.filterRow() will be called 
automatically inside
  // filterRowCells(ListCell kvs) so we skip that scenario here.
  return filter != null  (!filter.hasFilterRow())
   filter.filterRow();
}
{code}
When filter.hasFilterRow() returns false, filter.filterRow() is still called.

bq. Are folks implementing filters w/o reading the Interface

Here is one example: 
phoenix-core/src/main/java/org/apache/phoenix/filter/MultiKeyValueComparisonFilter.java
{code}
@Override
public boolean filterRow() {
{code}
But hasFilterRow() is not defined. There're other files in Phoenix which 
exhibit the same pattern.

bq. is it not clear on what needs overriding
From hbase-client/src/main/java/org/apache/hadoop/hbase/filter/Filter.java 
(since 0.96):
{code}
  /**
   * Primarily used to check for conflicts with scans(such as scans that do not 
read a full row at a
   * time).
   *
   * @return True if this filter actively uses filterRow(List) or filterRow().
   */
  abstract public boolean hasFilterRow();
{code}
The contract is clearly published but not all people follow it.

If a custom filter overrides filterRow(List) or filterRow(), it is easy to use 
reflection to detect. Having hasFilterRow() method leaves room for 
inconsistency.

If we can reach consensus on whether hasFilterRow() method should be deprecated 
first and then removed, I will address Lars' and Anoop's review comments in the 
next patch.

 Automate detection of presence of Filter#filterRow()
 

 Key: HBASE-10965
 URL: https://issues.apache.org/jira/browse/HBASE-10965
 Project: HBase
  Issue Type: Task
Reporter: Ted Yu
Assignee: Ted Yu
 Attachments: 10965-v1.txt, 10965-v2.txt, 10965-v3.txt, 10965-v4.txt


 There is potential inconsistency between the return value of 
 Filter#hasFilterRow() and presence of Filter#filterRow().
 Filters may override Filter#filterRow() while leaving return value of 
 Filter#hasFilterRow() being false (inherited from FilterBase).
 This JIRA aims to remove the inconsistency by automatically detecting the 
 presence of overridden Filter#filterRow(). If filterRow() is implemented and 
 not inherited from FilterBase, it is equivalent to having hasFilterRow() 
 return true.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10916) [VisibilityController] Stackable ScanLabelGenerators

2014-04-15 Thread Andrew Purtell (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969762#comment-13969762
 ] 

Andrew Purtell commented on HBASE-10916:


Yep you get the idea.

 [VisibilityController] Stackable ScanLabelGenerators
 

 Key: HBASE-10916
 URL: https://issues.apache.org/jira/browse/HBASE-10916
 Project: HBase
  Issue Type: Improvement
Reporter: Andrew Purtell
Assignee: Anoop Sam John
 Fix For: 0.99.0, 0.98.2


 The ScanLabelGenerator is used by the VisibilityController to assemble the 
 effective label set for a user in the RPC context before processing any 
 request. Currently only one implementation of this interface can be 
 installed, although which implementation to use can be specified in the site 
 file. Instead it should be possible to stack multiple implementations of this 
 component the same way we do coprocessors, installed with explicit priority 
 with ties broken by a counter, where those implementations installed later in 
 the chain have an opportunity to modify the pending effective label set.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10974) Improve DBEs read performance by avoiding byte array deep copies for key[] and value[]

2014-04-15 Thread ramkrishna.s.vasudevan (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ramkrishna.s.vasudevan updated HBASE-10974:
---

Attachment: HBASE-10974_1.patch

Attached the wrong patch.

 Improve DBEs read performance by avoiding byte array deep copies for key[] 
 and value[]
 --

 Key: HBASE-10974
 URL: https://issues.apache.org/jira/browse/HBASE-10974
 Project: HBase
  Issue Type: Improvement
  Components: Scanners
Affects Versions: 0.99.0
Reporter: ramkrishna.s.vasudevan
Assignee: ramkrishna.s.vasudevan
 Fix For: 0.99.0

 Attachments: HBASE-10974_1.patch


 As part of HBASE-10801, we  tried to reduce the copy of the value [] in 
 forming the KV from the DBEs. 
 The keys required copying and this was restricting us in using Cells and 
 always wanted to copy to be done.
 The idea here is to replace the key byte[] as ByteBuffer and create a 
 consecutive stream of the keys (currently the same byte[] is used and hence 
 the copy).  Use offset and length to track this key bytebuffer.
 The copy of the encoded format to normal Key format is definitely needed and 
 can't be avoided but we could always avoid the deep copy of the bytes to form 
 a KV and thus use cells effectively. Working on a patch, will post it soon.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10974) Improve DBEs read performance by avoiding byte array deep copies for key[] and value[]

2014-04-15 Thread ramkrishna.s.vasudevan (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ramkrishna.s.vasudevan updated HBASE-10974:
---

Attachment: (was: HBASE-10972.patch)

 Improve DBEs read performance by avoiding byte array deep copies for key[] 
 and value[]
 --

 Key: HBASE-10974
 URL: https://issues.apache.org/jira/browse/HBASE-10974
 Project: HBase
  Issue Type: Improvement
  Components: Scanners
Affects Versions: 0.99.0
Reporter: ramkrishna.s.vasudevan
Assignee: ramkrishna.s.vasudevan
 Fix For: 0.99.0

 Attachments: HBASE-10974_1.patch


 As part of HBASE-10801, we  tried to reduce the copy of the value [] in 
 forming the KV from the DBEs. 
 The keys required copying and this was restricting us in using Cells and 
 always wanted to copy to be done.
 The idea here is to replace the key byte[] as ByteBuffer and create a 
 consecutive stream of the keys (currently the same byte[] is used and hence 
 the copy).  Use offset and length to track this key bytebuffer.
 The copy of the encoded format to normal Key format is definitely needed and 
 can't be avoided but we could always avoid the deep copy of the bytes to form 
 a KV and thus use cells effectively. Working on a patch, will post it soon.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10974) Improve DBEs read performance by avoiding byte array deep copies for key[] and value[]

2014-04-15 Thread ramkrishna.s.vasudevan (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ramkrishna.s.vasudevan updated HBASE-10974:
---

Status: Patch Available  (was: Open)

 Improve DBEs read performance by avoiding byte array deep copies for key[] 
 and value[]
 --

 Key: HBASE-10974
 URL: https://issues.apache.org/jira/browse/HBASE-10974
 Project: HBase
  Issue Type: Improvement
  Components: Scanners
Affects Versions: 0.99.0
Reporter: ramkrishna.s.vasudevan
Assignee: ramkrishna.s.vasudevan
 Fix For: 0.99.0

 Attachments: HBASE-10974_1.patch


 As part of HBASE-10801, we  tried to reduce the copy of the value [] in 
 forming the KV from the DBEs. 
 The keys required copying and this was restricting us in using Cells and 
 always wanted to copy to be done.
 The idea here is to replace the key byte[] as ByteBuffer and create a 
 consecutive stream of the keys (currently the same byte[] is used and hence 
 the copy).  Use offset and length to track this key bytebuffer.
 The copy of the encoded format to normal Key format is definitely needed and 
 can't be avoided but we could always avoid the deep copy of the bytes to form 
 a KV and thus use cells effectively. Working on a patch, will post it soon.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10974) Improve DBEs read performance by avoiding byte array deep copies for key[] and value[]

2014-04-15 Thread ramkrishna.s.vasudevan (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ramkrishna.s.vasudevan updated HBASE-10974:
---

Status: Open  (was: Patch Available)

 Improve DBEs read performance by avoiding byte array deep copies for key[] 
 and value[]
 --

 Key: HBASE-10974
 URL: https://issues.apache.org/jira/browse/HBASE-10974
 Project: HBase
  Issue Type: Improvement
  Components: Scanners
Affects Versions: 0.99.0
Reporter: ramkrishna.s.vasudevan
Assignee: ramkrishna.s.vasudevan
 Fix For: 0.99.0

 Attachments: HBASE-10974_1.patch


 As part of HBASE-10801, we  tried to reduce the copy of the value [] in 
 forming the KV from the DBEs. 
 The keys required copying and this was restricting us in using Cells and 
 always wanted to copy to be done.
 The idea here is to replace the key byte[] as ByteBuffer and create a 
 consecutive stream of the keys (currently the same byte[] is used and hence 
 the copy).  Use offset and length to track this key bytebuffer.
 The copy of the encoded format to normal Key format is definitely needed and 
 can't be avoided but we could always avoid the deep copy of the bytes to form 
 a KV and thus use cells effectively. Working on a patch, will post it soon.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10965) Automate detection of presence of Filter#filterRow()

2014-04-15 Thread Ted Yu (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969773#comment-13969773
 ] 

Ted Yu commented on HBASE-10965:


Another downside to purely depending on hasFilterRow() telling us whether 
custom filter overrides filterRow(List) or filterRow() is that the check below 
may be rendered ineffective:
{code}
  if (nextKv == KV_LIMIT) {
if (this.filter != null  filter.hasFilterRow()) {
  throw new IncompatibleFilterException(
Filter whose hasFilterRow() returns true is incompatible with 
scan with limit!);
}
{code}
When user forgets to override hasFilterRow(), the above check becomes not 
useful.

 Automate detection of presence of Filter#filterRow()
 

 Key: HBASE-10965
 URL: https://issues.apache.org/jira/browse/HBASE-10965
 Project: HBase
  Issue Type: Task
Reporter: Ted Yu
Assignee: Ted Yu
 Attachments: 10965-v1.txt, 10965-v2.txt, 10965-v3.txt, 10965-v4.txt


 There is potential inconsistency between the return value of 
 Filter#hasFilterRow() and presence of Filter#filterRow().
 Filters may override Filter#filterRow() while leaving return value of 
 Filter#hasFilterRow() being false (inherited from FilterBase).
 This JIRA aims to remove the inconsistency by automatically detecting the 
 presence of overridden Filter#filterRow(). If filterRow() is implemented and 
 not inherited from FilterBase, it is equivalent to having hasFilterRow() 
 return true.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10569) Co-locate meta and master

2014-04-15 Thread Andrew Purtell (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969780#comment-13969780
 ] 

Andrew Purtell commented on HBASE-10569:


Please capture the Google document and its comments on this JIRA, all 
discussions should eventually appear on ASF resources. Thanks!

 Co-locate meta and master
 -

 Key: HBASE-10569
 URL: https://issues.apache.org/jira/browse/HBASE-10569
 Project: HBase
  Issue Type: Improvement
  Components: master, Region Assignment
Reporter: Jimmy Xiang
Assignee: Jimmy Xiang
 Fix For: 0.99.0

 Attachments: hbase-10569_v1.patch, hbase-10569_v2.patch, 
 hbase-10569_v3.1.patch, hbase-10569_v3.patch


 I was thinking simplifying/improving the region assignments. The first step 
 is to co-locate the meta and the master as many people agreed on HBASE-5487.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10874) Use just one Jetty server for master web UI

2014-04-15 Thread Jimmy Xiang (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jimmy Xiang updated HBASE-10874:


Priority: Minor  (was: Major)

 Use just one Jetty server for master web UI
 ---

 Key: HBASE-10874
 URL: https://issues.apache.org/jira/browse/HBASE-10874
 Project: HBase
  Issue Type: Improvement
  Components: master, UI
Reporter: Jimmy Xiang
Assignee: Jimmy Xiang
Priority: Minor

 In HBase-10815, we introduced a separate Jetty server to redirect requests to 
 original master web UI port to the new shared info server. The reason for the 
 new Jetty server is because our InfoServer extends from the deprecated hadoop 
 HttpServer that doesn't support listening to multiple ports. We should either 
 have our own info server, or use the new version of HttpServer (if it 
 supports listening to multiple ports). So that we have just one Jetty server 
 for web UI.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10984) Add description about setting up htrace-zipkin to documentation

2014-04-15 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969785#comment-13969785
 ] 

Hadoop QA commented on HBASE-10984:
---

{color:green}+1 overall{color}.  Here are the results of testing the latest 
attachment 
  http://issues.apache.org/jira/secure/attachment/12640287/HBASE-10984-0.patch
  against trunk revision .
  ATTACHMENT ID: 12640287

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:green}+0 tests included{color}.  The patch appears to be a 
documentation patch that doesn't require tests.

{color:green}+1 javadoc{color}.  The javadoc tool did not generate any 
warning messages.

{color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

{color:green}+1 findbugs{color}.  The patch does not introduce any new 
Findbugs (version 1.3.9) warnings.

{color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

{color:green}+1 lineLengths{color}.  The patch does not introduce lines 
longer than 100

  {color:green}+1 site{color}.  The mvn site goal succeeds with this patch.

{color:green}+1 core tests{color}.  The patch passed unit tests in .

Test results: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9290//testReport/
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9290//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-protocol.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9290//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-thrift.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9290//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-client.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9290//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop2-compat.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9290//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-examples.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9290//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-prefix-tree.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9290//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9290//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9290//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop-compat.html
Console output: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9290//console

This message is automatically generated.

 Add description about setting up htrace-zipkin to documentation
 ---

 Key: HBASE-10984
 URL: https://issues.apache.org/jira/browse/HBASE-10984
 Project: HBase
  Issue Type: Improvement
  Components: documentation
Reporter: Masatake Iwasaki
Assignee: Masatake Iwasaki
Priority: Trivial
 Attachments: HBASE-10984-0.patch


 adding manual setup procedure of htrace-zipkin for tracing.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10874) Use just one Jetty server for master web UI

2014-04-15 Thread Jimmy Xiang (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jimmy Xiang updated HBASE-10874:


Assignee: (was: Jimmy Xiang)

 Use just one Jetty server for master web UI
 ---

 Key: HBASE-10874
 URL: https://issues.apache.org/jira/browse/HBASE-10874
 Project: HBase
  Issue Type: Improvement
  Components: master, UI
Reporter: Jimmy Xiang
Priority: Minor

 In HBase-10815, we introduced a separate Jetty server to redirect requests to 
 original master web UI port to the new shared info server. The reason for the 
 new Jetty server is because our InfoServer extends from the deprecated hadoop 
 HttpServer that doesn't support listening to multiple ports. We should either 
 have our own info server, or use the new version of HttpServer (if it 
 supports listening to multiple ports). So that we have just one Jetty server 
 for web UI.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10874) Use just one Jetty server for master web UI

2014-04-15 Thread Jimmy Xiang (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969788#comment-13969788
 ] 

Jimmy Xiang commented on HBASE-10874:
-

Eventually it's better to listen to just one web UI port.

 Use just one Jetty server for master web UI
 ---

 Key: HBASE-10874
 URL: https://issues.apache.org/jira/browse/HBASE-10874
 Project: HBase
  Issue Type: Improvement
  Components: master, UI
Reporter: Jimmy Xiang
Priority: Minor

 In HBase-10815, we introduced a separate Jetty server to redirect requests to 
 original master web UI port to the new shared info server. The reason for the 
 new Jetty server is because our InfoServer extends from the deprecated hadoop 
 HttpServer that doesn't support listening to multiple ports. We should either 
 have our own info server, or use the new version of HttpServer (if it 
 supports listening to multiple ports). So that we have just one Jetty server 
 for web UI.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10979) Fix AnnotationReadingPriorityFunction scan handling

2014-04-15 Thread Matteo Bertozzi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matteo Bertozzi updated HBASE-10979:


Resolution: Fixed
Status: Resolved  (was: Patch Available)

committed to 0.96, 0.98 and trunk

 Fix AnnotationReadingPriorityFunction scan handling
 -

 Key: HBASE-10979
 URL: https://issues.apache.org/jira/browse/HBASE-10979
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.96.2, 0.98.1, 0.99.0
Reporter: Matteo Bertozzi
Assignee: Matteo Bertozzi
 Fix For: 0.99.0, 0.98.2, 0.96.3

 Attachments: HBASE-10979-0.96-v0.patch, HBASE-10979-v0.patch


 AnnotationReadingPriorityFunction does a equals() instead of 
 equalsIgnoreCase() for Scan, so we never prioritize scan on META



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10844) Coprocessor failure during batchmutation leaves the memstore datastructs in an inconsistent state

2014-04-15 Thread Devaraj Das (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Devaraj Das updated HBASE-10844:


Resolution: Won't Fix
Status: Resolved  (was: Patch Available)

Yes, [~lhofhansl], I am resolving it as won't-fix.

 Coprocessor failure during batchmutation leaves the memstore datastructs in 
 an inconsistent state
 -

 Key: HBASE-10844
 URL: https://issues.apache.org/jira/browse/HBASE-10844
 Project: HBase
  Issue Type: Bug
  Components: regionserver
Reporter: Devaraj Das
Assignee: Devaraj Das
 Fix For: 0.99.0, 0.98.2, 0.96.3, 0.94.20

 Attachments: 10844-1.txt


 Observed this in the testing with Phoenix. The test in Phoenix - 
 MutableIndexFailureIT deliberately fails the batchmutation call via the 
 installed coprocessor. But the update is not rolled back. That leaves the 
 memstore inconsistent. In particular, I observed that getFlushableSize is 
 updated before the coprocessor was called but the update is not rolled back. 
 When the region is being closed at some later point, the assert introduced in 
 HBASE-10514 in the HRegion.doClose() causes the RegionServer to shutdown 
 abnormally.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10845) Memstore snapshot size isn't updated in DefaultMemStore#rollback()

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969796#comment-13969796
 ] 

Hudson commented on HBASE-10845:


SUCCESS: Integrated in HBase-0.94-security #465 (See 
[https://builds.apache.org/job/HBase-0.94-security/465/])
HBASE-10845 Memstore snapshot size isn't updated in DefaultMemStore#rollback() 
(tedyu: rev 1587628)
* 
/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/MemStore.java


 Memstore snapshot size isn't updated in DefaultMemStore#rollback()
 --

 Key: HBASE-10845
 URL: https://issues.apache.org/jira/browse/HBASE-10845
 Project: HBase
  Issue Type: Bug
Reporter: Ted Yu
Assignee: Ted Yu
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10845-0.94.txt, 10845-0.96.addendum, 10845-0.98.txt, 
 10845-v1.txt, 10845-v2.txt, 10845-v3.txt, 10845-v4.txt


 In DefaultMemStore#rollback() :
 {code}
  if (found != null  found.getMvccVersion() == kv.getMvccVersion()) {
this.snapshot.remove(kv);
  }
 {code}
 this.snapshotSize should be updated in case of rollback.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10985) Decouple Split Transaction from Zookeeper

2014-04-15 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969801#comment-13969801
 ] 

Hadoop QA commented on HBASE-10985:
---

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  http://issues.apache.org/jira/secure/attachment/12640297/HBASE-10985.patch
  against trunk revision .
  ATTACHMENT ID: 12640297

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:green}+1 tests included{color}.  The patch appears to include 6 new 
or modified tests.

{color:red}-1 javadoc{color}.  The javadoc tool appears to have generated 6 
warning messages.

{color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

{color:red}-1 findbugs{color}.  The patch appears to introduce 1 new 
Findbugs (version 1.3.9) warnings.

{color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

{color:red}-1 lineLengths{color}.  The patch introduces the following lines 
longer than 100:
+if 
(ConsensusProviderFactory.getConsensusProvider(server.getConfiguration()).getSplitTransactionConsensus().transitionSplittingNode(watcher,
 p,
+  znodeVersion = 
consensus.getSplitTransactionConsensus().getZKNode(server, services, parent, 
hri_a, hri_b);
+consensus.getSplitTransactionConsensus().transitionNode(server, services, 
regions.getFirst(), regions.getSecond(),znodeVersion, parent);
+   * @see 
org.apache.hadoop.hbase.regionserver.consensus.SplitTransactionConsensus#createNodeSplitting(org.apache.hadoop.hbase.Server,
 org.apache.hadoop.hbase.regionserver.HRegion, 
org.apache.hadoop.hbase.ServerName, org.apache.hadoop.hbase.HRegionInfo, 
org.apache.hadoop.hbase.HRegionInfo)
+   * @see 
org.apache.hadoop.hbase.regionserver.consensus.SplitTransactionConsensus#transitionSplittingNode(org.apache.hadoop.hbase.Server,
 org.apache.hadoop.hbase.HRegionInfo, org.apache.hadoop.hbase.HRegionInfo, 
org.apache.hadoop.hbase.HRegionInfo, org.apache.hadoop.hbase.ServerName, int, 
org.apache.hadoop.hbase.executor.EventType, 
org.apache.hadoop.hbase.executor.EventType)
+   * @see 
org.apache.hadoop.hbase.regionserver.consensus.SplitTransactionConsensus#transitionSplittingNode(org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher,
 org.apache.hadoop.hbase.HRegionInfo, org.apache.hadoop.hbase.HRegionInfo, 
org.apache.hadoop.hbase.HRegionInfo, org.apache.hadoop.hbase.ServerName, int, 
org.apache.hadoop.hbase.executor.EventType, 
org.apache.hadoop.hbase.executor.EventType)
+   * @see 
org.apache.hadoop.hbase.regionserver.consensus.SplitTransactionConsensus#getZKNode(org.apache.hadoop.hbase.Server,
 org.apache.hadoop.hbase.regionserver.RegionServerServices, 
org.apache.hadoop.hbase.regionserver.HRegion, 
org.apache.hadoop.hbase.HRegionInfo, org.apache.hadoop.hbase.HRegionInfo)
+   * @see 
org.apache.hadoop.hbase.regionserver.consensus.SplitTransactionConsensus#transitionNode(org.apache.hadoop.hbase.Server,
 org.apache.hadoop.hbase.regionserver.RegionServerServices, 
org.apache.hadoop.hbase.regionserver.HRegion, 
org.apache.hadoop.hbase.regionserver.HRegion, int, 
org.apache.hadoop.hbase.regionserver.HRegion)
+   * @see 
org.apache.hadoop.hbase.regionserver.consensus.SplitTransactionConsensus#cleanZK(org.apache.hadoop.hbase.Server,
 org.apache.hadoop.hbase.HRegionInfo)
+void transitionNode(Server server, RegionServerServices services, HRegion 
a, HRegion b,int znodeVersion, HRegion parent)

  {color:green}+1 site{color}.  The mvn site goal succeeds with this patch.

 {color:red}-1 core tests{color}.  The patch failed these unit tests:
   org.apache.hadoop.hbase.regionserver.TestSplitTransaction
  org.apache.hadoop.hbase.coprocessor.TestCoprocessorInterface

Test results: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9293//testReport/
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9293//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop2-compat.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9293//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-prefix-tree.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9293//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-client.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9293//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9293//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-protocol.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/9293//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html
Findbugs warnings: 

[jira] [Commented] (HBASE-9933) checkAndMutate doesn't do checks for increments and appends

2014-04-15 Thread Sergey Shelukhin (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969809#comment-13969809
 ] 

Sergey Shelukhin commented on HBASE-9933:
-

Nm... after reading the code a bit now it seems either I misread it before or 
it was structured differently. There might have been a checkAndMutate method

 checkAndMutate doesn't do checks for increments and appends
 ---

 Key: HBASE-9933
 URL: https://issues.apache.org/jira/browse/HBASE-9933
 Project: HBase
  Issue Type: Bug
Reporter: Sergey Shelukhin

 See HRegionServer::mutate switch statement. For puts/deletes it checks 
 condition, for i/a it just does the operation. Discovered while doing stuff 
 for HBASE-3787



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Resolved] (HBASE-9933) checkAndMutate doesn't do checks for increments and appends

2014-04-15 Thread Sergey Shelukhin (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-9933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Shelukhin resolved HBASE-9933.
-

Resolution: Not a Problem

 checkAndMutate doesn't do checks for increments and appends
 ---

 Key: HBASE-9933
 URL: https://issues.apache.org/jira/browse/HBASE-9933
 Project: HBase
  Issue Type: Bug
Reporter: Sergey Shelukhin

 See HRegionServer::mutate switch statement. For puts/deletes it checks 
 condition, for i/a it just does the operation. Discovered while doing stuff 
 for HBASE-3787



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Resolved] (HBASE-10823) Resolve LATEST_TIMESTAMP to current server time before scanning for ACLs

2014-04-15 Thread Andrew Purtell (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Purtell resolved HBASE-10823.


  Resolution: Fixed
Hadoop Flags: Reviewed

Committed to trunk and 0.98. Thanks for the reviews and discussion, Anoop and 
Ram.

 Resolve LATEST_TIMESTAMP to current server time before scanning for ACLs
 

 Key: HBASE-10823
 URL: https://issues.apache.org/jira/browse/HBASE-10823
 Project: HBase
  Issue Type: Improvement
Affects Versions: 0.98.1
Reporter: Andrew Purtell
Assignee: Andrew Purtell
Priority: Minor
 Fix For: 0.99.0, 0.98.2

 Attachments: HBASE-10823.patch, HBASE-10823.patch, HBASE-10823.patch, 
 test.patch


 Storing values with timestamps in the future is probably bad practice and can 
 lead to surprises. If cells with timestamps in the future have ACLs, 
 permissions from those ACLs will incorrectly be considered for authorizing 
 the pending mutation. For sure that will be surprising.
 We should be able to avoid this case by resolving LATEST_TIMESTAMP to the 
 current server time when creating the internal scanner for finding ACLs in 
 the covered cell set. 
 Documenting a todo item from a discussion between [~anoop.hbase] and myself.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Resolved] (HBASE-10907) [0.89-fb] Fix rg.apache.hadoop.hbase.master.TestRegionPlacement.testRegionPlacement

2014-04-15 Thread Elliott Clark (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Elliott Clark resolved HBASE-10907.
---

Resolution: Fixed

 [0.89-fb] Fix 
 rg.apache.hadoop.hbase.master.TestRegionPlacement.testRegionPlacement
 ---

 Key: HBASE-10907
 URL: https://issues.apache.org/jira/browse/HBASE-10907
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.89-fb
Reporter: Elliott Clark
Assignee: Elliott Clark
 Fix For: 0.89-fb


 TestRegionPlacement is flakey stabilize it so that they pass 3/3 times.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (HBASE-10986) [0.89-FB] Add timeouts to JUnit4 hanging tests.

2014-04-15 Thread Elliott Clark (JIRA)
Elliott Clark created HBASE-10986:
-

 Summary: [0.89-FB] Add timeouts to JUnit4 hanging tests.
 Key: HBASE-10986
 URL: https://issues.apache.org/jira/browse/HBASE-10986
 Project: HBase
  Issue Type: Bug
  Components: build, test
Affects Versions: 0.89-fb
Reporter: Elliott Clark
Assignee: Elliott Clark
 Fix For: 0.89-fb


Some tests are hanging and not returning results to surefire.  We should add 
all the timeouts's needed to get them all to return results.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-8803) region_mover.rb should move multiple regions at a time

2014-04-15 Thread Lars Hofhansl (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-8803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969832#comment-13969832
 ] 

Lars Hofhansl commented on HBASE-8803:
--

Should we have this in 0.94 as well? I think so.

 region_mover.rb should move multiple regions at a time
 --

 Key: HBASE-8803
 URL: https://issues.apache.org/jira/browse/HBASE-8803
 Project: HBase
  Issue Type: Bug
  Components: Usability
Affects Versions: 0.94.16, 0.98.1, 0.96.1.1
Reporter: Jean-Marc Spaggiari
Assignee: Jean-Marc Spaggiari
 Fix For: 0.96.2, 0.98.1, 0.99.0

 Attachments: 8803v5.txt, HBASE-8803-v0-trunk.patch, 
 HBASE-8803-v1-0.94.patch, HBASE-8803-v1-trunk.patch, 
 HBASE-8803-v10-trunk.patch, HBASE-8803-v2-0.94.patch, 
 HBASE-8803-v2-0.94.patch, HBASE-8803-v3-0.94.patch, HBASE-8803-v4-0.94.patch, 
 HBASE-8803-v4-trunk.patch, HBASE-8803-v5-0.94.patch, 
 HBASE-8803-v6-0.94.patch, HBASE-8803-v6-trunk.patch, 
 HBASE-8803-v7-trunk.patch, HBASE-8803-v9-trunk.patch

   Original Estimate: 48h
  Remaining Estimate: 48h

 When there is many regions in a cluster, rolling_restart can take hours 
 because region_mover is moving the regions one by one.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-8803) region_mover.rb should move multiple regions at a time

2014-04-15 Thread Lars Hofhansl (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-8803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Hofhansl updated HBASE-8803:
-

Attachment: 8803-0.94-rebased.txt

Rebased patch for 0.94.

 region_mover.rb should move multiple regions at a time
 --

 Key: HBASE-8803
 URL: https://issues.apache.org/jira/browse/HBASE-8803
 Project: HBase
  Issue Type: Bug
  Components: Usability
Affects Versions: 0.94.16, 0.98.1, 0.96.1.1
Reporter: Jean-Marc Spaggiari
Assignee: Jean-Marc Spaggiari
 Fix For: 0.96.2, 0.98.1, 0.99.0

 Attachments: 8803-0.94-rebased.txt, 8803v5.txt, 
 HBASE-8803-v0-trunk.patch, HBASE-8803-v1-0.94.patch, 
 HBASE-8803-v1-trunk.patch, HBASE-8803-v10-trunk.patch, 
 HBASE-8803-v2-0.94.patch, HBASE-8803-v2-0.94.patch, HBASE-8803-v3-0.94.patch, 
 HBASE-8803-v4-0.94.patch, HBASE-8803-v4-trunk.patch, 
 HBASE-8803-v5-0.94.patch, HBASE-8803-v6-0.94.patch, 
 HBASE-8803-v6-trunk.patch, HBASE-8803-v7-trunk.patch, 
 HBASE-8803-v9-trunk.patch

   Original Estimate: 48h
  Remaining Estimate: 48h

 When there is many regions in a cluster, rolling_restart can take hours 
 because region_mover is moving the regions one by one.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10845) Memstore snapshot size isn't updated in DefaultMemStore#rollback()

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969845#comment-13969845
 ] 

Hudson commented on HBASE-10845:


SUCCESS: Integrated in HBase-0.94 #1346 (See 
[https://builds.apache.org/job/HBase-0.94/1346/])
HBASE-10845 Memstore snapshot size isn't updated in DefaultMemStore#rollback() 
(tedyu: rev 1587628)
* 
/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/MemStore.java


 Memstore snapshot size isn't updated in DefaultMemStore#rollback()
 --

 Key: HBASE-10845
 URL: https://issues.apache.org/jira/browse/HBASE-10845
 Project: HBase
  Issue Type: Bug
Reporter: Ted Yu
Assignee: Ted Yu
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10845-0.94.txt, 10845-0.96.addendum, 10845-0.98.txt, 
 10845-v1.txt, 10845-v2.txt, 10845-v3.txt, 10845-v4.txt


 In DefaultMemStore#rollback() :
 {code}
  if (found != null  found.getMvccVersion() == kv.getMvccVersion()) {
this.snapshot.remove(kv);
  }
 {code}
 this.snapshotSize should be updated in case of rollback.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10948) Fix hbase table file 'x' mode

2014-04-15 Thread Jerry He (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969863#comment-13969863
 ] 

Jerry He commented on HBASE-10948:
--

Anyone has time to look at this JIRA?

The code change is small. The impact looks big. But it is contained.
Here are all the calls to FSUtils.getFilePermissions() after a search:

{code}
getFilePermissions(FileSystem, Configuration, String) : FsPermission - 
org.apache.hadoop.hbase.util.FSUtils
   createOutputStream(Configuration, FileSystem, Path, InetSocketAddress[]) :
   FSDataOutputStream -  
org.apache.hadoop.hbase.io.hfile.AbstractHFileWriter
   testDeleteAndExists() :
   void - org.apache.hadoop.hbase.util.TestFSUtils
   testPermMask() : 
   void - org.apache.hadoop.hbase.util.TestFSUtils (3 matches)
   writeRegionInfoFileContent(Configuration, FileSystem, Path, byte[]) : 
   void - org.apache.hadoop.hbase.regionserver.HRegionFileSystem
   writeSnapshotInfo(SnapshotDescription, Path, FileSystem) : 
   void - org.apache.hadoop.hbase.snapshot.SnapshotDescriptionUtils
{code}

This change does not affect the WALs files because it does not have this 
problem.

 Fix hbase table file 'x' mode
 -

 Key: HBASE-10948
 URL: https://issues.apache.org/jira/browse/HBASE-10948
 Project: HBase
  Issue Type: Bug
  Components: Filesystem Integration
Affects Versions: 0.96.2, 0.98.1
Reporter: Jerry He
Assignee: Jerry He
 Fix For: 0.99.0

 Attachments: HBASE-10948-trunk-v2.patch, HBASE-10948-trunk.patch


 The hbase table files currently all have 'x' mode in there:
 {code}
 $hadoop fs -ls -R /hbase/data/default/TestTable/
 drwxr-xr-x   - hbase biadmin  0 2014-04-08 20:53 
 /hbase/data/default/TestTable/.tabledesc
 -rw-r--r--   1 hbase biadmin313 2014-04-08 20:53 
 /hbase/data/default/TestTable/.tabledesc/.tableinfo.01
 drwxr-xr-x   - hbase biadmin  0 2014-04-08 20:53 
 /hbase/data/default/TestTable/724c8c3075da516b450ce4826327ce64
 -rwxr-xr-x   1 hbase biadmin 68 2014-04-08 20:53 
 /hbase/data/default/TestTable/724c8c3075da516b450ce4826327ce64/.regioninfo
 drwxr-xr-x   - hbase biadmin  0 2014-04-08 21:54 
 /hbase/data/default/TestTable/724c8c3075da516b450ce4826327ce64/info
 -rwxr-xr-x   1 hbase biadmin  272958577 2014-04-08 20:53 
 /hbase/data/default/TestTable/724c8c3075da516b450ce4826327ce64/info/7138e61cbcd24538b64726db13dab48e
 -rwxr-xr-x   1 hbase biadmin  108603714 2014-04-08 20:53 
 /hbase/data/default/TestTable/724c8c3075da516b450ce4826327ce64/info/9ce233fcdfde49679797d13f28e26129
 drwxr-xr-x   - hbase biadmin  0 2014-04-08 20:53 
 /hbase/data/default/TestTable/b5350c581363f786e49ff6f32e71f564
 -rwxr-xr-x   1 hbase biadmin 68 2014-04-08 20:53 
 /hbase/data/default/TestTable/b5350c581363f786e49ff6f32e71f564/.regioninfo
 drwxr-xr-x   - hbase biadmin  0 2014-04-08 21:54 
 /hbase/data/default/TestTable/b5350c581363f786e49ff6f32e71f564/info
 -rwxr-xr-x   1 hbase biadmin   33800049 2014-04-08 21:54 
 /hbase/data/default/TestTable/b5350c581363f786e49ff6f32e71f564/info/576190de431341b9a02280654e3deb58
 -rwxr-xr-x   1 hbase biadmin  108650474 2014-04-08 20:53 
 /hbase/data/default/TestTable/b5350c581363f786e49ff6f32e71f564/info/7c54098fb62a4ef29aab0f5658b25260
 {code}
 If the user does not specify 'hbase.data.umask', we use the fs default:
 FsPermission.getDefault()
 Instead we should use FsPermission.getFileDefault().



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10569) Co-locate meta and master

2014-04-15 Thread stack (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

stack updated HBASE-10569:
--

Attachment: Co-locateMetaAndMasterHBASE-10569.pdf

 Co-locate meta and master
 -

 Key: HBASE-10569
 URL: https://issues.apache.org/jira/browse/HBASE-10569
 Project: HBase
  Issue Type: Improvement
  Components: master, Region Assignment
Reporter: Jimmy Xiang
Assignee: Jimmy Xiang
 Fix For: 0.99.0

 Attachments: Co-locateMetaAndMasterHBASE-10569.pdf, 
 hbase-10569_v1.patch, hbase-10569_v2.patch, hbase-10569_v3.1.patch, 
 hbase-10569_v3.patch


 I was thinking simplifying/improving the region assignments. The first step 
 is to co-locate the meta and the master as many people agreed on HBASE-5487.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10569) Co-locate meta and master

2014-04-15 Thread stack (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969871#comment-13969871
 ] 

stack commented on HBASE-10569:
---

I attached the file.  Comments are missing.  Need to go to Google Doc for that 
or I can copy them here.

 Co-locate meta and master
 -

 Key: HBASE-10569
 URL: https://issues.apache.org/jira/browse/HBASE-10569
 Project: HBase
  Issue Type: Improvement
  Components: master, Region Assignment
Reporter: Jimmy Xiang
Assignee: Jimmy Xiang
 Fix For: 0.99.0

 Attachments: Co-locateMetaAndMasterHBASE-10569.pdf, 
 hbase-10569_v1.patch, hbase-10569_v2.patch, hbase-10569_v3.1.patch, 
 hbase-10569_v3.patch


 I was thinking simplifying/improving the region assignments. The first step 
 is to co-locate the meta and the master as many people agreed on HBASE-5487.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10985) Decouple Split Transaction from Zookeeper

2014-04-15 Thread Mikhail Antonov (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969887#comment-13969887
 ] 

Mikhail Antonov commented on HBASE-10985:
-

This patch also somewhat depends on HBASE-10915 (consensus infra).

 Decouple Split Transaction from Zookeeper
 -

 Key: HBASE-10985
 URL: https://issues.apache.org/jira/browse/HBASE-10985
 Project: HBase
  Issue Type: Sub-task
  Components: regionserver, Zookeeper
Reporter: Sergey Soldatov
 Attachments: HBASE-10985.patch


 As part of  HBASE-10296 SplitTransaction should be decoupled from Zookeeper. 
 This is an initial patch for review. At the moment the consensus provider  
 placed directly to SplitTransaction to minimize affected code. In the ideal 
 world it should be done in HServer.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10845) Memstore snapshot size isn't updated in DefaultMemStore#rollback()

2014-04-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969888#comment-13969888
 ] 

Hudson commented on HBASE-10845:


SUCCESS: Integrated in HBase-TRUNK #5086 (See 
[https://builds.apache.org/job/HBase-TRUNK/5086/])
HBASE-10845 Memstore snapshot size isn't updated in DefaultMemStore#rollback() 
(tedyu: rev 1587614)
* 
/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/DefaultMemStore.java
* 
/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java
* 
/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/FaultyHLog.java


 Memstore snapshot size isn't updated in DefaultMemStore#rollback()
 --

 Key: HBASE-10845
 URL: https://issues.apache.org/jira/browse/HBASE-10845
 Project: HBase
  Issue Type: Bug
Reporter: Ted Yu
Assignee: Ted Yu
 Fix For: 0.99.0, 0.94.19, 0.98.2, 0.96.3

 Attachments: 10845-0.94.txt, 10845-0.96.addendum, 10845-0.98.txt, 
 10845-v1.txt, 10845-v2.txt, 10845-v3.txt, 10845-v4.txt


 In DefaultMemStore#rollback() :
 {code}
  if (found != null  found.getMvccVersion() == kv.getMvccVersion()) {
this.snapshot.remove(kv);
  }
 {code}
 this.snapshotSize should be updated in case of rollback.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (HBASE-10987) Increase timeout in TestZKLeaderManager.testLeaderSelection

2014-04-15 Thread Lars Hofhansl (JIRA)
Lars Hofhansl created HBASE-10987:
-

 Summary: Increase timeout in 
TestZKLeaderManager.testLeaderSelection
 Key: HBASE-10987
 URL: https://issues.apache.org/jira/browse/HBASE-10987
 Project: HBase
  Issue Type: Bug
  Components: test
Reporter: Lars Hofhansl
Assignee: Lars Hofhansl
Priority: Minor


In 0.94 we wait 2s find the current leader. In 0.96 and later we wait for 10s.
The test just failed:
{code}
Error Message

Leader should exist

Stacktrace

java.lang.AssertionError: Leader should exist
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertNotNull(Assert.java:621)
at 
org.apache.hadoop.hbase.zookeeper.TestZKLeaderManager.testLeaderSelection(TestZKLeaderManager.java:148)
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10987) Increase timeout in TestZKLeaderManager.testLeaderSelection

2014-04-15 Thread Lars Hofhansl (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Hofhansl updated HBASE-10987:
--

Attachment: 10987.txt

Used all my software development powers to create this one-of-a-kind patch.

 Increase timeout in TestZKLeaderManager.testLeaderSelection
 ---

 Key: HBASE-10987
 URL: https://issues.apache.org/jira/browse/HBASE-10987
 Project: HBase
  Issue Type: Bug
  Components: test
Reporter: Lars Hofhansl
Assignee: Lars Hofhansl
Priority: Minor
 Fix For: 0.94.19

 Attachments: 10987.txt


 In 0.94 we wait 2s find the current leader. In 0.96 and later we wait for 10s.
 The test just failed:
 {code}
 Error Message
 Leader should exist
 Stacktrace
 java.lang.AssertionError: Leader should exist
   at org.junit.Assert.fail(Assert.java:88)
   at org.junit.Assert.assertTrue(Assert.java:41)
   at org.junit.Assert.assertNotNull(Assert.java:621)
   at 
 org.apache.hadoop.hbase.zookeeper.TestZKLeaderManager.testLeaderSelection(TestZKLeaderManager.java:148)
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10987) Increase timeout in TestZKLeaderManager.testLeaderSelection

2014-04-15 Thread Lars Hofhansl (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969897#comment-13969897
 ] 

Lars Hofhansl commented on HBASE-10987:
---

Simple timeout change. Going to commit.

 Increase timeout in TestZKLeaderManager.testLeaderSelection
 ---

 Key: HBASE-10987
 URL: https://issues.apache.org/jira/browse/HBASE-10987
 Project: HBase
  Issue Type: Bug
  Components: test
Reporter: Lars Hofhansl
Assignee: Lars Hofhansl
Priority: Minor
 Fix For: 0.94.19

 Attachments: 10987.txt


 In 0.94 we wait 2s find the current leader. In 0.96 and later we wait for 10s.
 The test just failed:
 {code}
 Error Message
 Leader should exist
 Stacktrace
 java.lang.AssertionError: Leader should exist
   at org.junit.Assert.fail(Assert.java:88)
   at org.junit.Assert.assertTrue(Assert.java:41)
   at org.junit.Assert.assertNotNull(Assert.java:621)
   at 
 org.apache.hadoop.hbase.zookeeper.TestZKLeaderManager.testLeaderSelection(TestZKLeaderManager.java:148)
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (HBASE-10987) Increase timeout in TestZKLeaderManager.testLeaderSelection

2014-04-15 Thread Lars Hofhansl (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-10987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Hofhansl updated HBASE-10987:
--

Fix Version/s: 0.94.19

 Increase timeout in TestZKLeaderManager.testLeaderSelection
 ---

 Key: HBASE-10987
 URL: https://issues.apache.org/jira/browse/HBASE-10987
 Project: HBase
  Issue Type: Bug
  Components: test
Reporter: Lars Hofhansl
Assignee: Lars Hofhansl
Priority: Minor
 Fix For: 0.94.19

 Attachments: 10987.txt


 In 0.94 we wait 2s find the current leader. In 0.96 and later we wait for 10s.
 The test just failed:
 {code}
 Error Message
 Leader should exist
 Stacktrace
 java.lang.AssertionError: Leader should exist
   at org.junit.Assert.fail(Assert.java:88)
   at org.junit.Assert.assertTrue(Assert.java:41)
   at org.junit.Assert.assertNotNull(Assert.java:621)
   at 
 org.apache.hadoop.hbase.zookeeper.TestZKLeaderManager.testLeaderSelection(TestZKLeaderManager.java:148)
 {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10915) Decouple region closing from ZooKeeper

2014-04-15 Thread Konstantin Boudnik (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969914#comment-13969914
 ] 

Konstantin Boudnik commented on HBASE-10915:


A respectful nudge to reviewers: this patch is pretty fundamental for the rest 
of separation work as it introduces the consensus factory, etc. Without it in 
the source base all consequent patches either need to be applied on top of this 
one, or include the same bits just to be self-sufficient.

Is there anything we can do to speed this one's acceptance? Thanks!

 Decouple region closing from ZooKeeper
 --

 Key: HBASE-10915
 URL: https://issues.apache.org/jira/browse/HBASE-10915
 Project: HBase
  Issue Type: Sub-task
  Components: Zookeeper
Reporter: Mikhail Antonov
Assignee: Mikhail Antonov
 Attachments: HBASE-10915.patch, HBASE-10915.patch, HBASE-10915.patch, 
 HBASE-10915.patch, HBASE-10915.patch, HBASE-10915.patch, HBASE-10915.patch


 Decouple CloseRegionHandler class and code using it (HRegionServer, 
 ProtobufUtil) from ZK API.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-7544) Transparent table/CF encryption

2014-04-15 Thread Andrew Purtell (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-7544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969917#comment-13969917
 ] 

Andrew Purtell commented on HBASE-7544:
---

For an upcoming talk on security features I went back and looked at the impact 
of WAL encryption on more recent JVMs and after the changes to the WAL 
threading model that went in to 0.98+. I had to resort to a dual core mobile 
CPU with hyperthreading from ~2010 (with cpufreq locked at max) at the moment 
since Amazon HVMs don't give access to perf hw registers, but I plan to retest 
on bare Haswell server hardware. 

Three runs averaged, HLogPerformanceEvaluation -keySize 50 -valueSize 100 
-threads 100 -iterations 100 ( -encryption AES )
VM flags: -XX:+UseG1GC -XX:+UseAES -XX:+UseAESIntrinsics (AES flags where 
supported)

||Test||Throughput ops/sec||Total cycles||Insns per cycle||
|Oracle Java 1.7.0_45-b18 - None|52658.302|8878179986750|0.47|
|Oracle Java 1.7.0_45-b18 - AES WAL encryption|48045.834|9911748458387|0.57|
|OpenJDK 1.8.0_20-b09 - None|54874.125|8662634367005|0.46|
|OpenJDK 1.8.0_20-b09 - AES WAL encryption|50659.507|9668111259270|0.61|

What is interesting are the relative differences in later test cases from the 
first test case. Though there is more work per edit to do with encryption 
enabled by definition, for this microbenchmark the throughput of 8u20 with WAL 
encryption and AES intrinsics enabled is only ~4% off from 7u45 with no WAL 
encryption because of native code generation improvements on AES-NI capable 
hardware. Ops/sec measurements vary ~1.5% from run to run.

 Transparent table/CF encryption
 ---

 Key: HBASE-7544
 URL: https://issues.apache.org/jira/browse/HBASE-7544
 Project: HBase
  Issue Type: New Feature
  Components: HFile, io
Reporter: Andrew Purtell
Assignee: Andrew Purtell
 Fix For: 0.98.0

 Attachments: 7544-addendum-1.patch, 7544-final.patch, 7544.patch, 
 7544.patch, 7544.patch, 7544.patch, 7544.patch, 7544.patch, 7544p1.patch, 
 7544p1.patch, 7544p2.patch, 7544p2.patch, 7544p3.patch, 7544p3.patch, 
 7544p4.patch, historical-7544.patch, historical-7544.pdf, 
 historical-shell.patch, latency-single.7544.xlsx


 Introduce transparent encryption of HBase on disk data.
 Depends on a separate contribution of an encryption codec framework to Hadoop 
 core and an AES-NI (native code) codec. This is work done in the context of 
 MAPREDUCE-4491 but I'd gather there will be additional JIRAs for common and 
 HDFS parts of it.
 Requirements:
 - Transparent encryption at the CF or table level
 - Protect against all data leakage from files at rest
 - Two-tier key architecture for consistency with best practices for this 
 feature in the RDBMS world
 - Built-in key management
 - Flexible and non-intrusive key rotation
 - Mechanisms not exposed to or modifiable by users
 - Hardware security module integration (via Java KeyStore)
 - HBCK support for transparently encrypted files (+ plugin architecture for 
 HBCK)
 Additional goals:
 - Shell support for administrative functions
 - Avoid performance impact for the null crypto codec case
 - Play nicely with other changes underway: in HFile, block coding, etc.
 We're aiming for rough parity with Oracle's transparent tablespace encryption 
 feature, described in 
 http://www.oracle.com/technetwork/database/owp-security-advanced-security-11gr-133411.pdf
  as
 {quote}
 “Transparent Data Encryption uses a 2-tier key architecture for flexible and 
 non-intrusive key rotation and least operational and performance impact: Each 
 application table with at least one encrypted column has its own table key, 
 which is applied to all encrypted columns in that table. Equally, each 
 encrypted tablespace has its own tablespace key. Table keys are stored in the 
 data dictionary of the database, while tablespace keys are stored in the 
 header of the tablespace and additionally, the header of each underlying OS 
 file that makes up the tablespace.  Each of these keys is encrypted with the 
 TDE master encryption key, which is stored outside of the database in an 
 external security module: either the Oracle Wallet (a PKCS#12 formatted file 
 that is encrypted using a passphrase supplied either by the designated 
 security administrator or DBA during setup),  or a Hardware Security Module 
 (HSM) device for higher assurance […]”
 {quote}
 Further design details forthcoming in a design document and patch as soon as 
 we have all of the clearances in place.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


  1   2   3   >