From elephant at gustad.com Sun Oct 10 18:37:52 2010 From: elephant at gustad.com (Petter Gustad) Date: Sun, 10 Oct 2010 20:37:52 +0200 (CEST) Subject: [elephant-devel] PANIC: fatal region error detected; run recovery Message-ID: <20101010.203752.234585692109939604.petter@pangea.home.gustad.com> I keep getting this message when I access my Weblocks application: PANIC: fatal region error detected; run recovery I don't see any errors other than this. The BDB database consists of only a few dozen entries. It fails whenever I have two different processes each running SBCL/Weblocks and both are accessing the same database, i.e. both are using the same conf/stores.lisp. One process is using ports 8080/5555 for web/swank, and the other is using ports 8888/9999. Running /usr/bin/db4.7_recover -f does not seem to resolve the issue. On the next launch the problem is back. I'm running SBCL 1.0.42 and Berkeley DB 4.7, both 64-bit Linux X86. elephant.asd versjon is 1.0a1. Is this a known problem with a known workaround? I've just started to look at Elephant/BDB as an alternative to CL-SQL hence I'm mostly a n00b so the possibility of a user error is very high. //Petter From sky at viridian-project.de Tue Oct 12 08:49:27 2010 From: sky at viridian-project.de (Leslie P. Polzer) Date: Tue, 12 Oct 2010 10:49:27 +0200 (CEST) Subject: [elephant-devel] PANIC: fatal region error detected; run recovery In-Reply-To: <20101010.203752.234585692109939604.petter@pangea.home.gustad.com> References: <20101010.203752.234585692109939604.petter@pangea.home.gustad.com> Message-ID: <44de27958178eb9bc08056ea79ceb1e7.squirrel@mail.stardawn.org> Hi, when using multiple processes with one Elephant BDB store you need to open the store with :register t. Leslie From elephant at gustad.com Wed Oct 13 22:10:00 2010 From: elephant at gustad.com (Petter Gustad) Date: Thu, 14 Oct 2010 00:10:00 +0200 (CEST) Subject: [elephant-devel] PANIC: fatal region error detected; run recovery In-Reply-To: <44de27958178eb9bc08056ea79ceb1e7.squirrel@mail.stardawn.org> References: <20101010.203752.234585692109939604.petter@pangea.home.gustad.com> <44de27958178eb9bc08056ea79ceb1e7.squirrel@mail.stardawn.org> Message-ID: <20101014.001000.165139404762821727.petter@pangea.home.gustad.com> From: "Leslie P. Polzer" Subject: Re: [elephant-devel] PANIC: fatal region error detected; run recovery Date: Tue, 12 Oct 2010 10:49:27 +0200 (CEST) > when using multiple processes with one Elephant BDB store > you need to open the store with :register t. Thank you for your reply Leslie. Is it possible to specify this using defstore in weblocks? //Petter From raison at chatsubo.net Sun Oct 17 19:26:49 2010 From: raison at chatsubo.net (Kevin Raison) Date: Sun, 17 Oct 2010 12:26:49 -0700 Subject: [elephant-devel] Kyoto cabinet and a graph database Message-ID: <4CBB4DF9.30001@chatsubo.net> Folks, I wanted to put two things into the thought stream of the community, and gauge everyone's interest. First, I have been working on a Lisp (CFFI) interface to Kyoto Cabinet (http://fallabs.com/kyotocabinet/) as an alternative to Berkeley DB. I am wondering if there is any interest in me or someone else integrating this interface as an Elephant back end. The code is here: http://github.com/kraison/cl-kyoto-cabinet and here: http://github.com/kraison/kyoto-persistence The code is young, and there are plenty of issues that still need working out. Second, I have also been working on a graph database / RDF store (http://github.com/kraison/vivace-graph) that is mean to to (eventually) compete with Franz's AllegroGraph. I originally started the Kyoto Cabinet code to support this graph db, but have found the performance lacking for my purposes. I would really like to leverage Elephant and / or a pure Lisp b-tree implementation to speed things up. To that end, I am wondering if anyone can speak to the state of the native Lisp back end for Elephant. I noticed that Ian has some code in his contrib directory, but it looks unfinished. If I can get some guidance and the permission of the group, I would like to work on bringing this code to maturity. Thanks for Elephant; it has made many of my Lisp projects possible! Cheers. -- Kevin Raison Founder, CTO Chatsubo.net, LLC 9708 1st Ave NW Seattle, WA 98117 raison at chatsubo.net ph: +1 (206) 801-5728 fx: +1 (206) 801-5729 From lukas.georgieff at hotmail.com Wed Oct 20 12:36:21 2010 From: lukas.georgieff at hotmail.com (Lukas Georgieff) Date: Wed, 20 Oct 2010 14:36:21 +0200 Subject: [elephant-devel] using elephant:open-store with relative paths Message-ID: Hi Ian, hi Alex, I have a problem when I use elephant:open-store with relative paths to the db-folder.When a relative path is given elephant:get-instances-by-class returns after the store was closed always NIL. Here is a little example: (asdf:operate 'asdf:load-op :elephant) (elephant:defpclass TopicC () ((value :initarg :value :accessor value :type string)) (:index t)) (elephant:open-store '(:BDB "/home/lukas/.sbcl/site/isidorus/trunk/src/data_base"))(make-instance 'TopicC :value "t-1")(make-instance 'TopicC :value "t-2")(elephant:get-instances-by-class 'TopicC); absolute db path => (# #); relative db path => (# #) (elephant:close-store) (elephant:open-store '(:BDB "/home/lukas/.sbcl/site/isidorus/trunk/src/data_base"))(elephant:get-instances-by-class 'TopicC); absolute db path => (# #); relative db path => NIL Is this a bug or must I use absolute paths for opening a store? Best regards Lukas -------------- next part -------------- An HTML attachment was scrubbed... URL: From sky at viridian-project.de Wed Oct 20 14:00:58 2010 From: sky at viridian-project.de (Leslie P. Polzer) Date: Wed, 20 Oct 2010 16:00:58 +0200 (CEST) Subject: [elephant-devel] using elephant:open-store with relative paths In-Reply-To: References: Message-ID: <801dd0c4acf429eadb7898ed057798dd.squirrel@mail.stardawn.org> Hi Lukas, > Here is a little example: > (asdf:operate 'asdf:load-op :elephant) > (elephant:defpclass TopicC () ((value :initarg :value :accessor value :type > string)) (:index t)) > (elephant:open-store '(:BDB > "/home/lukas/.sbcl/site/isidorus/trunk/src/data_base"))(make-instance 'TopicC :value > "t-1")(make-instance 'TopicC :value "t-2")(elephant:get-instances-by-class 'TopicC); > absolute db path => (# #); relative db path => (# oid:2> #) > (elephant:close-store) > (elephant:open-store '(:BDB > "/home/lukas/.sbcl/site/isidorus/trunk/src/data_base"))(elephant:get-instances-by-class > 'TopicC); absolute db path => (# #); relative db path => NIL > > Is this a bug or must I use absolute paths for opening a store? You don't need to use absolute paths, but you must take care that your relative paths are converted correctly to absolute paths. Your Lisp's CL:*DEFAULT-PATHNAME-DEFAULTS* influences this conversion. In your relative path example you're probably just seeing an empty database, i.e. not the same database as the one you have worked with before to create the instances. If you still need help then please give a full example that we can reproduce. Leslie From lukas.georgieff at hotmail.com Wed Oct 20 19:52:05 2010 From: lukas.georgieff at hotmail.com (Lukas Georgieff) Date: Wed, 20 Oct 2010 21:52:05 +0200 Subject: [elephant-devel] using elephant:open-store with relative paths In-Reply-To: <801dd0c4acf429eadb7898ed057798dd.squirrel@mail.stardawn.org> References: <801dd0c4acf429eadb7898ed057798dd.squirrel@mail.stardawn.org> Message-ID: Hi Leslie, thanks for you answer - that was a helpful explanation. Best regards Lukas -------------------------------------------------- From: "Leslie P. Polzer" Sent: Wednesday, October 20, 2010 4:00 PM To: "Elephant bugs and development" Subject: Re: [elephant-devel] using elephant:open-store with relative paths > > Hi Lukas, > >> Here is a little example: >> (asdf:operate 'asdf:load-op :elephant) >> (elephant:defpclass TopicC () ((value :initarg :value :accessor value >> :type >> string)) (:index t)) >> (elephant:open-store '(:BDB >> "/home/lukas/.sbcl/site/isidorus/trunk/src/data_base"))(make-instance >> 'TopicC :value >> "t-1")(make-instance 'TopicC :value >> "t-2")(elephant:get-instances-by-class 'TopicC); >> absolute db path => (# #); relative db path >> => (#> oid:2> #) >> (elephant:close-store) >> (elephant:open-store '(:BDB >> "/home/lukas/.sbcl/site/isidorus/trunk/src/data_base"))(elephant:get-instances-by-class >> 'TopicC); absolute db path => (# #); relative >> db path => NIL >> >> Is this a bug or must I use absolute paths for opening a store? > > You don't need to use absolute paths, but you must take care that > your relative paths are converted correctly to absolute paths. > Your Lisp's CL:*DEFAULT-PATHNAME-DEFAULTS* influences this > conversion. > > In your relative path example you're probably just seeing an > empty database, i.e. not the same database as the one you have > worked with before to create the instances. > > If you still need help then please give a full example that > we can reproduce. > > Leslie > > > > _______________________________________________ > elephant-devel site list > elephant-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/elephant-devel >