Git Product home page Git Product logo

Comments (9)

x4m avatar x4m commented on June 13, 2024 1

No problem, thanks for keeping an eye on possible bugs. Together we make reliable systems :)

from wal-g.

x4m avatar x4m commented on June 13, 2024

Uhm, thanks for spotting this problem. The code is far from perfect.
1.

tracelog.ErrorLogger.Println("download storage file fail: error:", err)
This logging is superflous, it is expected behaviour that file is absent. Why print this as an error?

  1. We had implicit contract that download should return ArchiveNonExistenceError. This contract is broken. We should not mask this with checking error message, but instead find why, when and where it was broken.

from wal-g.

x4m avatar x4m commented on June 13, 2024

Anyway, PR fixing this would be greatly appreciated. It's definitely a bug. I suspect this reproduces when object is not compressed or is not encrypted.

from wal-g.

godzilla-s avatar godzilla-s commented on June 13, 2024

2. We had implicit contract that download should return ArchiveNonExistenceError. This contract is broken. We should not mask this with checking error message, but instead find why, when and where it was broken.

you're welcome, I'm just pointing out the problem in code, Looking forward to your updates

from wal-g.

x4m avatar x4m commented on June 13, 2024

I've created PR with potential fix. Can you please try if this helps?

from wal-g.

x4m avatar x4m commented on June 13, 2024

uhhm...nope, sorry, that does not fix anything. I have to dig deeper...

from wal-g.

x4m avatar x4m commented on June 13, 2024

What storage do you use? It seems to me you get non-standard response code. And it is not parsed correctly here.

func isAwsNotExist(err error) bool {

from wal-g.

godzilla-s avatar godzilla-s commented on June 13, 2024

isAwsNotExist

sorry, I found it' my fault, I use MinIO as Storage but I found that our internal middleware does a layer of encapsulation of the standard S3 interface,some error has been wrapper by internal handle.

I'm confirming this.

thank you for your reply so much

from wal-g.

godzilla-s avatar godzilla-s commented on June 13, 2024

sorry again, it's my fault, error has been replace by internal middleware, we fixed it , thank you again

from wal-g.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.