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

Assert that the primary peers in DataStreamClient and RoutingTable are equal

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0
    • Streaming
    • None

    Description

      While implementing HDDS-9392, I incorrectly updated the first node in `RoutingTable` so that it does not point to the same node in `DataStreamClientImpl#dataStreamServer`. This causes some issues that took a while to debug due to the lack of assertion.

      To prevent this in the future, let's setup an assertion in `DataStreamClientImpl#stream` to throw exception if the first node in `RoutingTable` is not equal to `DataStreamClientImpl#dataStreamServer`.

      Attachments

        1. 945_review.patch
          7 kB
          Tsz-wo Sze

        Issue Links

          Activity

            People

              ivanandika Ivan Andika
              ivanandika Ivan Andika
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 1.5h
                  1.5h