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

Remove unneeded synchronized keyword in StreamThread

Agile BoardAttach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.0
    • None
    • None

    Description

      There are three methods in StreamThread which have unnecessary synchronized keyword since the variable accessed, state, is volatile :

      isRunningAndNotRebalancing
      isRunning
      shutdown

      synchronized keyword can be dropped for these methods.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment