Neda,

I have fixed the bug
https://git-wip-us.apache.org/repos/asf?p=incubator-blur.git;a=commit;h=6b89354578a4fd2cd41d074fecd879dc80d672d7
.

You can find the build in the CI server here:

https://builds.apache.org/job/Blur-master-jdk6/224/org.apache.blur$apache-blur/

Thanks for letting us know!

Aaron


On Mon, Apr 14, 2014 at 11:03 PM, Aaron McCurry <[email protected]> wrote:

> Neda,
>
> You have discovered a nasty bug in the controller.  I was able to
> reproduce it in a test using the minicluster and I working to resolve the
> bug.  Thanks for info!
>
> Aaron
>
>
> On Fri, Apr 11, 2014 at 5:29 PM, Aaron McCurry <[email protected]> wrote:
>
>> Neda,
>>
>> I'm sorry, I just realized that I pointed you to that version in you last
>> email.  So you are likely on 0.2.2.
>>
>> I see that a NPE can occur on line 1083 on the controller.
>>
>>
>> https://git-wip-us.apache.org/repos/asf?p=incubator-blur.git;a=blob;f=blur-core/src/main/java/org/apache/blur/thrift/BlurControllerServer.java;h=06f5ea3575c0b5797ff78ea65add62717edbd034;hb=b5eb4795d18d80c58fe25e863564548063b16921#l1074
>>
>> 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.
>>
>> Aaron
>>
>>
>>
>> On Fri, Apr 11, 2014 at 12:34 PM, Aaron McCurry <[email protected]>wrote:
>>
>>> 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.
>>>
>>> To check it out and compile yourself:
>>>
>>> git clone https://git-wip-us.apache.org/repos/asf/incubator-blur.git
>>> git checkout apache-blur-0.2
>>> mvn install -DskipTests -Dhadoop1
>>>
>>> You could also grab the latest build binaries from Jenkins Apache CI
>>> server:
>>>
>>> https://builds.apache.org/job/Blur-master-jdk6/
>>>
>>> Download links:
>>>
>>>
>>> https://builds.apache.org/job/Blur-master-jdk6/216/org.apache.blur$apache-blur/
>>>
>>> Let us know if you have any other questions or issues.
>>>
>>> Aaron
>>>
>>>
>>> On Fri, Apr 11, 2014 at 11:28 AM, Neda Grbic <[email protected]>wrote:
>>>
>>>> Hi!
>>>>
>>>> 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.
>>>>
>>>> Any ideas?
>>>>
>>>> Thanks,
>>>> Neda
>>>>
>>>
>>>
>>
>

Reply via email to