Coder Social home page Coder Social logo

tair's Issues

用tair_client_api编程,程序运行完毕退出时报错!

用tair_client_api�编程,程序运行完毕退出时报错!
代码如下:

#include
#include <boost/timer.hpp>
#include <boost/progress.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/scoped_ptr.hpp>

#include "Tair/include/tair_client_api.hpp"

using namespace std;
using namespace tair;
using namespace boost;

int main()
{
cout << "Hello World!" << endl;

boost::scoped_ptr<tair_client_api> tair_client(new tair_client_api);
tair_client->setup_cache(0);
tair_client->set_light_mode();
tair_client->set_thread_count(4);
bool bOk = tair_client->startup("192.168.100.160:5198", nullptr, "group_1");
if(LIKELY(bOk))
{
    data_entry key("k1");
    data_entry value("v1");

    int ret = 0;
    boost::progress_timer t;
    for(int i = 0; i < 10; ++i)
    {
        ret = tair_client->put(0, key, value, 0, 0);
        if(UNLIKELY(ret))
        {
            cout <<"Put Error"<<endl;
        }
    }

}else
{
    cout << "Tair Start Error"<<endl;
}

tair_client->flush_mmt();
tair_client->close();

return 0;

}

程序正确运行完毕,退出时报错如下:

The Inferior stopped because it received a signal from the operating system.
Signal name :SIGABRT
Signal meaning: Aborted

求解!
十分感谢!

编译不过

src/storage/ldb/leveldb/ax_port_leveldb.m4:15: the top level
configure.ac:113: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
ax_boost.m4:43: AX_BOOST is expanded from...
configure.ac:113: the top level
configure.ac:3: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
configure.ac:3: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.ac:123: error: required file 'test/Makefile.in' not found
configure.ac:123: error: required file 'test/interface_test/Makefile.in' not found
configure.ac:123: error: required file 'test/unit_test/Makefile.in' not found
configure.ac:123: error: required file 'test/statistics_test/Makefile.in' not found
configure.ac:123: error: required file 'test/retry_all_test/Makefile.in' not found
Makefile.am:2: error: required directory ./test does not exist
Makefile.am:5: error: required directory ./test does not exist

Go client

Are there any plans on supplying a Go client for it?

Rdb engine

Does tair support rdb egine in its open source version?Does it have any support for collection-type data structure in other engines?

wiki文档内容没有协议部分,应该在哪里提问?

看了一下客户端的代码是用httpclient实现的,但是提交部分的编码方式没有文档,Wiki也只有一些基础的使用问题,并没有深入的这部分的文档,如果有这部分的文档需求应该取哪里查看呢?

Tair的心跳协议

稍稍看了下,Tair里面的ConfigServer处理正常的包和心跳包用了不同的端口。一般来说,在分布式系统里,心跳连接和业务连接一般是共享的吧?否则业务连接断掉的情况下,心跳连接仍然正常的话,心跳的意义何在?

启动速度慢

我们用的tair,两年没有重启了,然后重启需要半个小时,用的ldb,调查了下,看起来是ldb的manifect文件太大了,最近的版本能解决下这个问题么?例如ldb instance并行开启,或者什么的?

CentOS8 编译libeasy失败

easy_uthread.c:251:17: error: ‘SIG_BLOCK’ undeclared (first use in this function); did you mean ‘F_LOCK’?
sigprocmask(SIG_BLOCK, &zero, &t->context.uc_sigmask);
^~~~~~~~~

求解决方案,谢谢

上层的分布式策略

上层的分布式策略较粗糙,在数据量很大的时候机器间的数据通信量较大。是否支持提交补丁?

关于tair3.2.4

hi team!
我们现在正在使用tair2.3.x版本,并且部署到了产线,想问问若升级到tair3.2.4版本,底层协议与是否是兼容老版本,我试了试tair2.3.x的tairclient连接到tair3.2.4的configserver,目前是没问题的,有没有需要注意的地方?这方面我看文档没有这么阐述。另外这两个版本的差别有多大?
感谢,望回复。

some changes fot tair to compile on ubuntu 14.04

some changes for tair to compile on ubuntu 14.04

tbsys realted changes

line 323:
CLogger::CLogger& CLogger::getLogger() => CLogger& CLogger::getLogger()

tair related changes

mainly add boost related flags for LDADD

src/mdb/Makefile.am => add -lboost_system
src/client/Makefile.am => add -lboost_system
src/dataserver/Makefile.am => add -lboost_system -lboost_thread
src/invalserver/Makefile.am => add -lboost_system -lboost_thread
src/tools/Makefile.am => add -lboost_system -lboost_thread

tair 有支持批量导入吗?

tair 有支持批量导入吗? 指标数据,一般都非常大,一般离线算好,提供线上使用,一般都是几亿条,insert 操作太慢,现在只能选择hbase ,生成hfile,批量导入。

tblog.h encoding

该头文件注释乱码(从老版本就乱,这个还有正确的编辑版本么)

there are encoding problems in "tblog.h". Could you fix them?

编译不成功

经查看,是libeasy编译有问题,没有生成libeasy库。

log bug

      log_error("dataserver: %s UP, accept strategy is: %d illegal.",
          p_server->group_info_data->get_accept_strategy(), tbsys::CNetUtil::addrToString(req->server_id).c_str());
      server_info_rw_locker.unlock();
      group_info_rw_locker.unlock();
      return;

关于client的tair_client_api_impl

想了解一下关于tair_client_api_impl提供的接口,是线程安全的吗?例如多个并发调用put等接口,因为我想利用这个impl来开发server.

哪里找文档呢?

上一个issue被关闭说是会逐步更新文档到这里。但是至今wiki只有简单的介绍,而且淘宝code上的页面早就无法打开,返回403 forbidden了。wiki的更新有时间表吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.