1

操作系统:ubuntu 18.04 ceph:章鱼jaeger:大师

当我在负责通过 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();
}

当我删除示踪剂时,它再次编译正常

4

1 回答 1

0

该问题与yaml文件解析有关

于 2020-04-27T21:11:21.410 回答