Evgeny Stanilovsky created IGNITE-22861:
-------------------------------------------

             Summary: Sql. Calculation for mapOnBackups parameter erased.
                 Key: IGNITE-22861
                 URL: https://issues.apache.org/jira/browse/IGNITE-22861
             Project: Ignite
          Issue Type: Bug
          Components: sql
    Affects Versions: 3.0.0-beta1
            Reporter: Evgeny Stanilovsky


After [1] was implemented it`s become possible to run queries on backup nodes 
but for now it erased, check implementation:


{noformat}
boolean mapOnBackups = tx.isReadOnly();
MappingParameters mappingParameters = 
MappingParameters.create(ctx.parameters(), mapOnBackups);
{noformat}


{noformat}
public static MappingParameters create(Object[] dynamicParameters, boolean 
mapOnBackups) {
        if (dynamicParameters.length == 0) {
            return EMPTY;
        } else {
            return new MappingParameters(dynamicParameters, mapOnBackups);
        }
    }
{noformat}



[1] IGNITE-22466 Sql. Support mapping to non-primary replicas



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to