Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-22861

Sql. Calculation for mapOnBackups parameter erased.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-beta1
    • 3.0
    • sql

    Description

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

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

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

      Attachments

        Issue Links

          Activity

            People

              amashenkov Andrey Mashenkov
              zstan Evgeny Stanilovsky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m