[ 
https://issues.apache.org/jira/browse/BLUR-289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13806246#comment-13806246
 ] 

Rahul Challapalli commented on BLUR-289:
----------------------------------------

Hi Aaron,

Sorry for the late reply. I added the commit from apache-blur-0.2 to 0.30.

For storing data, I did not understand the json part. Can't we just use the 
below code?

      TSerializer serializer = new TSerializer(new TBinaryProtocol.Factory());
      byte[] bytes = serializer.serialize(tableDescriptor);
      
      TDeserializer deserializer = new TDeserializer(new 
TBinaryProtocol.Factory());
      TableDescriptor td = new TableDescriptor();
      deserializer.deserialize(td, bytes);

Also if we store the whole serialized object under the table node, how would we 
register watchers for individual fields of the object? (enabled, 
tableproperties, etc)?

And should we not add another task for converting existing tables to this 
format? How would we trigger this conversion?

- Rahul

> Table Properties are not being persisted to zookeeper
> -----------------------------------------------------
>
>                 Key: BLUR-289
>                 URL: https://issues.apache.org/jira/browse/BLUR-289
>             Project: Apache Blur
>          Issue Type: Bug
>          Components: Blur
>    Affects Versions: 0.3.0, 0.2.1
>            Reporter: Rahul Challapalli
>            Priority: Blocker
>             Fix For: 0.2.1
>
>         Attachments: persist_tableproperties.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to