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

SQL: sql returns incorrect results for replicated caches if started on node where rebalance is in progress

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 2.8
    • sql
    • None

    Description

      To reproduce you should do next:

      1)Start 3 data nodes with persistence
      2)Load 100_000 entries to SQL cache
      3)Stop one node
      4)Load another100_000 entries to SQL cache
      5)Stop second node
      6)Load another100_000 entries to SQL cache
      7)Start node one and node2 -> rebalance will be started
      8)In parallel start select count query from every data node

      Results will be like next.

      SqlSize is 300000, Ignite is sqltests.IncorrectSizeDuringRebalanceOfReplicatedCachesTest2
      SqlSize is 122684, Ignite is sqltests.IncorrectSizeDuringRebalanceOfReplicatedCachesTest1
      SqlSize is 26898, Ignite is sqltests.IncorrectSizeDuringRebalanceOfReplicatedCachesTest0

      Cache sizes will be correct in this case:

      CacheSize is 300000, Ignite is sqltests.IncorrectSizeDuringRebalanceOfReplicatedCachesTest2
      CacheSize is 300000, Ignite is sqltests.IncorrectSizeDuringRebalanceOfReplicatedCachesTest1
      CacheSize is 300000, Ignite is sqltests.IncorrectSizeDuringRebalanceOfReplicatedCachesTest0

      It means that during rebalance customers will be able to get incorrect results for SQL queries during the rebalance process if it will be started from "bad" node.

      Attachments

        Issue Links

          Activity

            People

              Pavlukhin Ivan Pavlukhin
              Pavlukhin Ivan Pavlukhin
              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 - 20m
                  20m