[ 
https://issues.apache.org/jira/browse/IGNITE-12444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrey Mashenkov updated IGNITE-12444:
--------------------------------------
    Issue Type: Bug  (was: Test)

> SQL: Query reduce can fail with NPE on retry.
> ---------------------------------------------
>
>                 Key: IGNITE-12444
>                 URL: https://issues.apache.org/jira/browse/IGNITE-12444
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>            Reporter: Andrey Mashenkov
>            Assignee: Andrey Mashenkov
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> GridReduceQueryExecutor can fail with NPE on retry if it couldn't map during 
> retry timeout.
> So, 'lastRun' can be null here
> {code:java}
>    if (attempt > 0 && retryTimeout > 0 && (U.currentTimeMillis() - startTime 
> > retryTimeout)) {
>                 UUID retryNodeId = lastRun.retryNodeId();
>                 String retryCause = lastRun.retryCause();
>                 assert !F.isEmpty(retryCause);
> {code}
> Also assertion above is not correct. 
> It is possible, we failed to send request, then retried with success to remap.
> So, 'lastRun' would be not null, but cause is empty.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to