[infinispan-issues] [JBoss JIRA] (HRJS-80) Connection to not-configured cache fails without closing it
Galder ZamarreƱo (Jira)
issues at jboss.org
Wed May 29 09:02:01 EDT 2019
[ https://issues.jboss.org/browse/HRJS-80?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Galder ZamarreƱo updated HRJS-80:
---------------------------------
Fix Version/s: 0.7.0
> Connection to not-configured cache fails without closing it
> -----------------------------------------------------------
>
> Key: HRJS-80
> URL: https://issues.jboss.org/browse/HRJS-80
> Project: Infinispan Javascript client
> Issue Type: Bug
> Reporter: Anna Manukyan
> Assignee: Anna Manukyan
> Priority: Major
> Fix For: 0.7.0
>
>
> The test given below passes, but because of unclosed connection it hangs. For this scenario, it is not possible to close connection manually as because of the thrown exception the connection object is not returned.
> {code}
> it('fails when non-configured cache is accessed', function(done) {
> t.client(t.local, {cacheName: 'unknownCache'})
> .then(function() {
> done(new Error('Exception should be thrown while accessing not-configured cache.'));
> }, function(reason) {
> expect(reason.message).toBe("org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'unknownCache' not found amongst the configured caches");
> t.failed(done);
> }).finally(done);
> });
> {code}
> The log for this test is given below:
> {code}
> [2018-09-27T22:47:49.426] [DEBUG] io_75_conn_76 - Connecting to 127.0.0.1:11222
> [2018-09-27T22:47:49.427] [DEBUG] io_75_conn_76 - Connected to 127.0.0.1:11222
> [2018-09-27T22:47:49.427] [DEBUG] io_75 - New router installed: FixedRouter(conn=127.0.0.1:11222 at conn_76)
> [2018-09-27T22:47:49.427] [DEBUG] client - Invoke ping(msgId=77)
> [2018-09-27T22:47:49.427] [TRACE] encoder - Encode operation with topology id 0
> [2018-09-27T22:47:49.427] [TRACE] io_75 - Write buffer(msgId=77) to 127.0.0.1:11222 at conn_76: A04D1D170C756E6B6E6F776E4361636865000300010D00010D00
> [2018-09-27T22:47:49.428] [TRACE] decoder - Read header(msgId=77): opCode=80, status=132, hasNewTopology=0
> [2018-09-27T22:47:49.429] [ERROR] decoder - Error decoding body of request(msgId=77): org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'unknownCache' not found amongst the configured caches
> [2018-09-27T22:47:49.429] [TRACE] io_75_conn_76 - Complete failure for request(msgId=77) with org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'unknownCache' not found amongst the configured caches
> [2018-09-27T22:47:49.429] [TRACE] io_75_conn_76 - After decoding request(msgId=77), buffer size is 129, and offset 129
> {code}
> As you can see, the connect operation is passed. The error appears while performing the ping operation. Also in the log there is nowhere visible the "Disconnected from..." for this particular connection.
> I have compared the logs for this test and for the ones testing the wrong configured ssl certificates. In case of ssl ones the error appears directly during connecting to the server. In this case the transport is connected, so the ping fails.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the infinispan-issues
mailing list