Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.0
    • Component/s: Metadata
    • Labels:
      None
    • Rank:
      1|i00ln3:

      Description

      In current APIs, we allow any combination of query options and cursors as input the search request. However, a cursor is a manifestation of a past query and meant to resume with the next set of results for that same request. But it is allowed to use a cursor with a different query, or namespace, or target type.

      Our implementations differ in how they treat such situations: 

      • In Elasticsearch, if the corresponding scroll is still live, we return the next set of results and ignore any other parameters. If the scroll has expired, we run a new search with the parameters from the request.
      • In noSQL (dataset) based storage, we combine the cursor with the other parameters, resulting in entirely unpredictable behavior. 

      To fix this, the cursor itself should encapsulate all search parameters, and when a cursor is used, that alone determines the search parameters (and the rest of the request is ignored).

      In addition, we could change the API to make it impossible to construct such a request, both in the SPI (SearchRequest.Builder) and the MetadataClient (search methods).  

        Attachments

          Activity

            People

            • Assignee:
              andreas Andreas Neumann
              Reporter:
              andreas Andreas Neumann
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: