I've been trying to truncate table from my code. I did succeed in that, but if I try to add some data to it afterwards, I get NullPointerException at
stackTraceStr:java.lang.NullPointerException at org.apache.blur.thrift.BlurControllerServer.mutate(BlurControllerServer.java:1083) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606)
While truncating table, I tried fetching its descriptor before and using it afterwards when recreating, but same error. As far as I've seen, only restarting shard server helped. I'm using only one shard server when testing.
What version are you running? If it's the 0.2.0 release then it has a series of know bugs related to table name reuse. Truncate is basically dropping a table by it's name and recreating it. The bugs are related to a table name being reused. I would suggest that you run 0.2.2 which has not been released yet. It is code complete and has the the fixes for this problem.
I would suggest that you run code from the apache-blur-0.2 branch. The version will be 0.2.2 when released.
I will take a look at this and try to recreate the problem. I bet that it's a race problem after dropping and then creating a new table. If you put a sleep for a few seconds after creating the table does it still occur?
Thanks for the information on the bug. Sorry for the earlier response, I should have looked at the stack trace more closely.
On Fri, Apr 11, 2014 at 12:34 PM, Aaron McCurry <[EMAIL PROTECTED]> wrote:
I'm sorry I wasn't available these days for more input. But you've concluded yourself all I could have told you :)
On 4/17/2014 2:26 PM, Aaron McCurry wrote:
NEW: Monitor These Apps!
Apache Lucene, Apache Solr and all other Apache Software Foundation projects and their respective logos are trademarks of the Apache Software Foundation.
Elasticsearch, Kibana, Logstash, and Beats are trademarks of Elasticsearch BV, registered in the U.S. and in other countries. This site and Sematext Group is in no way affiliated with Elasticsearch BV.
Service operated by Sematext