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

Failed state store deletion could lead to task file not found

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: streams
    • Labels:
      None

      Description

      A failed deletion of a stream task directory could later lead to the impression that the task state is still there, thus causing file not found exception as the directory was partially deleted.

      [2020-02-26T22:08:05-08:00] (streams-soak-trunk-eos_soak_i-04ebd21fd0e0da9bf_streamslog) [2020-02-27 06:08:04,394] WARN [stream-soak-test-b26adb53-07e2-4013-933a-0f4bcac84c04-StreamThread-2] stream-thread [stream-soak-test-b26adb53-07e2-4013-933a-0f4bcac84c04-StreamThread-2] task [2_2] Failed to wiping state stores for task 2_2 (org.apache.kafka.streams.processor.internals.StreamTask) [2020-02-26T22:08:05-08:00] (streams-soak-trunk-eos_soak_i-04ebd21fd0e0da9bf_streamslog) [2020-02-27 06:08:04,394] INFO [stream-soak-test-b26adb53-07e2-4013-933a-0f4bcac84c04-StreamThread-2] [Producer clientId=stream-soak-test-b26adb53-07e2-4013-933a-0f4bcac84c04-StreamThread-2-2_2-producer, transactionalId=stream-soak-test-2_2] Closing the Kafka producer with timeoutMillis = 9223372036854775807 ms. (org.apache.kafka.clients.producer.KafkaProducer)
      [2020-02-26T22:08:05-08:00] (streams-soak-trunk-eos_soak_i-04ebd21fd0e0da9bf_streamslog) [2020-02-27 06:08:04,411] ERROR [stream-soak-test-b26adb53-07e2-4013-933a-0f4bcac84c04-StreamThread-1] stream-thread [stream-soak-test-b26adb53-07e2-4013-933a-0f4bcac84c04-StreamThread-1] Encountered the following exception during processing and the thread is going to shut down:  (org.apache.kafka.streams.processor.internals.StreamThread) [2020-02-26T22:08:05-08:00] (streams-soak-trunk-eos_soak_i-04ebd21fd0e0da9bf_streamslog) org.apache.kafka.streams.errors.ProcessorStateException: Error opening store KSTREAM-AGGREGATE-STATE-STORE-0000000040 at location /mnt/run/streams/state/stream-soak-test/2_2/rocksdb/KSTREAM-AGGREGATE-STATE-STORE-0000000040         at org.apache.kafka.streams.state.internals.RocksDBTimestampedStore.openRocksDB(RocksDBTimestampedStore.java:87)         at org.apache.kafka.streams.state.internals.RocksDBStore.openDB(RocksDBStore.java:191)         at org.apache.kafka.streams.state.internals.RocksDBStore.init(RocksDBStore.java:230)         at org.apache.kafka.streams.state.internals.WrappedStateStore.init(WrappedStateStore.java:48)         at org.apache.kafka.streams.state.internals.ChangeLoggingKeyValueBytesStore.init(ChangeLoggingKeyValueBytesStore.java:44)         at org.apache.kafka.streams.state.internals.WrappedStateStore.init(WrappedStateStore.java:48)         at org.apache.kafka.streams.state.internals.CachingKeyValueStore.init(CachingKeyValueStore.java:58)         at org.apache.kafka.streams.state.internals.WrappedStateStore.init(WrappedStateStore.java:48)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bchen225242 Boyang Chen
                Reporter:
                bchen225242 Boyang Chen
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: