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

MetaStorage.iterate not thread safe with delete

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • persistence
    • None

    Description

      Got exception while iterating ReadWriteMetastorage:

      // [2021-09-08 12:41:24,762][ERROR][stat-mgmt-#147%stat.StatisticsGlobalViewPersistenceTest0%][IgniteStatisticsConfigurationManager] Unexpected error on check local statisticsjava.lang.AssertionError: itemId=2, directCnt=2, indirectCnt=0, page=0001000100000048 [496, 1696][][free=1638]	at org.apache.ignite.internal.processors.cache.persistence.tree.io.AbstractDataPageIO.getDataOffset(AbstractDataPageIO.java:582)	at org.apache.ignite.internal.processors.cache.persistence.tree.io.AbstractDataPageIO.readPayload(AbstractDataPageIO.java:626)	at org.apache.ignite.internal.processors.cache.persistence.partstorage.PartitionMetaStorageImpl.readRow(PartitionMetaStorageImpl.java:107)	at org.apache.ignite.internal.processors.cache.persistence.metastorage.MetaStorage.iterate(MetaStorage.java:363)	at org.apache.ignite.internal.processors.query.stat.IgniteStatisticsPersistenceStoreImpl.iterateMeta(IgniteStatisticsPersistenceStoreImpl.java:659)	at org.apache.ignite.internal.processors.query.stat.IgniteStatisticsPersistenceStoreImpl.getLocalPartitionsStatistics(IgniteStatisticsPersistenceStoreImpl.java:370)	at org.apache.ignite.internal.processors.query.stat.IgniteStatisticsRepository.getLocalPartitionsStatistics(IgniteStatisticsRepository.java:239)  (edited) 
      

      There is probability of parallel deletion of the same keys.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            Berkov Alexander Belyak

            Dates

              Created:
              Updated:

              Slack

                Issue deployment