Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-9763

Add a DUnit Test of Concurrent P2P Messaging with TLS Enabled

    XMLWordPrintableJSON

Details

    Description

      We have ByteBufferConcurrencyTest to test the ByteBuffer reference counting implemented by ByteBufferVendor. But we don't have concurrency tests that focus on the code that interacts with ByteBufferVendor up in NioSslEngine and Connection.

      When this ticket is complete we'll have a DUnit test, P2PMessagingConcurrencyDUnitTest, that focuses on that gap via:

      • one-way P2P messaging between two peers
      • over a shared, ordered connection
      • with many concurrent tasks competing for the connection (and its ByteBuffers) on the send side
      • with TLS enabled

      The test will generate messages of various lengths and will verify that the number of bytes sent matches the number of bytes received and that no exceptions are logged.

      The test defines its own subclass of DistributionMessage and sends it via ClusterDistributionManager.putOutgoing(DistributionMessage) so that no higher-level system components are exercised (advisors, regions).

      PR: https://github.com/apache/geode/pull/6930

      Attachments

        Issue Links

          Activity

            People

              burcham Bill Burcham
              burcham Bill Burcham
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: