HBASE-1912 When adding a secondary index to an existing table, it will cause NPE during re-indexing

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@826468 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2009-10-18 16:31:26 +00:00
parent 9375e3c8b0
commit d4cf962c8a
2 changed files with 5 additions and 1 deletions

View File

@ -68,6 +68,9 @@ Release 0.21.0 - Unreleased
HBASE-1906 FilterList of prefix and columnvalue not working properly with HBASE-1906 FilterList of prefix and columnvalue not working properly with
deletes and multiple values deletes and multiple values
HBASE-1896 WhileMatchFilter.reset should call encapsulated filter reset HBASE-1896 WhileMatchFilter.reset should call encapsulated filter reset
HBASE-1912 When adding a secondary index to an existing table, it will
cause NPE during re-indexing (Mingjui Ray Liao via Andrew
Purtell)
IMPROVEMENTS IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable HBASE-1760 Cleanup TODOs in HTable

View File

@ -78,9 +78,10 @@ public class IndexSpecification implements Writable {
byte[][] additionalColumns, IndexKeyGenerator keyGenerator) { byte[][] additionalColumns, IndexKeyGenerator keyGenerator) {
this.indexId = indexId; this.indexId = indexId;
this.indexedColumns = indexedColumns; this.indexedColumns = indexedColumns;
this.additionalColumns = additionalColumns;
this.keyGenerator = keyGenerator; this.keyGenerator = keyGenerator;
this.makeAllColumns(); this.makeAllColumns();
this.additionalColumns = (additionalColumns == null)? new byte[0][0] :
additionalColumns;
} }
public IndexSpecification() { public IndexSpecification() {