This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

intern lock string, log number of rows in bad columns

  • Loading branch information...
1 parent de53bae commit 1977ce190ed2ceccba87c5a05341f4771878f48e @tjake committed Aug 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/lucandra/cluster/CassandraIndexManager.java
@@ -319,7 +319,7 @@ private synchronized ShardInfo getShardInfo(String indexName, boolean force) thr
}
}
- synchronized (indexName)
+ synchronized (indexName.intern())
{
ByteBuffer key = CassandraUtils.hashKeyBytes(indexName.getBytes("UTF-8"), CassandraUtils.delimeterBytes,
@@ -361,7 +361,7 @@ private synchronized ShardInfo getShardInfo(String indexName, boolean force) thr
}
catch(NumberFormatException e)
{
- logger.warn("invalid shard name encountered: "+shardStr+" "+c);
+ logger.warn("invalid shard name encountered: "+shardStr+" "+c.getSubColumns().size());
continue;
}

0 comments on commit 1977ce1

Please sign in to comment.