[ 
https://issues.apache.org/jira/browse/IGNITE-9202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16573373#comment-16573373
 ] 

Maxim Muzafarov edited comment on IGNITE-9202 at 8/8/18 3:42 PM:
-----------------------------------------------------------------

[~ivandasch]

I haven't found any timeout usages in examples of .NET tests. Suppose default 
timeout used.
 I think any hardcoded timeouts for test will lead us to flaky cases. May be 
{{zero}} timeout should be used instead?

Hope javadocs says us true.
{code:java|title=SqlFieldsQuery.java:180}
    /**
     * Sets the query execution timeout. Query will be automatically cancelled 
if the execution timeout is exceeded.
     * @param timeout Timeout value. Zero value disables timeout.
     * @param timeUnit Time unit.
     * @return {@code this} For chaining.
     */
    public SqlFieldsQuery setTimeout(int timeout, TimeUnit timeUnit) {
        this.timeout = QueryUtils.validateTimeout(timeout, timeUnit);

        return this;
    }
{code}


was (Author: mmuzaf):
[~ivandasch]

I haven't found any timeout usages in examples of .NET tests. Suppose default 
timeout used.
I think any hardcoded timeouts for test will lead us to flaky cases. May be 
{{zero}} timeout should be used in tests? 

Hope javadocs says us true.
{code:java|title=SqlFieldsQuery.java:180}
    /**
     * Sets the query execution timeout. Query will be automatically cancelled 
if the execution timeout is exceeded.
     * @param timeout Timeout value. Zero value disables timeout.
     * @param timeUnit Time unit.
     * @return {@code this} For chaining.
     */
    public SqlFieldsQuery setTimeout(int timeout, TimeUnit timeUnit) {
        this.timeout = QueryUtils.validateTimeout(timeout, timeUnit);

        return this;
    }
{code} 

> .NET `TestRemoteNodes` fails with "Failed to map SQL query to topology"
> -----------------------------------------------------------------------
>
>                 Key: IGNITE-9202
>                 URL: https://issues.apache.org/jira/browse/IGNITE-9202
>             Project: Ignite
>          Issue Type: Test
>            Reporter: Maxim Muzafarov
>            Priority: Blocker
>              Labels: MakeTeamcityGreenAgain
>             Fix For: 2.7
>
>
> Tests constantly fails with exception `Failed to map SQL query to topology.`
> * ExamplesTest.TestRemoteNodes(BinaryModeExample)     
> * ExamplesTest.TestRemoteNodes(LinqExample)
> * ExamplesTest.TestRemoteNodes(SqlExample) 
> {code:java}
> Test(s) failed. Apache.Ignite.Core.Cache.CacheException : Failed to map SQL 
> query to topology. ----> Apache.Ignite.Core.Common.JavaException : 
> javax.cache.CacheException: Failed to map SQL query to topology.
> at 
> org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor.query(GridReduceQueryExecutor.java:577)
> at 
> org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing$8.iterator(IgniteH2Indexing.java:1447)
> at 
> org.apache.ignite.internal.processors.cache.QueryCursorImpl.iterator(QueryCursorImpl.java:95)
> at 
> org.apache.ignite.internal.processors.platform.cache.query.PlatformAbstractQueryCursor.processInLongOutLong(PlatformAbstractQueryCursor.java:147)
> at 
> org.apache.ignite.internal.processors.platform.PlatformTargetProxyImpl.inLongOutLong(PlatformTargetProxyImpl.java:55)
> {code}
> https://ci.ignite.apache.org/project.html?projectId=IgniteTests24Java8&testNameId=-3155722801840665529&branch=%3Cdefault%3E&tab=testDetails



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to