Skip to content

Artillery based stress testing is inaccurate due to misconfiguration #2598

@CryptoFewka

Description

@CryptoFewka

Describe the Bug
The artillery config uses at least one call which is improperly specified:

params:
- fromBlock: "0x1"
toBlock: "latest"
address: "0x0"
topics: ["0x0"]

This call results in HTTP status 200, but a body of:

{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32602,
    "message": "invalid argument 0: invalid address: hex string of odd length"
  }
}

To Reproduce

curl -s -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"fromBlock": "0x1","toBlock": "latest","address": "0x0","topics":["0x0"]}],"id":1}' 
  • Run it against a zetacored node

Expected Behavior
The intent of the artillery stress test is to judge performance of individual methods. This intent is not met with the current configuration, and it instead measures the ability to recognize invalid input and respond with an error message quickly.

Environment (please complete the following information):

  • Ubuntu 22.04 AMD64
  • zetacored v18
  • athens network

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions