Updated Branches:
  refs/heads/cassandra-1.1 487c9168f -> 72dcc298d
  refs/heads/trunk f8129b435 -> 15e3f142a


merge from 1.1


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/15e3f142
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/15e3f142
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/15e3f142

Branch: refs/heads/trunk
Commit: 15e3f142a1dedacba7d4252051b1c5827867ffd6
Parents: f8129b4 72dcc29
Author: Jonathan Ellis <[email protected]>
Authored: Fri Oct 19 17:43:54 2012 -0500
Committer: Jonathan Ellis <[email protected]>
Committed: Fri Oct 19 17:43:54 2012 -0500

----------------------------------------------------------------------
 CHANGES.txt                                        |    1 +
 .../apache/cassandra/io/sstable/SSTableWriter.java |    3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/15e3f142/CHANGES.txt
----------------------------------------------------------------------
diff --cc CHANGES.txt
index f15e198,8822c3b..9fbccb0
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@@ -1,37 -1,5 +1,38 @@@
 -1.1.7
 +1.2-beta2
 + * Sort commitlog segments for replay by id instead of mtime (CASSANDRA-4793)
 + * Make hint delivery asynchronous (CASSANDRA-4761)
 + * Pluggable Thrift transport factories for CLI and cqlsh (CASSANDRA-4609, 
4610)
 + * cassandra-cli: allow Double value type to be inserted to a column 
(CASSANDRA-4661)
 + * Add ability to use custom TServerFactory implementations (CASSANDRA-4608)
 + * optimize batchlog flushing to skip successful batches (CASSANDRA-4667)
 + * include metadata for system keyspace itself in schema tables 
(CASSANDRA-4416)
 + * add check to PropertyFileSnitch to verify presence of location for
 +   local node (CASSANDRA-4728)
 + * add PBSPredictor consistency modeler (CASSANDRA-4261)
 + * remove vestiges of Thrift unframed mode (CASSANDRA-4729)
 + * optimize single-row PK lookups (CASSANDRA-4710)
 + * adjust blockFor calculation to account for pending ranges due to node 
 +   movement (CASSANDRA-833)
 + * Change CQL version to 3.0.0 and stop accepting 3.0.0-beta1 (CASSANDRA-4649)
 + * (CQL3) Make prepared statement global instead of per connection 
 +   (CASSANDRA-4449)
 + * Fix scrubbing of CQL3 created tables (CASSANDRA-4685)
 + * (CQL3) Fix validation when using counter and regular columns in the same 
 +   table (CASSANDRA-4706)
 + * Fix bug starting Cassandra with simple authentication (CASSANDRA-4648)
 + * Add support for batchlog in CQL3 (CASSANDRA-4545, 4738)
 + * Add support for multiple column family outputs in CFOF (CASSANDRA-4208)
 + * Support repairing only the local DC nodes (CASSANDRA-4747)
 + * Use rpc_address for binary protocol and change default port (CASSANRA-4751)
 + * Fix use of collections in prepared statements (CASSANDRA-4739)
 + * Store more information into peers table (CASSANDRA-4351, 4814)
 + * Configurable bucket size for size tiered compaction (CASSANDRA-4704)
 + * Run leveled compaction in parallel (CASSANDRA-4310)
 + * Fix potential NPE during CFS reload (CASSANDRA-4786)
 + * Composite indexes may miss results (CASSANDRA-4796)
 + * Move consistency level to the protocol level (CASSANDRA-4734, 4824)
 +Merged from 1.1:
+  * fix indexing empty column values (CASSANDRA-4832)
   * allow JdbcDate to compose null Date objects (CASSANDRA-4830)
   * fix possible stackoverflow when compacting 1000s of sstables
     (CASSANDRA-4765)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/15e3f142/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java
----------------------------------------------------------------------
diff --cc src/java/org/apache/cassandra/io/sstable/SSTableWriter.java
index f243f3e,31b03b8..06e6826
--- a/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java
+++ b/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java
@@@ -123,10 -127,9 +123,9 @@@ public class SSTableWriter extends SSTa
      /**
       * Perform sanity checks on @param decoratedKey and @return the position 
in the data file before any data is written
       */
 -    private long beforeAppend(DecoratedKey<?> decoratedKey) throws IOException
 +    private long beforeAppend(DecoratedKey decoratedKey)
      {
-         assert decoratedKey != null : "Keys must not be null";
-         assert decoratedKey.key.remaining() > 0 : "Keys must not be empty";
+         assert decoratedKey != null : "Keys must not be null"; // empty keys 
ARE allowed b/c of indexed column values
          if (lastWrittenKey != null && lastWrittenKey.compareTo(decoratedKey) 
>= 0)
              throw new RuntimeException("Last written key " + lastWrittenKey + 
" >= current key " + decoratedKey + " writing into " + getFilename());
          return (lastWrittenKey == null) ? 0 : dataFile.getFilePointer();

Reply via email to