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

Change IntegrationTestUtils.purgeLocalStreamsState to use java.io.tmpdir

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.10.1.0
    • Fix Version/s: 0.10.1.0
    • Component/s: streams
    • Labels:
      None

      Description

      IntegrationTestUtils.purgeLocalStreamsState(...)

      currently only removes the folders if the path starts with /tmp. This should really use

      System.getProperty("java.io.tmpdir")

      Once this has been changed the tests using it should be able to simplify their

      StreamsConfig.STATE_DIR_CONFIG

      to

      TestUtils.tempDirectory().getPath()

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                damianguy Damian Guy
                Reporter:
                damianguy Damian Guy
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: