No way to do that via Thrift I’m afraid, nor will there be one. Sorry.

-- 
AY

On 28 September 2016 at 16:43:58, Roman Bielik 
(roman.bie...@openmindnetworks.com) wrote:

Hi,  

in CQL it is possible to create a table with explicit ID: CREATE TABLE ...  
WITH ID='xyz'.  

Is something like this possible via Thrift interface?  
There is an int32 "id" field in CfDef, but it has no effect on the table ID.  

My problem is, that concurrent create table (add_column_family) requests  
for the same table name result in clash with somewhat unpredictable  
behavior.  

This problem was reported in:  
https://issues.apache.org/jira/browse/CASSANDRA-9933  

and seems to be related to changes from ticket:  
https://issues.apache.org/jira/browse/CASSANDRA-5202  

A workaround for me could be using the same ID in create table, however I'm  
using Thrift interface only.  

Thank you.  
Regards,  
Roman  

--  

<http://www.openmindnetworks.com>  
<https://www.linkedin.com/company/openmind-networks>  
<https://twitter.com/Openmind_Ntwks> <http://www.openmindnetworks.com>  

Reply via email to