Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-5174

RocksDb might stall in environments with 1 core only

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.2.1
    • 0.11.0.0
    • streams
    • None

    Description

      • worst-case impact: streams might not run out-of-box in deployments with 1 core only
      • workaround: no new jars needed for the workaround, only a config change that changes a RocksDb parameter, e.g. something like in this PR: https://github.com/confluentinc/examples/pull/117/files
      • full fix: add 1 to the current config (i.e., max cpus + 1) in the default settings

      The RocksDb code might have a bug itself, since when running with one core
      it both sets the number of compaction threads to 1 (https://github.com/facebook/rocksdb/blob/5.0.fb/util/options.cc#L762) AND the maximum number of compactions variable to 0 (https://github.com/facebook/rocksdb/blob/5.0.fb/util/options.cc#L760) which doesn't make much sense. I've sent a message in RocksDb channel.

      Attachments

        Issue Links

          Activity

            People

              enothereska Eno Thereska
              enothereska Eno Thereska
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: