Grokbase
Topics Posts Groups | in
x
[ help ]

Gavin Brebner (gavin.br...@orange.fr)

Profile | Posts (1)

User Information

Display Name:Gavin Brebner
Partial Email Address:gavin.br...@orange.fr
Posts:
1 total
1 in MogileFS

1 Most Recent Post

1) Gavin Brebner Minor buglet (?) in mogtool
| +1 vote
I've created my first test mogilefs system, and decided to start with the simplest possible...
MogileFS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
I've created my first test mogilefs system, and decided to start with
the simplest possible configuration - a single storage location.
mogadm had no problems with me creating a 'single' storage class that
had only a single copy, but running mogtool to inject data into the
file system led to an infinite loop of

Beginning replication wait: 1
Beginning replication wait: 1
Beginning replication wait: 1
Beginning replication wait: 1

Looking at the code I see that in mogtool, method 'inject()' there's a
section of code that is more or less like :



    while (%still_need) {
        print "Beginning replication wait: " . join(' ', sort { $a <=>
$b } keys %still_need) . "\n";
        sleep 1; # give things time to replicate some

        # now iterate over each and get the paths
        foreach my $num (keys %still_need) {
           
            <snip>

            if (scalar(@npaths) >= 2) {
                
                <snip>
                code that updates %still_need to remove entry if OK
            }
        }
    }

So, if the class has no replication, it will wait forever. If you're
prepared to accept non-replicated file classes, then this code should
be updated, otherwise mogadm should refuse to allow a non-replicated
storage class ?

Regards,

Gavin

spacer
Profile | Posts (1)
Home > People > Gavin Brebner