Comments (8)
- In general, until we have some synchronized metadata it's OK. One node may have a tombstone object, another one may not.
- Still, if a node has both an object and a tombstone for it, it MUST NOT include it into the result, this needs to be checked.
- Script should handle this error, an appropriate error code should be returned from neofs-cli and checked for by the script.
from neofs-node.
an appropriate error code should be returned from neofs-cli
Next available for now (3)?
from neofs-node.
We have a falling system test test_object2_can_be_get_by_attr https://github.com/nspcc-dev/neofs-testcases/blob/master/pytest_tests/testsuites/services/http_gate/test_http_headers.py#L110
We delete an object and expect an "object already removed" error to be returned when we try to get it after the deletion. Right now it works so that we get "404 not found".
Is this expected behavior correct?
allure report:
dddd.zip
from neofs-node.
That's nspcc-dev/neofs-http-gw@e6e7941 and that's correct, the object can no longer be found. Previously it was "Bad Request" returned from the HTTP gate and that wasn't correct, the request is perfectly fine here.
from neofs-node.
Can be checked for the mainnet 2uvJyFRpcw6tKXSyypa2LSGLuF4qavL34GiutpjojkBZ
container.
from neofs-node.
I have been looking at that bug for a while but have not found any problems. I tested mentioned contianers, look at the code but seems like it is impossible (or I need to look at this in some removal process or at the script). Added a separate code in #2526.
I guess, script may do some things fast while TS objects have not been replicated yet.
from neofs-node.
The way the script worked at the time of writing is:
- iterate over uploaded files, see some
img/cat.png
- SEARCH for
img/cat.png
- DELETE that object(s)
- PUT new object for
img/cat.png
IIRC the problem happened when someone tried to run the script several times in a row before objects are really deleted. So it's certainly not some ms-range problem.
from neofs-node.
Considering this as fixed until proven otherwise.
from neofs-node.
Related Issues (20)
- Status code may lead to client cache invalidation HOT 1
- 404 errors are critical for big TTL values HOT 5
- Drop any internal client wrappers HOT 1
- Storage node is excluded from network map during tests HOT 1
- Outdated deploy.md HOT 1
- Allow to delete multiple objects with a single CLI invocation
- logs: hide timestamp by default HOT 1
- Invalid behavior with numeric eacl rules
- Private object is accessible through REST geteway when must not be HOT 5
- Speed up split object streaming
- Should a node validate objects it won't store? HOT 1
- Create and use helpers for crypto verifications
- Split verification and storage code for incoming objects
- SN doesn't reconnect to RPC HOT 3
- Drop deprecated counter metrics
- Do not ignore errors ever HOT 2
- Rework lists stored as values in metabase HOT 3
- Move contract deployment/update code from this repository
- Panic on deletion from peapod HOT 2
- Code 1024 returned instead of expected 2050 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neofs-node.