Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-979 Ratis streaming
  3. RATIS-1207

Fix duplicated StreamMap.Key

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None

    Description

      Currently we use channelId_streamId as the stream key, but if we start the first client, and finish the streaming, then we start the second client, error happens because of duplicated stream key. Because the channel id of the second client is same as the first client, and streamId is both 0, so duplicated stream key happens. So we can use clientid_streamid as the stream key, to achieve this, we need put clientid in DataStreamPacketImpl

      final StreamMap.Key key = new StreamMap.Key(ctx.channel().id(), request.getStreamId());
      

      Attachments

        Issue Links

          Activity

            People

              yjxxtd runzhiwang
              yjxxtd runzhiwang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m