Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10641

Explore asychronous read/write for state queue/work queue read/delete

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      ZK supports asynchronous modes and we are only using the synchronous mode
      However there is an asynchronous version of getData()

        /**
           * The asynchronous version of getData.
           *
           * @see #getData(String, Watcher, Stat)
           */
          public void getData(final String path, Watcher watcher,
                  DataCallback cb, Object ctx){
      }
      

      should we run tests to compare if it can give us an advantage? I guess it should

      Another optimization is doing multiple deletes from the workQueue using the following method

       /**
           * The asynchronous version of multi.
           *
           * @see #multi(Iterable)
           */
          public void multi(Iterable<Op> ops, MultiCallback cb, Object ctx) {
       }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              noble.paul Noble Paul
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: