Uploaded image for project: 'DistributedLog'
  1. DistributedLog
  2. DL-80

recordSetWriter has multi-thread issue

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.4.0
    • distributedlog-client
    • None

    Description

      Reading code, found there's a minor issue in DistributedLogMultiStreamWriter class. Currenty only flush()&write() have synchronized, but getLogRecordSetWriter miss the protection. so it would be possible get an obsolete writer just after flush() happened.

      Attachments

        Activity

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

          People

            xieliang007 Liang Xie
            xieliang007 Liang Xie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment