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

Write unit test for kafka server startup and shutdown API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0.0
    • None

    Description

      Background discussion in KAFKA-320

      People often try to embed KafkaServer in an application that ends up calling startup() and shutdown() repeatedly and sometimes in odd ways. To ensure this works correctly we have to be very careful about cleaning up resources. This is a good practice for making unit tests reliable anyway.

      A good first step would be to add some unit tests on startup and shutdown to cover various cases:
      1. A Kafka server can startup if it is not already starting up, if it is not currently being shutdown, or if it hasn't been already started
      2. A Kafka server can shutdown if it is not already shutting down, if it is not currently starting up, or if it hasn't been already shutdown.

      Attachments

        1. KAFKA-328-REVIEW-COMMENTS.patch
          2 kB
          BalajiSeshadri
        2. KAFKA-328-REVIEW-11-29.patch
          3 kB
          BalajiSeshadri
        3. KAFKA-328-FORMATTED.patch
          1 kB
          BalajiSeshadri
        4. KAFKA-328.patch
          167 kB
          BalajiSeshadri
        5. KAFKA-328.patch
          14 kB
          BalajiSeshadri
        6. KAFKA-328_2014-11-29_00:08:05.patch
          3 kB
          BalajiSeshadri
        7. KAFKA-328_2014-11-10_11:05:58.patch
          3 kB
          BalajiSeshadri

        Activity

          People

            balaji.seshadri@dish.com BalajiSeshadri
            nehanarkhede Neha Narkhede
            Neha Narkhede Neha Narkhede
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: