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

PageMemoryPartitionStorage#write() can leak page slots

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • 3.0.0-alpha5
    • persistence

    Description

      public void write(DataRow row) throws StorageException {
          try {
              TableDataRow dataRow = wrap(row);

              freeList.insertDataRow(dataRow);

              tree.put(dataRow);
          } catch (IgniteInternalCheckedException e) {
              throw new StorageException("Error writing row", e);
      {{    }}}
      }

      This code always occupies a slot in a data page, even if the key was already put to the partition. So, if 2 puts with same key occur, one page slot is wasted.

      Attachments

        Activity

          People

            ktkalenko@gridgain.com Kirill Tkalenko
            rpuch Roman Puchkovskiy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: