Git Product home page Git Product logo

Comments (13)

git-hulk avatar git-hulk commented on June 26, 2024 1

@VasuDevrani Looks good, you can go ahead to improve this.

from kvrocks.

caipengbo avatar caipengbo commented on June 26, 2024 1

do we have ability to recovery from error if Resume() failed for one-times?

There might be some cases (disk no space?) where it needs to be done externally for the Resume() to succeed.

from kvrocks.

git-hulk avatar git-hulk commented on June 26, 2024 1

@VasuDevrani Cool, don't hesitate to raise if you have any ideas.

from kvrocks.

VasuDevrani avatar VasuDevrani commented on June 26, 2024

@VasuDevrani Looks good, you can go ahead to improve this.

See, the code proposed as solution just prints ERROR in else block.
How about we add a set number of retry for resuming DB operation in case of failure, and if it still fails after retries, then we log a CRITICAL error finally.

from kvrocks.

git-hulk avatar git-hulk commented on June 26, 2024

I'm wondering if it's a good idea to do that. I prefer letting users determine whether to terminate themself instead of by default N times retry. @PragmaTwice @caipengbo @torwig What do you think?

from kvrocks.

caipengbo avatar caipengbo commented on June 26, 2024

Yes, I also don't think it's necessary to set a number of retries. Alternatively, we could provide a RESUME command, which would give administrators more options.

from kvrocks.

mapleFU avatar mapleFU commented on June 26, 2024

Out-of curiousity, do we have ability to recovery from error if Resume() failed for one-times? Seems we can only recover from merely case like Compaction output error or flush error?

from kvrocks.

mapleFU avatar mapleFU commented on June 26, 2024

Thats a good point, so we should let user decide what to do during this case...

from kvrocks.

git-hulk avatar git-hulk commented on June 26, 2024

@VasuDevrani As discussed above, improving the logging message is good, but don't expect to escalate the FATAL error after N time tries. What do you think?

from kvrocks.

VasuDevrani avatar VasuDevrani commented on June 26, 2024

@VasuDevrani As discussed above, improving the logging message is good, but don't expect to escalate the FATAL error after N time tries. What do you think?

Yeah I've considered above conversation. I'm learning a bit more about Kvrocks, its internals. will update here with my thoughts after a while. Thanks for following up.

from kvrocks.

VasuDevrani avatar VasuDevrani commented on June 26, 2024

@VasuDevrani As discussed above, improving the logging message is good, but don't expect to escalate the FATAL error after N time tries. What do you think?

I agree with just improving the logging message for now. (should i make continue with a PR?)

@VasuDevrani Cool, don't hesitate to raise if you have any ideas.

Later, if need arise we can go with idea of having RESUME command for admins as suggested by @caipengbo
or, we can add a configuration option for max_number_of_retry for this operation

from kvrocks.

git-hulk avatar git-hulk commented on June 26, 2024

I agree with just improving the logging message for now. (should i make continue with a PR?)

Sure, you can continue improving the logging message.

from kvrocks.

caipengbo avatar caipengbo commented on June 26, 2024

I agree with just improving the logging message for now. (should i make continue with a PR?)

Yes, RESUME is not a high priority.

from kvrocks.

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.