Christoph,
My code at this point is very simple and easy to see where it is failing. I put some cout<< lines in to trace where it is stopping:
Here is my code
client = new Thrift::Client(host,(int)port,1000,true);
cout<<"Checking if namespace exists"<<endl;
if (client->namespace_exists(NAMESPACE)==false)
{
cout<<"Creating namespace"<<endl;
client->namespace_create(NAMESPACE);
}
cout<<"Opening the name space"<<endl;
namespaceId = client->namespace_open(NAMESPACE);
cout<<"Droping table"<<endl;
client->drop_table(namespaceId,TABLENAME,true);
cout<<create table"<<endl;
client->create_table(namespaceId,TABLENAME,TABLECREATE);
cout<<"Open mutator"<<endl;
mutator = client->mutator_open(namespaceId,TABLENAME,0,0);
cout<<"Done opening mutator"<<endl;
The first time I ran it it failed on the if statement checking if the name space exists
1350396252 ERROR ThriftBroker : get_mutator (/root/src/hypertable/src/cc/ThriftBroker/ThriftBroker.cc:2322): Bad mutator id - 0
1350396259 ERROR ThriftBroker : TSocket::peek() recv() <Host: 127.0.0.1 Port: 56884>Connection reset by peer
1350396259 ERROR ThriftBroker : TThreadedServer client died: recv(): Connection reset by peer
I ran it a second time and it failed creating the table.
1350396307 ERROR ThriftBroker : TSocket::write_partial() send() <Host: 127.0.0.1 Port: 56885>Connection reset by peer
1350396307 ERROR ThriftBroker : TThreadedServer client died: write() send(): Connection reset by peer
As you can see it is very random in where it is failing. I checked my code and I never call the function, get_mutator.
Thanks