Details
-
Task
-
Resolution: Done
-
Major
-
None
-
2.5.3
-
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)
```
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
- relates to
-
JVMCBC-341 Add Keepalive for FTS
- Resolved