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

Dynamic cache with rebalanceDelay == -1 doesn't trigger late affinity assignment even after explicit rebalance is called on every node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4
    • 2.7
    • None
    • None

    Description

      Reproducer:

      startGrids(NODE_COUNT);
      
      IgniteEx ig = grid(0);
      
      ig.cluster().active(true);
      
      awaitPartitionMapExchange();
      
      IgniteCache<Integer, Integer> cache =
          ig.createCache(
              new CacheConfiguration<Integer, Integer>()
                  .setName(CACHE_NAME)
                  .setCacheMode(PARTITIONED)
                  .setBackups(1)
                  .setPartitionLossPolicy(READ_ONLY_SAFE)
                  .setReadFromBackup(true)
                  .setWriteSynchronizationMode(FULL_SYNC)
                  .setRebalanceDelay(-1)
          );
      
      for (int i = 0; i < NODE_COUNT; i++)
          grid(i).cache(CACHE_NAME).rebalance().get();
      
      awaitPartitionMapExchange();
      

      Sometimes this code will hang on the last awaitPartitionMapExchange(), though probability that it will happen is rather low (<10%).

      Attachments

        Issue Links

          Activity

            People

              mmuzaf Maxim Muzafarov
              ilantukh Ilya Lantukh
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: