[
https://issues.jboss.org/browse/HRJS-80?page=com.atlassian.jira.plugin.sy...
]
Anna Manukyan updated HRJS-80:
------------------------------
Description:
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@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@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}
was:
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}
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
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@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@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}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)