[jira] [Created] (CASSANDRA-4042) add "caching" to CQL CF options

2012-03-13 Thread Pavel Yaskevich (Created) (JIRA)
add "caching" to CQL CF options
---

 Key: CASSANDRA-4042
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4042
 Project: Cassandra
  Issue Type: Bug
Affects Versions: 1.1.0
Reporter: Pavel Yaskevich
Assignee: Pavel Yaskevich
Priority: Minor


"Caching" option is missing from CQL ColumnFamily options.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (CASSANDRA-3933) ./bin/cqlsh `describe keyspace ` command doesn't work when ColumnFamily row_cache_provider wasn't specified.

2012-02-20 Thread Pavel Yaskevich (Created) (JIRA)
./bin/cqlsh `describe keyspace ` command doesn't work when 
ColumnFamily row_cache_provider wasn't specified.
--

 Key: CASSANDRA-3933
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3933
 Project: Cassandra
  Issue Type: Bug
Affects Versions: 1.0.7
Reporter: Pavel Yaskevich
Assignee: paul cannon
 Fix For: 1.0.8


I have created Keyspace and ColumnFamily using CLI

{noformat}
/bin/cassandra-cli --host localhost
Connected to: "Test Cluster" on localhost/9160
Welcome to Cassandra CLI version 1.0.7-SNAPSHOT

Type 'help;' or '?' for help.
Type 'quit;' or 'exit;' to quit.

[default@unknown] create keyspace ks;
f89384f0-5bd3-11e1--242d50cf1fff
Waiting for schema agreement...
... schemas agree across the cluster
[default@unknown] use ks;
Authenticated to keyspace: ks
[default@ks] create column family cf;
fc807690-5bd3-11e1--242d50cf1fff
Waiting for schema agreement...
... schemas agree across the cluster
[default@ks] quit;
{noformat}

and then I have tried to describe keyspace using CQLsh

{noformat}
./bin/cqlsh 
Connected to Test Cluster at localhost:9160.
[cqlsh 2.0.0 | Cassandra 1.0.7-SNAPSHOT | CQL spec 2.0.0 | Thrift protocol 
19.20.0]
Use HELP for help.
cqlsh> describe keyspace ks;

CREATE KEYSPACE ks WITH strategy_class = 'NetworkTopologyStrategy'
  AND strategy_options:datacenter1 = '1';

USE ks;

CREATE COLUMNFAMILY cf (
CfDef instance has no attribute 'row_cache_provider'
  KEY blob PRIMARY KEYcqlsh> 
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (CASSANDRA-3842) Make CLI `show schema` output data into the file as well is display it to user.

2012-02-02 Thread Pavel Yaskevich (Created) (JIRA)
Make CLI `show schema` output data into the file as well is display it to user.
---

 Key: CASSANDRA-3842
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3842
 Project: Cassandra
  Issue Type: Improvement
Reporter: Pavel Yaskevich
Assignee: Pavel Yaskevich
Priority: Minor
 Fix For: 1.0.8


Primary use-case for `show schema` is to persist current schema to load it 
later (possibly on the other machines), so if we output it into timestamped 
file this would make a good bonus in usability.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (CASSANDRA-3809) Show Index Options in CLI

2012-01-28 Thread Pavel Yaskevich (Created) (JIRA)
Show Index Options in CLI
-

 Key: CASSANDRA-3809
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3809
 Project: Cassandra
  Issue Type: Improvement
Reporter: Pavel Yaskevich
Assignee: Pavel Yaskevich
Priority: Minor
 Fix For: 1.0.8


It's useful to show actual index options if any on `describe ` or `show 
keyspaces`, that was already added to `show schema`.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (CASSANDRA-3794) Change ColumnFamily identifiers to be UUIDs instead of sequential Integers.

2012-01-26 Thread Pavel Yaskevich (Created) (JIRA)
Change ColumnFamily identifiers to be UUIDs instead of sequential Integers.
---

 Key: CASSANDRA-3794
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3794
 Project: Cassandra
  Issue Type: Improvement
  Components: Core
Reporter: Pavel Yaskevich
Assignee: Pavel Yaskevich
Priority: Minor
 Fix For: 1.2


Change ColumnFamily identifiers to be UUIDs instead of sequential Integers. 
Would be useful in the situation when nodes simultaneously trying to create 
ColumnFamilies.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (CASSANDRA-3691) LeveledCompactionStrategy is broken because of generation pre-allocation in LeveledManifest.

2012-01-03 Thread Pavel Yaskevich (Created) (JIRA)
LeveledCompactionStrategy is broken because of generation pre-allocation in 
LeveledManifest.


 Key: CASSANDRA-3691
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3691
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.1
Reporter: Pavel Yaskevich


LeveledManifest constructor has the following code:

{code}
for (int i = 0; i < generations.length; i++)
{
generations[i] = new ArrayList();
lastCompactedKeys[i] = new DecoratedKey(cfs.partitioner.getMinimumToken(), 
null);
}
{code}

But in the DecoratedKey constructor we have:

{code}
assert token != null && key != null && key.remaining() > 0;
{code}

so when you tried to create a CF with LeveledCompressionStrategy that will 
result in 

{noformat}
java.lang.RuntimeException: java.util.concurrent.ExecutionException: 
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at 
org.apache.cassandra.thrift.CassandraServer.applyMigrationOnStage(CassandraServer.java:865)
at 
org.apache.cassandra.thrift.CassandraServer.system_add_keyspace(CassandraServer.java:953)
at 
org.apache.cassandra.thrift.Cassandra$Processor$system_add_keyspace.process(Cassandra.java:4103)
at 
org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:3078)
at 
org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:188)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at 
org.apache.cassandra.thrift.CassandraServer.applyMigrationOnStage(CassandraServer.java:857)
... 7 more
Caused by: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
at 
org.apache.cassandra.config.CFMetaData.createCompactionStrategyInstance(CFMetaData.java:770)
at 
org.apache.cassandra.db.ColumnFamilyStore.(ColumnFamilyStore.java:209)
at 
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:300)
at 
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:281)
at org.apache.cassandra.db.Table.initCf(Table.java:339)
at org.apache.cassandra.db.Table.(Table.java:288)
at org.apache.cassandra.db.Table.open(Table.java:117)
at 
org.apache.cassandra.db.migration.AddKeyspace.applyModels(AddKeyspace.java:72)
at org.apache.cassandra.db.migration.Migration.apply(Migration.java:156)
at 
org.apache.cassandra.thrift.CassandraServer$2.call(CassandraServer.java:850)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
... 3 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at 
org.apache.cassandra.config.CFMetaData.createCompactionStrategyInstance(CFMetaData.java:752)
... 14 more
Caused by: java.lang.AssertionError
at org.apache.cassandra.db.DecoratedKey.(DecoratedKey.java:55)
at 
org.apache.cassandra.db.compaction.LeveledManifest.(LeveledManifest.java:79)
at 
org.apache.cassandra.db.compaction.LeveledManifest.create(LeveledManifest.java:85)
at 
org.apache.cassandra.db.compaction.LeveledCompactionStrategy.(LeveledCompactionStrategy.java:74)
... 19 more
ERROR 19:52:44,029 Fatal exception in thread Thread[MigrationStage:1,5,main]
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (CASSANDRA-3667) We need a way to deactivate row/key caching on a per-cf basis.

2011-12-23 Thread Pavel Yaskevich (Created) (JIRA)
We need a way to deactivate row/key caching on a per-cf basis.
--

 Key: CASSANDRA-3667
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3667
 Project: Cassandra
  Issue Type: Improvement
Reporter: Pavel Yaskevich
Assignee: Pavel Yaskevich


Initial idea would be to either have a boolean flag if we only want to allow 
disabling row cache, or some multi-value caches option that could be "none", 
"key_only", "row_only" or "all".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (CASSANDRA-3275) Make Cassandra compile under JDK 7

2011-09-29 Thread Pavel Yaskevich (Created) (JIRA)
Make Cassandra compile under JDK 7
--

 Key: CASSANDRA-3275
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3275
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Reporter: Pavel Yaskevich
Assignee: Pavel Yaskevich
 Fix For: 1.0.0


Currently system won't compile under JDK 7 because of errors in CQL component.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (CASSANDRA-3271) off-heap cache to use sun.misc.Unsafe instead of JNA

2011-09-28 Thread Pavel Yaskevich (Created) (JIRA)
off-heap cache to use sun.misc.Unsafe instead of JNA


 Key: CASSANDRA-3271
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3271
 Project: Cassandra
  Issue Type: Improvement
  Components: Core
Reporter: Pavel Yaskevich
Assignee: Pavel Yaskevich
Priority: Minor
 Fix For: 1.1


Instead of requiring JNA for off-heap caches we should try to use 
sun.misc.Unsafe.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira