Re: [Libpaxos-general] Problems with libpaxos
Status: Beta
Brought to you by:
marco-tijuana
From: Steve S. <ssc...@da...> - 2009-02-27 18:58:05
|
Marco, Is the patch to libfastpaxos simply removing the invocation of learner_init_threaded in proposer_init? -steve On Fri, Feb 27, 2009 at 10:52 AM, Steve Schleimer <ssc...@da... > wrote: > Marco, > > Thanks for the reply. I would appreciate the patch for libfastpaxos. If > you could describe it, that would be fine as well. > > We need this setup to permit the proposer to be updated with current > information. It was not clear how to obtain the current set of values from > the proposer. If that is possible, then I can simply use what the proposer > receives back and update that rather than run a separate learner. However, > a separate learner would be best for us. > > Thanks again for you help in this. > > -steve > > PS has anyone else used the library other than yourselves? > > > > > On Fri, Feb 27, 2009 at 9:45 AM, Marco Bridge <mar...@gm...>wrote: > >> Hi Steve, >> I replied this morning but i still have some problem with the sourceforge >> mailing list interface, >> don't know where messages are going... >> >> Regarding the problem you mentioned earlier, >> it is not possible to start a learner in a proposer process, >> the proposer starts a learner internally and initializing another one >> causes problems. >> This version of LP was created ad-hoc for another project and we didn't >> need that feature. >> >> The same is true for libfastpaxos, but in that case the fix is really >> simple, >> if you want i can create a small patch for you. >> >> Regarding the fact that proposer_submit does not return, >> the semantic is different in libpaxos and in libfaspaxos. >> In the first one the function always returns immediately, >> in the latter it returns only once the value has been delivered to >> learners. >> >> I know the test don't pass, they are really old and should be updated. >> libpaxos is not that reliable at all and probably you shouldn't use it, >> unless it's just to play around with the protocol. >> >> libpaxos2, work in progress, >> will fix those issues and add some more features >> (leader election, acceptors reconfiguration, etc). >> >> Ciao >> Marco >> >> >> On 27 Feb, 2009, at 16:30 , Steve Schleimer wrote: >> >> Hi, >>> >>> I sent a message yesterday, but it appears to have been lost. >>> >>> I am attempting to use libpaxos on centOS: >>> >>> Linux xxx 2.6.9-67.0.22.ELsmp #1 SMP Wed yyy x86_64 x86_64 x86_64 >>> GNU/Linux >>> >>> compiling using >>> >>> gcc (GCC) 4.3.2 >>> >>> Test results using all_tests is: >>> >>> ./all_tests.sh >>> -------------------------------------- >>> Test 0: hello_worlds.sh >>> -------------------------------------- >>> Starting receiver >>> Starting sender >>> Some test process did not terminate! >>> *** Failed! >>> -------------------------------------- >>> Test 1: learner_test1.sh >>> -------------------------------------- >>> Starting network logger >>> Starting network learner >>> Sending accept for 1 >>> Sending accept for 2 >>> Sending accept for 0 >>> Learner did not terminate! >>> *** Failed! >>> -------------------------------------- >>> Test 2: learner_test2.sh >>> -------------------------------------- >>> libpaxos is configured for 3 acceptors >>> Starting network logger >>> Starting learner >>> Sending first round of accepts >>> Sending second round of accepts >>> Sending third round of accepts >>> Sending last accept >>> Learner did not terminate! >>> *** Failed! >>> -------------------------------------- >>> Test 3: learner_test3.sh >>> -------------------------------------- >>> Starting network logger >>> Starting learner >>> Sending learns for 0 >>> Sending learns for 1 >>> Sending learns for 4 >>> Sending learns for 5 >>> Sending learns for 3 >>> Sending learns for 6 >>> Learner did not terminate! >>> *** Failed! >>> -------------------------------------- >>> Test 4: learner_test4.sh >>> -------------------------------------- >>> libpaxos is configured for learning window of 512 >>> Starting network logger >>> Starting learner >>> Sending learns from 1 to 511 >>> Sending learns for instance 511 << BAD >>> Sending learns for instance 0 >>> Sending learns for instance 511 >>> Learner did not terminate! >>> *** Failed! >>> -------------------------------------- >>> Test 5: acceptor_test1.sh >>> -------------------------------------- >>> Starting network logger >>> Starting network acceptor >>> Send 10 valid prepares >>> Send 10 prepares that should be ignored >>> Send 10 valid prepares with greater ballot >>> There are differences in output! >>> Check diff file /users/sschlmr/libpaxos-src-rev17/tests/ac1_diff.txt >>> *** Failed! >>> -------------------------------------- >>> Test 6: acceptor_test2.sh >>> -------------------------------------- >>> Starting network logger >>> Starting network acceptor >>> Send valid prepare + accept >>> Send send accept without promise >>> Then send prepare with higher ballot >>> And corresponding accept with same ballot >>> There are differences in output! >>> Check diff file /users/sschlmr/libpaxos-src-rev17/tests/ac2_diff.txt >>> *** Failed! >>> -------------------------------------- >>> Test 7: acceptor_test3.sh >>> -------------------------------------- >>> libpaxos is configured for acceptor_array_size = 1024 >>> Starting network logger >>> Starting network acceptor >>> Send valid prepare for instance 0 >>> Send valid prepare for iid that should overwrite >>> Send valid accept for instance 0 >>> Send valid accept for instance Acceptor_array_size >>> Require a learner sync for both instances >>> There are differences in output! >>> Check diff file /users/sschlmr/libpaxos-src-rev17/tests/ac3_diff.txt >>> *** Failed! >>> -------------------------------------- >>> -------------------------------------- >>> 0/8 Test passed >>> >>> >>> Any thoughts? >>> >>> Thanks >>> >>> -steve >>> >>> >>> >>> -- >>> Stephen Schleimer >>> Infrastructure Architect >>> DataScaler, Inc. >>> 201A Ravendale Drive >>> Mountain View, CA 94043 >>> 650.515.3612 Phone >>> 650.887.1544 Fax >>> >>> >>> ------------------------------------------------------------------------------ >>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >>> CA >>> -OSBC tackles the biggest issue in open source: Open Sourcing the >>> Enterprise >>> -Strategies to boost innovation and cut costs with open source >>> participation >>> -Receive a $600 discount off the registration fee with the source code: >>> SFAD >>> >>> http://p.sf.net/sfu/XcvMzF8H_______________________________________________ >>> Libpaxos-general mailing list >>> Lib...@li... >>> https://lists.sourceforge.net/lists/listinfo/libpaxos-general >>> >> >> > > > -- > Stephen Schleimer > Infrastructure Architect > DataScaler, Inc. > 201A Ravendale Drive > Mountain View, CA 94043 > 650.515.3612 Phone > 650.887.1544 Fax > > -- Stephen Schleimer Infrastructure Architect DataScaler, Inc. 201A Ravendale Drive Mountain View, CA 94043 650.515.3612 Phone 650.887.1544 Fax |