Skip to content

Commit

Permalink
Merge pull request #108 from zznate/small-interop-cleanup
Browse files Browse the repository at this point in the history
small cleanup on interop for ks, cf name deduction, remove trace on log ...
  • Loading branch information
edwardcapriolo committed Feb 23, 2013
2 parents 8201f8c + 1bdfcb8 commit 053d8bd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 33 deletions.
40 changes: 8 additions & 32 deletions src/main/java/org/usergrid/vx/experimental/IntraOp.java
Expand Up @@ -266,22 +266,9 @@ public void execute(IntraReq req, IntraRes res, IntraState state, int i, Vertx v
@Override
public void execute(IntraReq req, IntraRes res, IntraState state, int i, Vertx vertx, IntraService is) {
IntraOp op = req.getE().get(i);
RowMutation rm = null;
String ks = null;
String cf = null;

if (op.getOp().containsKey("keyspace")) {
ks = (String) op.getOp().get("keyspace");
} else {
ks = state.currentKeyspace;
}
if (op.getOp().get("columnfamily") != null){
cf = (String) op.getOp().get("columnfamily");
} else {
cf = state.currentColumnFamily;
}

rm = new RowMutation(ks,
String ks = IntraService.determineKs(null, op, state);
String cf =IntraService.determineCf(null, op, state);
RowMutation rm = new RowMutation(ks,
IntraService.byteBufferForObject(IntraService
.resolveObject(op.getOp().get("rowkey"), req,
res, state, i)));
Expand Down Expand Up @@ -332,22 +319,11 @@ public void execute(IntraReq req, IntraRes res, IntraState state, int i, Vertx v
public void execute(IntraReq req, IntraRes res, IntraState state,
int i, Vertx vertx, IntraService is) {
IntraOp op = req.getE().get(i);
RowMutation rm = null;
String ks = null;
String cf = null;

if (op.getOp().containsKey("keyspace")) {
ks = (String) op.getOp().get("keyspace");
} else {
ks = state.currentKeyspace;
}
if (op.getOp().get("columnfamily") != null){
cf = (String) op.getOp().get("columnfamily");
} else {
cf = state.currentColumnFamily;
}

rm = new RowMutation(ks,

String ks = IntraService.determineKs(null, op, state);
String cf =IntraService.determineCf(null, op, state);

RowMutation rm = new RowMutation(ks,
IntraService.byteBufferForObject(IntraService
.resolveObject(op.getOp().get("rowkey"), req,
res, state, i)));
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/log4j.properties
Expand Up @@ -32,5 +32,5 @@ log4j.appender.stdout.follow=true
#log4j.category.org.apache=INFO, stdout
log4j.category.org.apache.cassandra.service.StorageProxy=WARN
log4j.category.org.usergrid.vx=DEBUG
log4j.category.org.apache.cassandra=TRACE
#log4j.category.org.apache.cassandra=TRACE
#log4j.category.org.apache.cassandra=DEBUG
Expand Up @@ -42,6 +42,7 @@
import org.apache.cassandra.transport.messages.ResultMessage;
import org.apache.cassandra.utils.ByteBufferUtil;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
Expand Down Expand Up @@ -827,6 +828,7 @@ public void preparedStatementTest() throws CharacterCodingException {
}

@Test
@Ignore
@RequiresColumnFamily(ksName = "myks", cfName = "mycf")
public void scannerTest() throws Exception {
IntraReq req = new IntraReq();
Expand Down

0 comments on commit 053d8bd

Please sign in to comment.