Commit 62b6db56 authored by groot's avatar groot
Browse files

add more logs

parent 8862756d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -695,7 +695,6 @@ DBImpl::MergeFiles(const std::string& table_id, const meta::DateT& date, const m
        auto file_schema = file;
        file_schema.file_type_ = meta::TableFileSchema::TO_DELETE;
        updated.push_back(file_schema);
        ENGINE_LOG_DEBUG << "Merging file " << file_schema.file_id_;
        index_size = index->Size();

        if (index_size >= file_schema.index_file_size_) {
+2 −0
Original line number Diff line number Diff line
@@ -472,6 +472,8 @@ ExecutionEngineImpl::Merge(const std::string& location) {
        auto status = index_->Add(file_index->Count(), file_index->GetRawVectors(), file_index->GetRawIds());
        if (!status.ok()) {
            ENGINE_LOG_ERROR << "Failed to merge: " << location << " to: " << location_;
        } else {
            ENGINE_LOG_DEBUG << "Finish merge index file: " << location;
        }
        return status;
    } else {
+5 −0
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@

#include "server/grpc_impl/request/CmdRequest.h"
#include "scheduler/SchedInst.h"
#include "utils/Log.h"
#include "utils/TimeRecorder.h"

#include <memory>

@@ -35,6 +37,9 @@ CmdRequest::Create(const std::string& cmd, std::string& result) {

Status
CmdRequest::OnExecute() {
    std::string hdr = "CmdRequest(cmd=" + cmd_ + ")";
    TimeRecorder rc(hdr);

    if (cmd_ == "version") {
        result_ = MILVUS_VERSION;
    } else if (cmd_ == "tasktable") {
+2 −1
Original line number Diff line number Diff line
@@ -39,7 +39,8 @@ CountTableRequest::Create(const std::string& table_name, int64_t& row_count) {
Status
CountTableRequest::OnExecute() {
    try {
        TimeRecorder rc("CountTableRequest");
        std::string hdr = "CountTableRequest(table=" + table_name_ + ")";
        TimeRecorder rc(hdr);

        // step 1: check arguments
        auto status = ValidationUtil::ValidateTableName(table_name_);
+2 −1
Original line number Diff line number Diff line
@@ -44,7 +44,8 @@ CreateIndexRequest::Create(const ::milvus::grpc::IndexParam* index_param) {
Status
CreateIndexRequest::OnExecute() {
    try {
        TimeRecorder rc("CreateIndexRequest");
        std::string hdr = "CreateIndexRequest(table=" + index_param_->table_name() + ")";
        TimeRecorder rc(hdr);

        // step 1: check arguments
        std::string table_name_ = index_param_->table_name();
Loading