[infinispan-issues] [JBoss JIRA] (HRJS-80) Connection to not-configured cache fails without closing it

Anna Manukyan (JIRA) issues at jboss.org
Thu Sep 27 16:26:00 EDT 2018


Anna Manukyan created HRJS-80:
---------------------------------

             Summary: 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}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list