Продолжаем ловить баги на 4.6 версии.
Случайно наткнулся на такой баг.
Меняешь лимит договора, а у тебя срабатывает событие "Приход платежа".
access_log.2009-09-02
Код:
root@bgb1:/usr/local/BGBillingServer/log# cat ./access_log.2009-09-02 |grep 11:32:10
10.0.2.17 0515F44C43536B9ED36B944090A61490 [02/Sep/2009:11:32:10 +0400] 0.018 200 107 "POST /bgbilling/executer HTTP/1.1" UID=19 limit=-2000.0&module=contract&period=2&cid=38052&BGBillingSecret=bdUHeNbKQ8sittsgIwvyj1yv&action=UpdateContractLimitPeriod&comment=&
10.0.2.17 0515F44C43536B9ED36B944090A61490 [02/Sep/2009:11:32:10 +0400] 0.012 200 786 "POST /bgbilling/executer HTTP/1.1" UID=19 module=contract&pageSize=25&cid=38052&BGBillingSecret=amqxUM1RDe4ohoPRk5BCQ0WW&pageIndex=1&action=ContractLimit&view=0&
10.0.2.17 0515F44C43536B9ED36B944090A61490 [02/Sep/2009:11:32:10 +0400] 0.013 200 1290 "POST /bgbilling/executer HTTP/1.1" UID=19 module=contract&cid=38052&BGBillingSecret=m2zxuZxy5wXPx4UzuEWHLSAN&action=ContractInfo&
10.0.2.17 0515F44C43536B9ED36B944090A61490 [02/Sep/2009:11:32:10 +0400] 0.003 200 527 "POST /bgbilling/executer HTTP/1.1" UID=19 module=contract&cid=38052&BGBillingSecret=REC5X1RlAAH74HflbAePxy2H&action=GetPackageName&
server.script.log
Код:
09-02/11:32:10 INFO [Thread-7] EventProcessor - Found event id=2032696
09-02/11:32:10 INFO [Thread-7] EventProcessor - Process event cid:38052; event:Event bitel.billing.server.script.bean.event.PaymentEvent cid: 38052; module:0; type: 1
09-02/11:32:10 INFO [Thread-7] ServerEventProcessor - Process event cid:38052; event:Event bitel.billing.server.script.bean.event.PaymentEvent cid: 38052; module: 0; type: 1
09-02/11:32:10 INFO [pool-1-thread-311] ScriptInstance - Invoke method Function [id:38; title:Приход платежа] : onEvent
09-02/11:32:10 INFO [pool-1-thread-311] EventProcessor - Process event cid:38052; event:Event bitel.billing.server.script.bean.event.ContractStatusChangingEvent cid: 38052; module: 0; type: 18
09-02/11:32:10 INFO [pool-1-thread-311] ServerEventProcessor - Process event cid:38052; event:Event bitel.billing.server.script.bean.event.ContractStatusChangingEvent cid: 38052; module: 0; type: 18
09-02/11:32:10 INFO [pool-1-thread-311] EventProcessor - Add event to queue Event bitel.billing.server.script.bean.event.ContractStatusChangedEvent cid: 38052; module: 0; type: 19
09-02/11:32:10 INFO [Thread-7] script - Process time => 28
09-02/11:32:10 INFO [Thread-7] script - cid=38052
contract_balance=780.65
contract_limit=-2000.00
contract_abn=2200.0
contract_balance_new=-1419.35
Balance OK
09-02/11:32:10 INFO [Thread-7] EventProcessor - Found event id=2032697
09-02/11:32:10 INFO [Thread-7] EventProcessor - Process event cid:38052; event:Event bitel.billing.server.script.bean.event.ContractStatusChangedEvent cid: 38052; module: 0; type: 19
09-02/11:32:10 INFO [Thread-7] ServerEventProcessor - Process event cid:38052; event:Event bitel.billing.server.script.bean.event.ContractStatusChangedEventcid: 38052; module: 0; type: 19
09-02/11:32:10 INFO [pool-1-thread-311] ScriptInstance - Invoke method Function [id:24; title:Статус договора изменен] : onEvent
09-02/11:32:10 INFO [Thread-7] script - Process time => 1
Сервер вер. 4.6 сборка 549