Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1199

Java SDK: FTS async, after subscribe remain loggin reconnect attempts

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • None
    • 2.5.3
    • FTS
    • None
    • Laptop Mac OS High Sierra

    Description

      Request

      Functional example of async FTS query with Java SDK, I was looking on doc but didn't find one.

      Background

      The following example was made for a POC/Workshop for customers, partners, and prospects in a laptop.

      v1 with subscribers

      ```
      private static void asyncSearch(CommandLine c)

      { String term = c.getOption(“term”); MatchQuery fts = SearchQuery.match(term); Subscription s = bucket.async() .query(new SearchQuery("fts_index_1 ", fts)) .subscribe(asyncSearchQueryResult -> asyncSearchQueryResult .hits() .subscribe(searchQueryRow -> logger.info(searchQueryRow.toString()))); }


      ```

      v2 blocking
      ```

      private static void asyncSearch(CommandLine c)

      { String term = c.getOptionValue("term", "farm"); MatchQuery fts = SearchQuery.match(term); bucket.async().query(new SearchQuery("fts_index_1", fts)).last().toBlocking().single(); }

      ```
      Problem

      In both approaches I was be able to print results, but after the app remain logging the following:

      NFO [cb-io-1-3] (Slf4JLogger.java:115) - [localhost/127.0.0.1:8094][SearchEndpoint]: Got notified from Channel as inactive, attempting reconnect.
      INFO [cb-io-1-4] (Slf4JLogger.java:115) - [localhost/127.0.0.1:8094][SearchEndpoint]: Got notified from Channel as inactive, attempting reconnect.
      INFO [cb-io-1-5] (Slf4JLogger.java:115) - [localhost/127.0.0.1:8094][SearchEndpoint]: Got notified from Channel as inactive, attempting reconnect.
      INFO [cb-io-1-6] (Slf4JLogger.java:115) - [localhost/127.0.0.1:8094][SearchEndpoint]: Got notified from Channel as inactive, attempting reconnect.
      INFO [cb-io-1-7] (Slf4JLogger.java:115) - [localhost/127.0.0.1:8094][SearchEndpoint]: Got notified from Channel as inactive, attempting reconnect.
      INFO [cb-io-1-8] (Slf4JLogger.java:115) - [localhost/127.0.0.1:8094][SearchEndpoint]: Got notified from Channel as inactive, attempting reconnect.
      INFO [cb-io-1-1] (Slf4JLogger.java:115) - [localhost/127.0.0.1:8094][SearchEndpoint]: Got notified from Channel as inactive, attempting reconnect.
      INFO [cb-io-1-2] (Slf4JLogger.java:115) - [localhost/127.0.0.1:8094][SearchEndpoint]: Got notified from Channel as inactive, attempting reconnect.
      INFO [cb-io-1-3] (Slf4JLogger.java:115) - [localhost/127.0.0.1:8094][SearchEndpoint]: Got notified from Channel as inactive, attempting reconnect.
      INFO [cb-io-1-4] (Slf4JLogger.java:115) - [localhost/127.0.0.1:8094][SearchEndpoint]: Got notified from Channel as inactive, attempting reconnect.
      INFO [cb-io-1-5] (Slf4JLogger.java:115) - [localhost/127.0.0.1:8094][SearchEndpoint]: Got notified from Channel as inactive, attempting reconnect.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              graham.pople Graham Pople
              Raymundo.Flores Raymundo Flores (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty