[infinispan-issues] [JBoss JIRA] (HRJS-78) Adding listener with unknown type succeeds

Anna Manukyan (Jira) issues at jboss.org
Thu May 30 07:33:00 EDT 2019


     [ https://issues.jboss.org/browse/HRJS-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anna Manukyan updated HRJS-78:
------------------------------
              Status: Pull Request Sent  (was: Coding In Progress)
    Git Pull Request: https://github.com/infinispan/js-client/pull/41


> Adding listener with unknown type succeeds
> ------------------------------------------
>
>                 Key: HRJS-78
>                 URL: https://issues.jboss.org/browse/HRJS-78
>             Project: Infinispan Javascript client
>          Issue Type: Bug
>            Reporter: Anna Manukyan
>            Assignee: Anna Manukyan
>            Priority: Major
>
> When adding a new listener with unknown event type, nothing happens. From the logs I can see that the event was added successfully. See the logs below:
> {code}
> [2018-09-25T22:24:55.824] [DEBUG] client - Invoke addListener(msgId=460,event=barev,listenerId=listener_461,opts=undefined) remotely
> [2018-09-25T22:24:55.824] [TRACE] encoder - Encode operation with topology id 0
> [2018-09-25T22:24:55.825] [TRACE] listener - Create listener emitter for connection 127.0.0.1:11222 at conn_15 and listener with listenerId=listener_461
> [2018-09-25T22:24:55.825] [TRACE] io_7 - Write buffer(msgId=460) to 127.0.0.1:11222 at conn_15: A0CC031D2500000300010D00010D000C6C697374656E65725F343631000000000F
> [2018-09-25T22:24:55.827] [TRACE] decoder - Read header(msgId=460): opCode=38, status=0, hasNewTopology=0
> [2018-09-25T22:24:55.827] [TRACE] decoder - Call decode for request(msgId=460)
> [2018-09-25T22:24:55.827] [TRACE] io_7_conn_15 - Complete success for request(msgId=460) with true
> [2018-09-25T22:24:55.827] [TRACE] io_7_conn_15 - After decoding request(msgId=460), buffer size is 6, and offset 6
> {code}
> The code for this logs is given here:
> {code}
> ... code from spec...
> it('fails when wrong event name is passed', function(done) { 
>       client.then(t.on('barev', t.expectEvent('wrongNameCreate', done, true, 'value')))
>       .then(t.assert(t.putIfAbsent('wrongNameCreate', 'value'), t.toBeTruthy))
>       .catch(t.failed(done)).finally(done);
>   });
> ...
> {code}



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the infinispan-issues mailing list