簡體   English   中英

如果實現了 JaegerTracing,Ceph RGW 無法上傳對象

[英]Ceph RGW unable to upload object if JaegerTracing is implemented

操作系統:ubuntu 18.04 ceph:octopus jaeger:master

當我在負責通過 RGW 將文件寫入 ceph 的函數中實現 jaegertracer 時,我無法上傳我的文件我收到此錯誤

Warning: failed to create container 'mycontainer': HTTPConnectionPool(host='localhost', port=8000): Max retries exceeded with url: /auth (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5076b7a990>: Failed to establish a new connection: [Errno 111] Connection refused',))

但是當我從代碼中刪除我的跟蹤器時,它會成功上傳文件

源代碼

void librados::IoCtxImpl::queue_aio_write(AioCompletionImpl *c)
{
    auto yaml = YAML::LoadFile("tracerConfig.yaml");
    auto config = jaegertracing::Config::parse(yaml);
    auto tracer=jaegertracing::Tracer::make(
        "Writing",
        config,
        jaegertracing::logging::consoleLogger()
    );
    opentracing::Tracer::InitGlobal(
        static_pointer_cast<opentracing::Tracer>(tracer)
    );
    auto span = opentracing::Tracer::Global()->StartSpan("Span1");
    get();
    ofstream file;
    file.open("/home/abhinav/Desktop/write.txt",std::ios::out | std::ios::app);
    file<<"Writing /src/librados/IoCtxImpl.cc 288.\n";
    file.close();
    std::scoped_lock l{aio_write_list_lock};
    ceph_assert(c->io == this);
    c->aio_write_seq = ++aio_write_seq;
    ldout(client->cct, 20) << "queue_aio_write " << this << " completion " << c
        << " write_seq " << aio_write_seq << dendl;
    aio_write_list.push_back(&c->aio_write_list_item);
    opentracing::Tracer::Global()->Close();
}

當我刪除跟蹤器時,它再次編譯正常

該問題與yaml文件解析有關

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM