Unknown symbols #43

Open
opened 2025-03-26 15:51:40 +01:00 by carlos · 0 comments
Member

Description

There is an unexpected behaviour with regards to the execution of handler functions defined in a .vis file despite having the handlers registered and triggered via LOAD.

NOTE

This has only been observed in a migrated account

Case 1

LOAD check_vouchers 10
RELOAD check_vouchers
LOAD check_balance 128
RELOAD check_balance

Expected behaviour

With the above definition,assuming that we have simple print statement defined for the handlers as below:

check_vouchers -> "checking vouchers...."
check_balance -> "checking balance ...."

The expected output should be:

checking vouchers ...
checking vouchers ...
checking balance ...
checking balance ...

Current behavior

checking voucher ...

Execution seems to terminate on the first LOAD check_vouchers 10 with an unknown symbol: check_vouchers error thrown and the rest of the statements ignored.

Case 2

LOAD check_vouchers 10
LOAD check_balance 128
RELOAD check_balance

The expected output should be:

checking vouchers ...
checking balance ...
checking balance ...

Current behaviour

checking balance ...

The execution skips the first LOAD statement,moves to the next LOAD statement,then terminates with the same error as case 1
unknown symbol: check_balance

Steps to reproduce

Ingest the kv_vise snapshots to postgres,then set the phone number under investigation as the session-id

### Description There is an unexpected behaviour with regards to the execution of handler functions defined in a `.vis` file despite having the handlers registered and triggered via `LOAD`. #### NOTE This has only been observed in a migrated account #### Case 1 ``` LOAD check_vouchers 10 RELOAD check_vouchers LOAD check_balance 128 RELOAD check_balance ``` **Expected behaviour** With the above definition,assuming that we have simple print statement defined for the handlers as below: check_vouchers -> "checking vouchers...." check_balance -> "checking balance ...." The expected output should be: ``` checking vouchers ... checking vouchers ... checking balance ... checking balance ... ``` **Current behavior** `checking voucher ...` Execution seems to terminate on the first `LOAD check_vouchers 10 ` with an **unknown symbol: check_vouchers** error thrown and the rest of the statements ignored. ### Case 2 ``` LOAD check_vouchers 10 LOAD check_balance 128 RELOAD check_balance ``` The expected output should be: ``` checking vouchers ... checking balance ... checking balance ... ``` **Current behaviour** `checking balance ... ` The execution skips the first `LOAD `statement,moves to the next `LOAD `statement,then terminates with the same error as case 1 **unknown symbol: check_balance** ### Steps to reproduce Ingest the kv_vise snapshots to postgres,then set the phone number under investigation as the session-id
carlos added the
Kind/Bug
Status
Need More Info
labels 2025-03-26 15:51:40 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: grassrootseconomics/sarafu-vise#43
No description provided.