Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-19354

Java thin 3.0: Same schema version is retrieved multiple times in concurrent scenarios

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • thin client

    Description

      When ClientTable.getSchema is called, we send a request for the given schema version every time, even if another request for that version is active (e.g. in case of multiple concurrent TUPLE_GET requests).

      Instead of caching ClientSchema, we should cache CompletableFuture<ClientSchema>, and use computeIfAbsent to guarantee only one request for the given version. Make sure to handle failures - if a cached future is failed, send a new request.

      Attachments

        Issue Links

          Activity

            People

              ptupitsyn Pavel Tupitsyn
              ptupitsyn Pavel Tupitsyn
              Igor Sapego Igor Sapego
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: