[
https://issues.apache.org/jira/browse/TAJO-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14333126#comment-14333126
]
ASF GitHub Bot commented on TAJO-1356:
--------------------------------------
GitHub user jinossy opened a pull request:
https://github.com/apache/tajo/pull/386
TAJO-1356: Race conditions in QueryInProgress
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jinossy/tajo TAJO-1356
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tajo/pull/386.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #386
----
commit 91683a741f2e6c45feb0c4bed10b2011d80e3a00
Author: jhkim <[email protected]>
Date: 2015-02-23T08:59:26Z
TAJO-1356: Race conditions in QueryInProgress
----
> Race conditions in QueryInProgress
> ----------------------------------
>
> Key: TAJO-1356
> URL: https://issues.apache.org/jira/browse/TAJO-1356
> Project: Tajo
> Issue Type: Bug
> Components: tajo master
> Affects Versions: 0.10, 0.11
> Reporter: Jinho Kim
> Assignee: Jinho Kim
> Priority: Critical
> Fix For: 0.10
>
>
> {{TajoMasterClientService.getQueryResultData}} is intermittently failing due
> to a race condition. This issue can be fixed by removing unnecessary async
> condition and adding correctly synchronization in QueryInProgress.
> {noformat}
> -------------------------------------------------------------------------------
> Test set: org.apache.tajo.engine.query.TestSortQuery
> -------------------------------------------------------------------------------
> Tests run: 23, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 40.597 sec
> <<< FAILURE! - in org.apache.tajo.engine.query.TestSortQuery
> testSortWithAlias3(org.apache.tajo.engine.query.TestSortQuery) Time elapsed:
> 2.12 sec <<< ERROR!
> java.sql.SQLException: com.google.protobuf.ServiceException: QueryInfo cannot
> be NULL.
> at
> org.apache.tajo.client.QueryClientImpl$3.call(QueryClientImpl.java:393)
> at
> org.apache.tajo.client.QueryClientImpl$3.call(QueryClientImpl.java:378)
> at
> org.apache.tajo.rpc.ServerCallable.withRetries(ServerCallable.java:94)
> at
> org.apache.tajo.client.QueryClientImpl.fetchNextQueryResult(QueryClientImpl.java:406)
> at
> org.apache.tajo.jdbc.FetchResultSet.nextTuple(FetchResultSet.java:66)
> at
> org.apache.tajo.jdbc.TajoResultSetBase.next(TajoResultSetBase.java:780)
> at
> org.apache.tajo.QueryTestCaseBase.resultSetToString(QueryTestCaseBase.java:497)
> at
> org.apache.tajo.engine.query.TestSortQuery.testSortWithAlias3(TestSortQuery.java:71)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)