Skip to content

Commit 7e90b70

Browse files
committed
some logs
1 parent 6a8b390 commit 7e90b70

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Storages/StorageReplicatedMergeTree.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8123,7 +8123,13 @@ void StorageReplicatedMergeTree::exportPartitionToTable(const PartitionCommand &
81238123
if (zookeeper->tryGet(fs::path(partition_exports_path) / "metadata.json", metadata_json))
81248124
{
81258125
const auto manifest = ExportReplicatedMergeTreePartitionManifest::fromJsonString(metadata_json);
8126-
if (static_cast<time_t>(manifest.create_time + manifest.ttl_seconds) < time(nullptr))
8126+
8127+
const auto now = time(nullptr);
8128+
const auto expiration_time = manifest.create_time + manifest.ttl_seconds;
8129+
8130+
LOG_INFO(log, "Export with key {} has expiration time {}, now is {}", export_key, expiration_time, now);
8131+
8132+
if (static_cast<time_t>(expiration_time) < now)
81278133
{
81288134
has_expired = true;
81298135
}

0 commit comments

Comments
 (0)