We just recently took at look at the 1.7 alpha release to see if it would help with our disk I/O performance problems. We've found a few bugs... the upgrade MySQL script for the database didn't even parse properly, but I fixed it manually.
A more serious bug is that some of our triggers stopped working. The new trigger handling code seems to fail if the time(0) function is used. For example, we monitor the state of a service that interface with our AS/400. However, due to a full AS/400 nightly backup, that service shuts down for 3 hours each night. Here was my previous trigger condition :
{Mines Wabush - PN WPWEBS02:service_state[Magic 9.4 Broker].time(0)}>030000 & {Mines Wabush - PN WPWEBS02:service_state[Magic 9.4 Broker].time(0)}<235500 & {Mines Wabush - PN WPWEBS02:service_state[Magic 9.4 Broker].last(0)}#0 & {Mines Wabush - PN WPWEBS02:service_state[Magic 9.4 Broker].last(0)}#2
Basically, four expressions with AND between each:
service state#2 AND service state#0 AND time<11:55pm AND time>3:05AM
That trigger used to work just fine. But now, when it is parsed with 1.7.2, the time(0) and last(0) values are reversed, as seen in the screenshot below. This happens no matter what order I put the expressions in too!
Maybe I'm missing something here?
A more serious bug is that some of our triggers stopped working. The new trigger handling code seems to fail if the time(0) function is used. For example, we monitor the state of a service that interface with our AS/400. However, due to a full AS/400 nightly backup, that service shuts down for 3 hours each night. Here was my previous trigger condition :
{Mines Wabush - PN WPWEBS02:service_state[Magic 9.4 Broker].time(0)}>030000 & {Mines Wabush - PN WPWEBS02:service_state[Magic 9.4 Broker].time(0)}<235500 & {Mines Wabush - PN WPWEBS02:service_state[Magic 9.4 Broker].last(0)}#0 & {Mines Wabush - PN WPWEBS02:service_state[Magic 9.4 Broker].last(0)}#2
Basically, four expressions with AND between each:
service state#2 AND service state#0 AND time<11:55pm AND time>3:05AM
That trigger used to work just fine. But now, when it is parsed with 1.7.2, the time(0) and last(0) values are reversed, as seen in the screenshot below. This happens no matter what order I put the expressions in too!
Maybe I'm missing something here?
roc.num[Zerver.exe].last(0)}=0 | {CUS_OIK_Template
Comment