Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-19844 Tx code cleanup
  3. IGNITE-23036

Cleanup of GridCacheContext#dhtMap

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Since IGNITE-674 nearMap argument of one of the GridCacheContext#dhtMap methods has always null value [1]. It leads to null values of arguments nearNodeIds and mappedNearNodes for GridDhtCacheEntry#mappings and GridCacheMvccCandidate#mappedNodeIds respectively.

      Therefore, GridCacheMvccCandidate#mappedNearNodes field is always empty / null and in second method GridCacheContext#dhtMap nearNodes variable is null / empty [2].

      We should investigate it on redundancy or loss of functionality.

      1. https://github.com/apache/ignite/blob/6fb58f28138ec8f3d4ea9e9859bd8bf262e5c847/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLockFuture.java#L843
      2. https://github.com/apache/ignite/blob/1d9312af9a5d73e0a89e8d39ae9ab552bd6c36f1/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheContext.java#L1589

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              shishkovilja Ilya Shishkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: