[
https://issues.apache.org/jira/browse/ATLAS-759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hemanth Yamijala updated ATLAS-759:
-----------------------------------
Attachment: ATLAS-759.patch
A patch I am not at all happy with.
This is a classic case of fixing the symptom and not the cause. On my machine,
the said test was failing consistently due to a LockTimeoutException in Java
BerkeleyDB code. We have seen this before in ATLAS-503, where [~ssainath]
stumbled on to it when querying for tables created while they were getting
created. This is similar to the situation in HiveHookIT. Also, the server logs
clearly show lock contention between Jersey threads reading the data vs
NotificationHookConsumer threads writing the data.
Given all this, I inserted a delay of 1s after a run of the Hive commands *in
this test case alone* thereby avoiding concurrent reads while writes.
This fix is not guaranteed to work everywhere (given speed of machines, disks,
etc). However, given BerkeleyDB is not going to be used for production usage, I
don't have a lot of energy on spending a lot of time debugging this. (Also, it
is 11:20 PM on a Saturday night :-( ).
In short, this works for me. I ran ITs a bunch of times and they passed always.
So, while there are several unanswered questions, maybe we should get this in
to unblock other patches. And invest in ATLAS-503 for a real fix (which I've
marked for 0.7). Happy to hear any other suggestions from others.
> HiveHookIT.testAlterTableChangeColumn is consistently failing on master
> -----------------------------------------------------------------------
>
> Key: ATLAS-759
> URL: https://issues.apache.org/jira/browse/ATLAS-759
> Project: Atlas
> Issue Type: Bug
> Reporter: Hemanth Yamijala
> Assignee: Hemanth Yamijala
> Priority: Blocker
> Attachments: ATLAS-759.patch
>
>
> Running mvn clean install is failing in
> HiveHookIT.testAlterTableChangeColumn. The exception is occurring due to a
> lock timeout exception on the server side.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)