agent-substrate / agent-substrate/substrate

Atelet Concurrency Protection?

Open
#485 0 comments 0 reactions 0 assignees View on GitHub
area/node area/storage kind/bug
Dominant language
Go
Stars
1.8k
Forks
316
Avg merge
2d 43m
Merged PRs (30d)
287

Description

## Expected Behavior
Files from the same actor should not step on each other if the actor is re-invoked before the previous files have been cleaned up.

## Actual Behavior
Unsure if concurrency of requests is the actual cause of this error, but plausible.

When load testing Substrate in a cpu-starved environment (especially a low-end machine), seeing errors like this:

rpc error: code = Internal desc = while resetting actor dirs: while deleting bundle dir: %w: unlinkat /var/lib/ateom-gvisor/actors/0c5207f6-5ffa-4d6b-9e9e-f9d2476a108c/bundles/glutton/rootfs/usr/share/zoneinfo/right: directory not empty

## Steps to Reproduce the Problem

1. Spin up substrate
1. Create a lot of workers per-vCPU on a single node
1. Run a glutton load test that 100% saturates these workers without oversubscribing (may need to tweak wait time between invocations)

## Specifications

- Version:
- Platform:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.