Skip to content

Commit 3042d7c

Browse files
author
Tom May
committed
Cassandra logs entire blobKey instead of just the blobName.
1 parent 60295ab commit 3042d7c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

plugins/cassandra/src/main/java/org/elasticsearch/cassandra/blobstore/AbstractCassandraBlobContainer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public AbstractCassandraBlobContainer(BlobPath path, CassandraBlobStore blobStor
7171
}
7272

7373
@Override public boolean blobExists(String blobName) {
74-
logger.debug("TODO blobExists blobName={}", blobName);
74+
logger.debug("TODO blobExists blobKey={}", blobKey(blobName));
7575
try {
7676
Cassandra.Client client =
7777
CassandraClientFactory.getCassandraClient();
@@ -91,7 +91,7 @@ public AbstractCassandraBlobContainer(BlobPath path, CassandraBlobStore blobStor
9191
}
9292

9393
@Override public boolean deleteBlob(String blobName) throws IOException {
94-
logger.debug("deleteBlob blobName={}", blobName);
94+
logger.debug("deleteBlob blobKey={}", blobKey(blobName));
9595
Cassandra.Client client =
9696
CassandraClientFactory.getCassandraClient();
9797
try {
@@ -115,7 +115,7 @@ public AbstractCassandraBlobContainer(BlobPath path, CassandraBlobStore blobStor
115115
}
116116

117117
@Override public void readBlob(final String blobName, final ReadBlobListener listener) {
118-
logger.debug("readBlob blobName={}", blobName);
118+
logger.debug("readBlob blobKey={}", blobKey(blobName));
119119
blobStore.executor().execute(new Runnable() {
120120
@Override public void run() {
121121
Cassandra.Client client = null;
@@ -145,13 +145,13 @@ private void readBlob(Cassandra.Client client, String blobName, ReadBlobListener
145145
ConsistencyLevel.QUORUM);
146146
Column column = columnOrSuperColumn.getColumn();
147147
byte[] blobData = column.getValue();
148-
logger.debug("Read {}, {} bytes", blobName, blobData.length);
148+
logger.debug("Read {}, {} bytes", blobKey(blobName), blobData.length);
149149
listener.onPartial(blobData, 0, blobData.length);
150150
listener.onCompleted();
151151
}
152152

153153
@Override public ImmutableMap<String, BlobMetaData> listBlobsByPrefix(@Nullable String blobNamePrefix) throws IOException {
154-
logger.debug("listBlobsByPrefix blobNamePrefix={}", blobNamePrefix);
154+
logger.debug("listBlobsByPrefix blobNamePrefix={}", blobKey(blobNamePrefix));
155155

156156
List<ColumnOrSuperColumn> columns;
157157
Cassandra.Client client = CassandraClientFactory.getCassandraClient();

plugins/cassandra/src/main/java/org/elasticsearch/cassandra/blobstore/CassandraImmutableBlobContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public CassandraImmutableBlobContainer(BlobPath path, CassandraBlobStore blobSto
6464
blobStore.executor().execute(new Runnable() {
6565
@Override public void run() {
6666
try {
67-
logger.debug("writeBlob blobName={}, sizeInBytes={}", blobName, sizeInBytes);
67+
logger.debug("writeBlob blobKey={}, sizeInBytes={}", blobKey(blobName), sizeInBytes);
6868
Cassandra.Client client =
6969
CassandraClientFactory.getCassandraClient();
7070
try {

0 commit comments

Comments
 (0)