Skip to content

Commit

Permalink
Revert "Add debug logs for Lucene query execution #2831"
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottDugas authored Sep 11, 2024
1 parent d7bee40 commit 8c94566
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,6 @@ private <M extends Message> RecordCursor<QueryResult> executeUsingRemoteFetch(@N
@Override
public <M extends Message> RecordCursor<IndexEntry> executeEntries(@Nonnull FDBRecordStoreBase<M> store, @Nonnull EvaluationContext context,
@Nullable byte[] continuation, @Nonnull ExecuteProperties executeProperties) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(KeyValueLogMessage.build("executeEntries")
.addKeyAndValue(LogMessageKeys.INDEX_NAME, indexName)
.toString());
}

final RecordMetaData metaData = store.getRecordMetaData();
final Index index = metaData.getIndex(indexName);
final IndexScanBounds scanBounds = scanParameters.bind(store, index, context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
import com.apple.foundationdb.record.PlanHashable;
import com.apple.foundationdb.record.PlanSerializable;
import com.apple.foundationdb.record.PlanSerializationContext;
import com.apple.foundationdb.record.logging.KeyValueLogMessage;
import com.apple.foundationdb.record.logging.LogMessageKeys;
import com.apple.foundationdb.record.metadata.Index;
import com.apple.foundationdb.record.planprotos.PIndexScanParameters;
import com.apple.foundationdb.record.planprotos.PLuceneScanQueryParameters;
Expand All @@ -47,8 +45,6 @@
import com.google.common.collect.ImmutableSet;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.Sort;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
Expand All @@ -62,7 +58,6 @@
@API(API.Status.UNSTABLE)
public class LuceneScanQueryParameters extends LuceneScanParameters implements PlanSerializable {
private static final ObjectPlanHash BASE_HASH = new ObjectPlanHash("Lucene-Scan-Query");
public static final Logger LOGGER = LoggerFactory.getLogger(LuceneScanQueryParameters.class);

@Nonnull
final LuceneQueryClause query;
Expand Down Expand Up @@ -141,13 +136,6 @@ public int planHash(@Nonnull PlanHashMode mode) {
@Nonnull
@Override
public LuceneScanQuery bind(@Nonnull FDBRecordStoreBase<?> store, @Nonnull Index index, @Nonnull EvaluationContext context) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(KeyValueLogMessage.build("LuceneScanQueryParameters binding")
.addKeyAndValue(LogMessageKeys.INDEX_NAME, index.getName())
.addKeyAndValue(LogMessageKeys.QUERY, this.query)
.toString());
}

final LuceneQueryClause.BoundQuery boundQuery = query.bind(store, index, context);
if (luceneQueryHighlightParameters != null) {
luceneQueryHighlightParameters.query = boundQuery.getLuceneQuery();
Expand Down

0 comments on commit 8c94566

Please sign in to comment.