Bug 1321705 - Client hangs in a retry loop if the target cache is not defined
Summary: Client hangs in a retry loop if the target cache is not defined
Keywords:
Status: NEW
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: CPP Client
Version: 6.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Pedro Zapata
QA Contact: Alan Field
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-29 01:21 UTC by Osamu Nagano
Modified: 2021-05-04 07:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)
main.cpp (817 bytes, text/x-csrc)
2016-03-29 01:21 UTC, Osamu Nagano
no flags Details

Description Osamu Nagano 2016-03-29 01:21:06 UTC
Created attachment 1141049 [details]
main.cpp

Description of problem:
If a C++ Hot Rod client try to connect to a non-existing cache, it will hang at 9th retry and never return.


Version-Release number of selected component (if applicable):
jboss-datagrid-6.6.0-remote-cpp-client-RHEL7-x86_64


How reproducible:
Always.


Steps to Reproduce:
1. Run a standalone JDG server.
2. Compile the attached client, main.cpp (edit the hard-corded server address).
gcc -o main \
     -I /path/to/jboss-datagrid-6.6.0-remote-cpp-client-RHEL7-x86_64/include \
     -L /path/to/jboss-datagrid-6.6.0-remote-cpp-client-RHEL7-x86_64/lib64 \
     -lhotrod -lm -lstdc++ \
     main.cpp
3. Run the client.
LD_LIBRARY_PATH=/path/to/jboss-datagrid-6.6.0-remote-cpp-client-RHEL7-x86_64/lib64 ./main


Actual results:
~~~
1: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name '_' not found amongst the configured caches
2: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name '_' not found amongst the configured caches
3: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name '_' not found amongst the configured caches
4: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name '_' not found amongst the configured caches
5: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name '_' not found amongst the configured caches
6: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name '_' not found amongst the configured caches
7: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name '_' not found amongst the configured caches
8: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name '_' not found amongst the configured caches
9:
~~~


Expected results:
An exception is thrown at the last retry (the default maxRetries is 10).

Comment 1 Osamu Nagano 2016-03-29 01:29:56 UTC
My mistake, maxRetries is not related.  The 10 times loop is hard-coded.  But the question is the same.  Why the loop stops at 9th time?


Note You need to log in before you can comment on or make changes to this bug.