Investigate why transactions aren't counted #68
Labels
bug
Something isn't working
help wanted
Extra attention is needed
question
Further information is requested
When testing
tps
andsender
locally against a natively running zombienet, I encountered an issue with thetps
counter.The
tps
binary was expecting more transactions than it counted, even if thesender
successfully sent all transactions.This appears to be because counting the transfers takes longer than 12s on average, since new
CandidateIncluded
events may happen, but I am not entirely certain. It could also be because some transactions are dropped.In principle, with the current logic, all transfers are counted before the next
Candidate
is processed. If counting 1094 transfers takes longer than 12s I would be quite surprised since it seems to work just fine when submitting fewer transactions.Below are the logs when submitting 10,000 transactions from 1 sender. It should be noted this problem does not occur when sending 1000, 2000, or 3000 transactions, so I doubt it has anything to do with the calculation speed, but rather is likely because of dropped transactions. The
sender
also did not spend more than roughly 1s to send all the 10,000 transactions.The reason why this is an issue is because when running these parachain TPS tests with zombienet, the
tps
binary is not receiving an exit signal, meaning the zombienet.dsl
tests cannot pass, which means it would not be possible to have high number of transactions submitted in CI.Yet, this is not really a fix as it seems to be of larger concern related to the memory pool and the lifetime of the extrinsics given that parablock numbers increment 1 by 1.
As can be seen in the logs there was a total of 2909 transactions remaining to be calculated for
ParaId: Id(1000)
. After this last candidate with transfers was checked, no further candidates included any future transfers.The text was updated successfully, but these errors were encountered: