Coder Social home page Coder Social logo

Comments (8)

jcalfee avatar jcalfee commented on August 23, 2024

Here is the fix:
rm -r ../.insight/testnet/*

This could cause some down time on the livenet...

from insight-api.

matiu avatar matiu commented on August 23, 2024

thanks for sharing.

from insight-api.

jcalfee avatar jcalfee commented on August 23, 2024

Is there any way to handle leveldb updates better in such a way that this can't happen? I don't have experience with this but I read that updates are atomic. Should they have something like autocommit off and a commit added?

from insight-api.

matiu avatar matiu commented on August 23, 2024

No sure why it happened in the first place, never saw that error. If you
could reproduce it and details the steps for reproduce it we could try to
solve it.

On Thu, Apr 24, 2014 at 10:03 AM, James Calfee [email protected]:

Is there any way to handle leveldb updates better in such a way that this
can't happen? I don't have experience with this but I read that updates are
atomic. Should they have something like autocommit off and a commit added?


Reply to this email directly or view it on GitHubhttps://github.com//issues/54#issuecomment-41276876
.

Matías Alejo Garcia
Skype/Twitter: @EMATIU
Roads? Where we're going, we don't need roads!

from insight-api.

jcalfee avatar jcalfee commented on August 23, 2024

Are atomic updates the default? It was likely caused by a Ctrl+C while the initial block chain sync was occurring.

from insight-api.

matiu avatar matiu commented on August 23, 2024

They should be in level db. Even in batch updates:

https://code.google.com/p/leveldb/

On Thu, Apr 24, 2014 at 12:41 PM, James Calfee [email protected]:

Are atomic updates the default? It was likely caused by a Ctrl+C while the
initial block chain sync was occurring.


Reply to this email directly or view it on GitHubhttps://github.com//issues/54#issuecomment-41295383
.

Matías Alejo Garcia
Skype/Twitter: @EMATIU
Roads? Where we're going, we don't need roads!

from insight-api.

jcalfee avatar jcalfee commented on August 23, 2024

Thanks for the link. That is what I was looking at.

As I become familiar with the LevelDB API I will do a quick scan to see if any extra API calls are involved in making this work especially in regard to multiple level DB databases. That would perhaps save a lot of code like error detection and error correction code I am seeing. I'm sure you are probably doing just this.

Thanks for Insight! I'm enjoying the code. I'll let you know if I find anything.

from insight-api.

matiu avatar matiu commented on August 23, 2024

awesome, thanks!

On Sun, Apr 27, 2014 at 8:54 AM, James Calfee [email protected]:

Thanks for the link. That is what I was looking at.

As I become familiar with the LevelDB API I will do a quick scan to see if
any extra API calls are involved in making this work especially in regard
to multiple level DB databases. That would perhaps save a lot of code like
error detection and error correction code I am seeing. I'm sure you are
probably doing just this.

Thanks for Insight! I'm enjoying the code. I'll let you know if I find
anything.


Reply to this email directly or view it on GitHubhttps://github.com//issues/54#issuecomment-41494615
.

Matías Alejo Garcia
Skype/Twitter: @EMATIU
Roads? Where we're going, we don't need roads!

from insight-api.

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.