[
https://issues.apache.org/jira/browse/BLUR-441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14715257#comment-14715257
]
Tom Hood commented on BLUR-441:
-------------------------------
I attached the test program BlurMutationBug that demonstrates the issue. It
loops forever until it fails. This particular test program is only exercising
the REPLACE_ROW as opposed to the UPDATE_ROW where I have also seen the issue.
Before running the test, I create the table like this: blur create -t blurbug1
-c 1 -l hdfs://localhost:9000/blurbug1
Here's an example of what it looks like when it fails:
Added meta record to index 16338c52-d3c1-4d42-b7bb-597152e2fe01
Exception in thread "main" java.lang.IllegalStateException: corrupt row with
bad key(s) [fe17b01f-af87-4564-8b22-2105175542d7,
00113851-80a7-417b-bc68-a6a70ead9a80]
at bug.BlurMutationBug.checkForCorruption(BlurMutationBug.java:98)
at bug.BlurMutationBug.addMetaToBlur(BlurMutationBug.java:81)
at bug.BlurMutationBug.runTest(BlurMutationBug.java:62)
at bug.BlurMutationBug.main(BlurMutationBug.java:49)
Unlike what I mentioned in my original email post, the above shows that it is
not necessarily true that the most recently mutated row is the same as the one
that gets corrupted.
If you now do 2 blur gets on the rows, you see that one looks okay, but the
other has the merged records:
blur (default)> get blurbug1 fe17b01f-af87-4564-8b22-2105175542d7
id : fe17b01f-af87-4564-8b22-2105175542d7
recordId : 0
family : meta
key : fe17b01f-af87-4564-8b22-2105175542d7
recordId : 0
family : meta
key : 00113851-80a7-417b-bc68-a6a70ead9a80
blur (default)> get blurbug1 00113851-80a7-417b-bc68-a6a70ead9a80
id : 00113851-80a7-417b-bc68-a6a70ead9a80
recordId : 0
family : meta
key : 00113851-80a7-417b-bc68-a6a70ead9a80
blur (default)>
Please give this test a try and let me know if you are able to reproduce the
problem. Thanks!
> Row Mutation Bug
> ----------------
>
> Key: BLUR-441
> URL: https://issues.apache.org/jira/browse/BLUR-441
> Project: Apache Blur
> Issue Type: Bug
> Components: Blur
> Affects Versions: 0.2.4
> Reporter: Aaron McCurry
> Assignee: Aaron McCurry
> Priority: Blocker
> Fix For: 0.2.4
>
> Attachments: BlurMutationBug.java
>
>
> Reported on blur-user mail list:
> http://mail-archives.apache.org/mod_mbox/incubator-blur-user/201508.mbox/<CABO0Qi6m6xR60R64XBpoq7T0Q4GxxAJDcetV_-6PAmg32FdNxg%40mail.gmail.com>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)