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

Fix fsync setting for RocksDbSharedLogStorage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • persistence
    • Release Notes Required

    Description

      If fsync is not set in writeOptions explicitly, rocksdb uses fsync=false, ignoring value in DBOptions. We should restore a line setting fsync option in write options for RocksDbSharedLogStorage

      Without fix:

      Benchmark                       (clusterSize)  (fsync)  (partitionCount)  (replicaCount)  Mode  Cnt    Score    Error  Units
      InsertBenchmark.sqlInsertMulti              1    false                 4               2  avgt   20  373.648 ± 35.654  us/op
      InsertBenchmark.sqlInsertMulti              1     true                 4               2  avgt   20  395.280 ± 43.948  us/op
      InsertBenchmark.kvInsert              1    false                 4               2  avgt   20  70.850 ± 9.786  us/op
      InsertBenchmark.kvInsert              1     true                 4               2  avgt   20  66.360 ± 4.070  us/op

      (results with and without fsync are the similar, because the setting is ignored)

      With fix:

      Benchmark                       (clusterSize)  (fsync)  (partitionCount)  (replicaCount)  Mode  Cnt     Score      Error  Units
      InsertBenchmark.sqlInsertMulti              1    false                 4               2  avgt   20   347.610 ±   39.477  us/op
      InsertBenchmark.sqlInsertMulti              1     true                 4               2  avgt   20  3507.467 ± 2418.805  us/op
      InsertBenchmark.kvInsert              1    false                 4               2  avgt   20   71.843 ±  19.696  us/op
      InsertBenchmark.kvInsert              1     true                 4               2  avgt   20  482.806 ± 166.221  us/op

      Results differ

      Attachments

        Issue Links

          Activity

            People

              phillippko Philipp Shergalis
              phillippko Philipp Shergalis
              Roman Puchkovskiy Roman Puchkovskiy
              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 - 0.5h
                  0.5h