summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-05-30 14:09:12 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2020-04-08 13:29:33 +0000
commit2b162d357a31a1fed4cee7e50355c15c31eb3fe2 (patch)
treeac46759cb4b1a0fdbbc3ed3aea6524df96cbb985 /searchcore
parentc3521884412e0b955da674a2ea86d0413a0c334c (diff)
Log when we actually remove.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/tests/proton/documentdb/lid_space_compaction/lid_space_compaction_test.cpp5
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/docstorevalidator.cpp4
2 files changed, 7 insertions, 2 deletions
diff --git a/searchcore/src/tests/proton/documentdb/lid_space_compaction/lid_space_compaction_test.cpp b/searchcore/src/tests/proton/documentdb/lid_space_compaction/lid_space_compaction_test.cpp
index 50d4106282c..64299c70588 100644
--- a/searchcore/src/tests/proton/documentdb/lid_space_compaction/lid_space_compaction_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/lid_space_compaction/lid_space_compaction_test.cpp
@@ -1,6 +1,4 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/log/log.h>
-LOG_SETUP("lid_space_compaction_test");
#include <vespa/searchcore/proton/server/i_disk_mem_usage_notifier.h>
#include <vespa/searchcore/proton/server/i_lid_space_compaction_handler.h>
@@ -15,6 +13,9 @@ LOG_SETUP("lid_space_compaction_test");
#include <vespa/searchlib/index/docbuilder.h>
#include <vespa/vespalib/gtest/gtest.h>
+#include <vespa/log/log.h>
+LOG_SETUP("lid_space_compaction_test");
+
using namespace document;
using namespace proton;
using namespace search::index;
diff --git a/searchcore/src/vespa/searchcore/proton/server/docstorevalidator.cpp b/searchcore/src/vespa/searchcore/proton/server/docstorevalidator.cpp
index b529b942664..db698745b6e 100644
--- a/searchcore/src/vespa/searchcore/proton/server/docstorevalidator.cpp
+++ b/searchcore/src/vespa/searchcore/proton/server/docstorevalidator.cpp
@@ -7,6 +7,9 @@
#include <vespa/document/fieldvalue/document.h>
#include <vespa/searchcore/proton/common/feedtoken.h>
+#include <vespa/log/log.h>
+LOG_SETUP(".server.docstorevalidator");
+
namespace proton {
DocStoreValidator::DocStoreValidator(IDocumentMetaStore &dms)
@@ -122,6 +125,7 @@ void DocStoreValidator::performRemoves(FeedHandler & feedHandler, const search::
assert(metaData.valid());
document::Document::UP document = store.read(lid, repo);
assert(document);
+ LOG(info, "Removing document with id %s and lid %ud with gid %s in bucket %s", document->getId().toString().c_str(), lid, metaData.gid.toString().c_str(), metaData.bucketId.toString().c_str());
std::unique_ptr<RemoveOperation> remove = std::make_unique<RemoveOperation>(metaData.bucketId, metaData.timestamp, document->getId());
feedHandler.performOperation(FeedToken::UP(), std::move(remove));
}