Played a bunch of embeds to generate more logs from my web nodes, rotated the logs, then ran the wrapper script for DWH again. This time I did get an error from etl_update_dims-20210701-12.log
[root@kaltura-dw1 logs]# grep ERROR *
etl_update_dims-20210701-12.log:ERROR 01-07 12:00:11,520 - Lock is already seized - Row nr 1 causing abort : [update_dims_lock], [1], [0], [null]
etl_update_dims-20210701-12.log:ERROR 01-07 12:00:11,520 - Lock is already seized - Aborting after having seen 1 rows.
etl_update_dims-20210701-12.log:ERROR 01-07 12:00:11,520 - seize_lock_by_name - Errors detected!
etl_update_dims-20210701-12.log:ERROR 01-07 12:00:11,520 - seize_lock_by_name - Errors detected!
Full log isn’t that big, here:
[root@kaltura-dw1 logs]# cat etl_update_dims-20210701-12.log
INFO 01-07 12:00:03,990 - Kitchen - Start of run.
INFO 01-07 12:00:04,057 - Update Dimensions - Start of job execution
INFO 01-07 12:00:11,220 - Update Dimensions - Starting entry [Check if daily_lock is seized]
INFO 01-07 12:00:11,249 - Update Dimensions - Starting entry [Seize update dims lock]
INFO 01-07 12:00:11,250 - Seize update dims lock - Loading transformation from XML file [/opt/kaltura/dwh/etlsource//common/seize_lock_by_name.ktr]
INFO 01-07 12:00:11,299 - seize_lock_by_name - Dispatching started for transformation [seize_lock_by_name]
INFO 01-07 12:00:11,353 - get_update_dims_lock_name - Dispatching started for transformation [get_update_dims_lock_name]
INFO 01-07 12:00:11,433 - Generate Row - Finished processing (I=0, O=0, R=0, W=1, U=0, E=0)
INFO 01-07 12:00:11,502 - Mapping input specification - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
INFO 01-07 12:00:11,504 - Set lock name = dims_lock - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
INFO 01-07 12:00:11,506 - Mapping output specification - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
INFO 01-07 12:00:11,508 - Get lock name - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
INFO 01-07 12:00:11,509 - Create lock states - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
INFO 01-07 12:00:11,515 - Register lock - Finished processing (I=1, O=0, R=1, W=1, U=0, E=0)
ERROR 01-07 12:00:11,520 - Lock is already seized - Row nr 1 causing abort : [update_dims_lock], [1], [0], [null]
ERROR 01-07 12:00:11,520 - Lock is already seized - Aborting after having seen 1 rows.
ERROR 01-07 12:00:11,520 - seize_lock_by_name - Errors detected!
ERROR 01-07 12:00:11,520 - seize_lock_by_name - Errors detected!
INFO 01-07 12:00:11,521 - Get free lock - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
INFO 01-07 12:00:11,521 - Lock is already seized - Finished processing (I=0, O=0, R=1, W=1, U=0, E=1)
INFO 01-07 12:00:11,521 - seize_lock_by_name - seize_lock_by_name
INFO 01-07 12:00:11,521 - Lock is free - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
INFO 01-07 12:00:11,521 - seize_lock_by_name - seize_lock_by_name
INFO 01-07 12:00:11,706 - Update Dimensions - Starting entry [Success 1]
INFO 01-07 12:00:11,707 - Update Dimensions - Finished job entry [Success 1] (result=[true])
INFO 01-07 12:00:11,707 - Update Dimensions - Finished job entry [Seize update dims lock] (result=[true])
INFO 01-07 12:00:11,707 - Update Dimensions - Finished job entry [Check if daily_lock is seized] (result=[true])
INFO 01-07 12:00:11,707 - Update Dimensions - Job execution finished
INFO 01-07 12:00:12,614 - Kitchen - Finished!
INFO 01-07 12:00:12,615 - Kitchen - Start=2021/07/01 12:00:03.992, Stop=2021/07/01 12:00:12.614
INFO 01-07 12:00:12,615 - Kitchen - Processing ended after 8 seconds.
No other nodes in the cluster are running DWH scripts, just this DWH node. I have not seen locks on this or previous runs, have checked each time before running:
MariaDB [(none)]> select * from kalturadw_ds.locks ;
±--------±--------------------------------±--------------------±-----------+
| lock_id | lock_name | lock_time | lock_state |
±--------±--------------------------------±--------------------±-----------+
| 1 | daily_lock | 2021-07-01 11:55:03 | 0 |
| 2 | retention_lock | 2021-07-01 11:55:11 | 0 |
| 3 | hourly_kaltura-dw1.prod.cps.loc | 2021-07-01 12:00:16 | 0 |
| 4 | update_dims_lock | 2021-07-01 12:00:12 | 0 |
| 5 | hourly_kaltura-sphinx1 | 2021-07-01 12:00:25 | 0 |
±--------±--------------------------------±--------------------±-----------+
5 rows in set (0.00 sec)