Metric oldest_timestamp
gets updated without oldest_sequence
as more packets are pending
#2469
Labels
oldest_timestamp
gets updated without oldest_sequence
as more packets are pending
#2469
Summary of Bug
When a packet is pending,
oldest_timestamp
andoldest_sequence
should both be fixed. However, when a new packet arrives,oldest_timestamp
takes temporarily the value of the youngest pending packet.Version
hermes 1.0.0-rc.0+6c23af53
Steps to Reproduce
You should run this on branch ali/fix_oldest_sequence (or master after merge) because the process used to generate pending packets has a high probability of failure and, if it fails, will generate a timeout. This branch handles correctly the
oldest_*
metrics when a timeout occurs. If you are not using this branch, a timeout will freeze the metrics.hermes start
hermes tx ft-transfer --dst-chain ibc-0 --src-chain ibc-1 --src-port transfer --src-channel channel-0 --amount 1000 --timeout-seconds 10
should work most of the times.hermes query packet pending --chain ibc-1 --port transfer --channel channel-0
You should see an output similar to this :
oldest_*
are frozen at a non zero value. If it's not the case then no packet is pending or the code is not running on the correct branch.You should see non zero metrics for these two fields :
hermes tx ft-transfer --dst-chain ibc-0 --src-chain ibc-1 --src-port transfer --src-channel channel-0 --amount 1000 --timeout-seconds 1000
.hermes query packet pending --chain ibc-1 --port transfer --channel channel-0
.oldest_timestamp
was updated.Acceptance Criteria
oldest_timestamp
is correctly updated.For Admin Use
The text was updated successfully, but these errors were encountered: