truecloudlab / frostfs-sdk-go Goto Github PK
View Code? Open in Web Editor NEWThis project forked from nspcc-dev/neofs-sdk-go
Go implementation of FrostFS SDK
License: Apache License 2.0
This project forked from nspcc-dev/neofs-sdk-go
Go implementation of FrostFS SDK
License: Apache License 2.0
We have a bit of a hacks in handleError
after #11: split info error should be passed as a status code from FrostFS but returned as a generic error anyway.
Consider making changes in API and storage node to avoid having split info error in transport error layer.
Or consider making handleError
function parsing only error
type without working with any statuses, so it will be at least consistent.
Pool component might renew token before it is expired. This way we can avoid some retry requests and possible test failures.
Currently we panic in many situations:
(netmap.NodeInfo).Price()
-- we expect to get it with FromV2
where an error is processed).While I think (1) is ok, others are not IMO. Also in (1) we could provide obligatory parameters explicitly: hard-to-misuse API is the best. Another option is to have New
with obligatory parameters and Set
methods on it (private structure with public interface).
handleError
func shouldn't consider context canceled
as error to protect the view of storage node healthiness from user actions.
Related TrueCloudLab/frostfs-s3-gw#35
It would be nice to know if some node in pool goes down.
Maybe we can log such situations.
/cc @alexvanin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.