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

NettyServerStreamRpc should handle duplicate headers

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • None
    • None
    • None
    • None

    Description

      Current server does 

       

      if (Header) {    
        streams.computeIfAbsent(request.getStreamId(), id ->createStream());
        ...  
      }
      

       

       

      It is possible that clients send multiple headers so the entry already exists. We might choose to send a reply with error message without accepting duplicated headers. 

       

      Attachments

        Activity

          People

            amaliujia Rui Wang
            amaliujia Rui Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: