Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-15737 Ensure all (desired) v1 APIs have v2 equivalent
  3. SOLR-16470

Create V2 equivalent of V1 Replication: Get IndexVersion, Get FileStream, Get File List

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 9.2
    • None
    • v2 API

    Description

      Replication Handler has no v2 equivalent. This ticket is covering few endpoints from ReplicationHandler such as Get IndexVersion, Get FileStream, Get File List.

      Existing V1

      GET /solr/collName/replication?command=indexversion
      GET /solr/collName/replication?command=filecontent
      GET /solr/collName/replication?command=filelist

      Proposed API design

      GET /api/cores/coreName/replication/indexversion
      GET /api/cores/coreName/replication/files/filePath
      GET /api/cores/coreName/replication/files

       few other pointers that might be helpful, especially for newcomers:

      • The v1 logic for this API lives in ReplicationHandler
      • Some discussion of how APIs work in Solr (Particularly the "APIs in Solr" section.)
      • A step-by-step guide to creating APIs using the preferred v2 API framework
      • A recent PR that adds a v2 API, as an example

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            sanjaydutt Sanjay Dutt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4h 20m
                4h 20m