Nexmo / comms-router

A server which allows you to route tasks to agents.
Apache License 2.0
21 stars 11 forks source link

RollbackException on create queue when there are agents #66

Closed angel-popov closed 6 years ago

angel-popov commented 6 years ago
  1. Create Router
  2. Create 2 or more agents
  3. Create 2 or more queues in parallel

    Result:

    
    RCHECKER> (mapcar #'print-log (lparallel:pmapcar #'(lambda(i)(funcall (equeue-new))) (loop :repeat 2 :collect 1) ))
    ; in: MAPCAR #'PRINT-LOG
    ;     #'(LAMBDA (RCHECKER::I) (FUNCALL (RCHECKER::EQUEUE-NEW)))
    ; 
    ; caught STYLE-WARNING:
    ;   The variable I is defined but never used.
    ; 
    ; compilation unit finished
    ;   caught 1 STYLE-WARNING condition

{"id":"wVm8p18VqFhozGwxiBYQc7"} {"error":{"code":"RollbackException","description":"Error while committing the transaction"}}

Description:Create new queue with predicate 1==1. Result:pass Request:curl -s -X POST 'http://192.168.1.197:8090/comms-router-web/api/routers/fjdfGxyOXvJ7L72yX73z31/queues' -H 'Content-type:application/json' -d "{\"description\":\"description\",\"predicate\":\"1==1\"}" Response:{"id":"wVm8p18VqFhozGwxiBYQc7"} Checks:ok - publish QUEUE id ->wVm8p18VqFhozGwxiBYQc7 Checks:ok - result contains key "id" Checks:ok - Response is json Result:pass

Description:Create new queue with predicate 1==1. Result:FAIL Request:curl -s -X POST 'http://192.168.1.197:8090/comms-router-web/api/routers/fjdfGxyOXvJ7L72yX73z31/queues' -H 'Content-type:application/json' -d "{\"description\":\"description\",\"predicate\":\"1==1\"}" Response:{"error":{"code":"RollbackException","description":"Error while committing the transaction"}} Checks:FAIL- {"error":{"code":"RollbackException","description":"Error while committing the transaction"}} should have key "id" Checks:ok - Response is json