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

Global thread should honor shutdown signal during bootstrapping

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • streams
    • None

    Description

      During startup, the global thread will bootstrap all global stores before it enters its main store-update-loop. The store-update-loop exits, when `KafkaStreams#close()` is called.

      However, during the bootstrap phase there is no check if `KafkaStreams#close()` was called. And thus, KafkaStreams cannot be stopped during bootstrapping (ie, the bootstrapping cannot be interrupted).

      To make Kafka Streams more responsive, we should check if `close()` was called during bootstrapping, too.

      Note, that `KafkaStreams#start()` actually blocks during bootstrapping atm (cf KAFKA-7380) and thus we should fix both issue at once if possible.

      Attachments

        Issue Links

          Activity

            People

              mjsax Matthias J. Sax
              mjsax Matthias J. Sax
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: