Hide Forgot
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).
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?