Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to connect to database: Access denied for user 'mogilefs #1

Open
wants to merge 418 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
418 commits
Select commit Hold shift + click to select a range
853b6c6
t/httpfile: more tests for larger (100M) file
Nov 22, 2011
6bf8714
increase MD5 buffers to 1 megabyte (from 16K)
Nov 22, 2011
175e328
side_channel: switch to hexdigest for exchanging md5 checksums
Nov 23, 2011
857e5da
add MogileFS::Checksum class
Nov 23, 2011
bf24853
store: update class table with checksumtype column
Nov 23, 2011
c497912
replicate: optional digest support
Nov 23, 2011
380f21c
class: wire up checksum support to this
Nov 23, 2011
cc3a551
t/40-httpfile.t: speedup test with working clear_cache
Nov 24, 2011
81e7917
doc: add checksums.txt for basic design/implementation notes
Nov 25, 2011
5713152
checksum: add "from_string" and "save" function
Nov 25, 2011
893ba78
checksums: genericize to be algorithm-independent, add SHA*
Nov 25, 2011
85e9bea
wire up checksum to create_close/file_info/create_class commands
Nov 25, 2011
7ecf77d
test for update_class with checksumtype=NONE
Nov 25, 2011
0323554
add MogileFS::FID->checksum function
Nov 25, 2011
fdab72f
add checksum generation/verifiation to replication worker
Nov 26, 2011
bd624ed
monitor observes Content-MD5-rejectability
Nov 27, 2011
55b29e5
replication skips HTTPFile->digest if device can reject bad MD5s
Nov 27, 2011
7b417cd
doc: update checksums document
Nov 27, 2011
3bc57a8
ensure checksum row is deleted when FID is deleted
Nov 29, 2011
6ea29a4
replicate generates proper CRLF for Content-MD5 header
Nov 29, 2011
de77caf
flesh out fsck functionality for checksums
Nov 29, 2011
e8ceb02
rename checksum{type,name} => hash{type,name}
Nov 29, 2011
739e275
Newer SQLite _can_ ALTER TABLE .. ADD COLUMN in some cases
Nov 29, 2011
9fa5453
always use HTTPFile->digest with a the ping callback
Nov 29, 2011
51bf680
get_domains returns hashtype as a string
Nov 29, 2011
d9527ab
doc/checksums: clarify binary column type for various DBs
Dec 2, 2011
dce4bb5
httpfile: fix timeout comparison when digesting via mogstored
Jan 18, 2012
a26811c
fsck: add fsck_auto_checksum server setting
Mar 10, 2012
37ad4cc
checksums: disable all hash algorithms except MD5
Mar 10, 2012
35dcf3e
fsck_checksum setting replaces fsck_auto_checksum
Mar 11, 2012
a4af4ca
checksums: use a low-priority task queue for fsck digests
Mar 12, 2012
e596d52
DevFID size caching for fsck with checksumming
Mar 13, 2012
1fd5ef4
re-enable SHA-1 for checksums
Mar 13, 2012
4937ade
doc/checksums: use $HASHTYPE for referring to hash names
Mar 22, 2012
b396949
Add checksum to file_debug output
dormando Mar 30, 2012
b4cca74
Fix fsck status when running for the first time
dormando Mar 30, 2012
f19e095
make fsck_checksum == off honored in more places
dormando Mar 30, 2012
d9bb8e8
Checking in changes prior to tagging of version 2.60.
dormando Mar 30, 2012
c0dcf7f
log: enable autoflush for stdout logging
Mar 10, 2012
ea5d78d
worker: delete_domain returns has_classes error
Apr 14, 2012
508a958
monitor: only broadcast reject_bad_md5 on change
Apr 14, 2012
0bdec9b
tests: add test for fsck functionality
Apr 18, 2012
5aa8dc4
tests: fix fsck test to work on older LWP::UserAgent
Apr 18, 2012
644be50
add fsck test to MANIFEST
Apr 22, 2012
8789f2f
tests: fsck test use MogileFS::Store API when possible
Apr 22, 2012
5255026
t/60-fsck.t: fix overly long sleep when waiting for fsck log
Apr 23, 2012
ccab7b4
t/60-fsck: additional test cases
Apr 27, 2012
eba5cad
fsck: log bad count correctly instead of policy violation
Apr 24, 2012
f54abb1
additional tests for fsck stop, resume and stats
May 1, 2012
e7b9f1f
t/60-fsck: retry SQL statements on deadlock
May 3, 2012
2da72ed
t/60-fsck: allow fsck_highest_fid_checked to be zero
May 4, 2012
29bc491
t/60-fsck: fix typo resulting in useless check
May 9, 2012
db02848
t/60-fsck: fix potential race conditions
May 9, 2012
3c1c680
fsck: update devcount, forget devs on unfixable FIDs
May 11, 2012
56ff97b
fsck: cleanup and reduce unnecessary devcount updates
May 12, 2012
d51d0bd
t/60-fsck: detect fsck stalls via '!watch'
May 17, 2012
fa1a6af
t/60-fsck: use "!to <job> :shutdown" to kill workers
May 17, 2012
5151d6d
fsck: prevent running over 100% completion
May 18, 2012
39dd796
remove redundant code to ignore SIGPIPE
May 12, 2012
d8b5805
delete: prevent orphan files from replicator race
Mar 5, 2012
e8d276a
don't attempt to broadcast undef config values to children
May 3, 2012
67f95e3
eliminate dead code for invalid_meta*
May 4, 2012
7a8ebda
store: remove unused random_fids_on_device() sub
May 4, 2012
b1c80a2
monitor: remove unnecessary conditional assignments
May 15, 2012
19ab0fa
tests: use done_testing() instead of test counts
May 3, 2012
b44b12a
Bump Test::More req to get done_testing()
dormando May 18, 2012
56206f2
store: remove get_fids_above_id() subroutine
May 18, 2012
c744b23
worker/query: Add optional callid parameter
notti May 1, 2012
3ba3dd5
fix redefinition error with previous commit
dormando May 18, 2012
fc8ba6b
sqlite: implement locking via tables
Mar 1, 2012
3e7c94c
move common lock code into base Store module
Mar 1, 2012
4ff90dc
sqlite: delete expired locks regardless of hostname
May 18, 2012
f54e6fd
avoid unnecessary devcount update in create_close
May 10, 2012
5605390
fix issue #57 by Pyry and Eric
dormando May 19, 2012
5f48f8d
size arg check from tomas doran
dormando May 15, 2012
3f8fffd
drop Test::More to 0.88 - don't need subtests
dormando May 19, 2012
27a51c2
t/50-checksum: /possibly/ fix a stuck test
May 19, 2012
7b058a9
Checking in changes prior to tagging of version 2.61.
dormando May 19, 2012
28fad96
dangling reference to MogileFS::Sys removed
dormando May 19, 2012
b643f33
Postgres: Fix v15 schema upgrade.
robbat2 May 19, 2012
0d83c44
fix CHANGES for 2.60 :P
dormando May 19, 2012
bfdfc42
Checking in changes prior to tagging of version 2.62.
dormando May 19, 2012
ac5534a
postgres: fix replace_into_file regression in 2.61
May 26, 2012
768f03b
Checking in changes prior to tagging of version 2.63.
dormando May 30, 2012
4fe092f
monitor skips hosts marked dead or down
Jun 1, 2012
c84760f
Device->observed_* all respects observed host state
Jun 1, 2012
2dd9a1b
Device->should_read_from respects all host/device states
Jun 2, 2012
d0de5c5
DevFID size/checksum respects Device->should_read_from
Jun 2, 2012
ae7b415
get_paths: deprioritize devs in "drain" state
Jun 2, 2012
1386dc3
t/00-startup: explicit fid test for create_open/close
May 30, 2012
62b3bdb
connection/mogstored: remove sock_if_connected()
May 22, 2012
42b2992
test for existing case-insensitive list_keys behavior
Jan 16, 2012
12fa688
implement "case_sensitive_list_keys" server setting
Jan 16, 2012
f2aca49
t/02-host-device: unit tests for device/host state checks
Jun 21, 2012
2ec4798
Delete memcache data when we replicate fids
May 4, 2012
23322a1
Checking in changes prior to tagging of version 2.64.
dormando Jun 22, 2012
6750311
When a mogstored is down, die with a more informative message.
Jul 18, 2012
159cb25
iostat: allow MOG_IOSTAT_CMD env override
Jun 21, 2012
6f0a20a
iostat: increase flexibility of iostat parser
Jun 21, 2012
b70fef9
remove old rebalance knobs from server settings
Jul 10, 2012
6e47a56
fix tests when /etc/mogilefs/mogstored.conf exists
Aug 7, 2012
8c4554c
tests: add basic test for reaper
Jul 18, 2012
15eca7a
reaper: factor out reap_fid sub from the work loop
Jul 18, 2012
57a5099
reaper: global lock around DB interaction
Jul 18, 2012
8cc75d8
reaper: add "queue_rate_for_reaper" server setting
Jul 18, 2012
e51ee46
move ENDOFTIME constant from replicate to store
Jul 18, 2012
0715d95
reaper: add queue_size_for_reaper server setting
Jul 18, 2012
6218dc7
reaper: switch to Danga::Socket for scheduling
Jul 19, 2012
f015219
reaper: remove update_devcount call
Jul 19, 2012
84dee81
reaper: better handling of lock failures
Aug 4, 2012
208b43f
Postgres advisory lock instead of table-based lock
robbat2 May 18, 2012
21a6694
Cleanup lock timeout sleep location per Eric.
robbat2 May 19, 2012
fae9663
Checking in changes prior to tagging of version 2.65.
dormando Aug 14, 2012
823becc
[#58] load the latest version of the nginx module
frett Nov 3, 2012
7205d52
[#58] load the Nginx server file so it can be used
frett Nov 3, 2012
f8cfff6
[#58] fix the code generating sections for each device
frett Nov 3, 2012
33fef38
[#58] disable logging and move the pid to the data docroot to make ng…
frett Nov 3, 2012
9424a04
[#58] remove a couple unnecessary configuration directives per Gernot…
frett Nov 12, 2012
bc37655
[#58] only specify the root once in the server directive instead of f…
frett Nov 12, 2012
d69de20
[#58] relocate the prefix directory to keep nginx from conflicting wi…
frett Nov 12, 2012
0d6e7cd
[#58] store the nginx pid in the prefix dir and reduce the scope of t…
frett Nov 12, 2012
88a39f3
clean up formatting, no functional changes
frett Nov 12, 2012
7904b38
[#58] die if nginx fails to start
frett Nov 13, 2012
d31497a
[#58] utilize non-daemon mode for nginx >= 1.0.9
frett Nov 13, 2012
1510088
[#58] relocate all temp_path's to a temp path specific to mogstored
frett Nov 13, 2012
5a635e6
[#58] support nginx server type in command line options
frett Nov 13, 2012
02ed229
Moved utf-8 config to http block
notti Dec 23, 2012
db1187d
if one really wants to be root - let him be
notti Dec 23, 2012
7c89846
Fix "skip_devcount" during rebalance
Oct 17, 2012
7bc3c35
fix use_dest_devs for rebalance
Nov 1, 2012
ff6ac2c
prevent reqid mismatches (and queryworker death)
Jul 17, 2012
3cebc87
test: expose try_for() as a common test function
Nov 6, 2012
3be61cf
t/50-checksum.t: use common try_for() function
Nov 7, 2012
9614260
t/50-checksum.t: ensure replicate worker is really down
Nov 7, 2012
9457434
checksum: avoid comparison on uninitialized value
Nov 7, 2012
ff5a3da
query: allow "0" key on all commands which take keys
Nov 10, 2012
7851e44
fsck: use replicate lock when fixing FID
Dec 10, 2012
a549b00
fsck: skip non-existent FIDs properly
Dec 11, 2012
25e344a
improve handling of classes which change hash algorithm
Dec 13, 2012
811c621
reaper: validate DB connection before reaping
Dec 18, 2012
f79d69e
t/30-rebalance: remove redundant try_for() function
Jan 6, 2013
d9da3b2
t/00-startup: fix updateclass test
Jan 6, 2013
affc065
support updating the class to the default class which has an id of 0
frett Dec 1, 2012
79e1c5b
add a hook to cmd_updateclass
frett Dec 1, 2012
37ab849
Checking in changes prior to tagging of version 2.66.
dormando Jan 7, 2013
b656875
Reseed the random number generator after forking.
Jan 8, 2013
70c8d58
Pull out device sorting into it's own method for overriding.
Jan 8, 2013
818f802
Do both sorts in one method, to save on shared initialisation.
Jan 8, 2013
92046c1
worker: set monitor_has_run flag at initialization
Jan 6, 2012
decedfe
monitor: remove dead iostats code/comments
Sep 4, 2012
ca46b42
ProcManager: favor using recently-used queryworkers
Sep 11, 2012
ee5f196
disable Nagle's algorithm for accepted clients
Sep 29, 2012
86129e5
sqlite: use immediate transactions to prevent busy errors
Oct 20, 2012
3ab1d90
Merge remote-tracking branch 'pull/26/head' into next-nginx
Jan 11, 2013
b05bced
nginx: additional version check for uwsgi and scgi
Jan 12, 2013
80c09e2
use the ngx_version function for determining non-daemon support
frett Jan 12, 2013
c8942c0
move checksum and tempfile delete to delete worker
Nov 21, 2012
81b0067
httpfile: avoid killing worker on down sidechannel
Jan 12, 2013
e5b0b0b
typo fix with root check in nginx module
notti Jan 13, 2013
eee892b
query: avoid redundant calls to err_line()
Jan 17, 2013
3ff5eec
query: fix error reporting for _do_fsck_reset
Jan 17, 2013
2aac660
debian/control: sysstat contains /usr/bin/iostat
Oct 23, 2012
c23cc6b
Filter the devices before we do an expensive sort.
Jan 15, 2013
d8de2ba
mogstored: fix kqueue usage with daemonization
Jan 18, 2013
857f2cd
postgres: remove Pg-specific create_class
Jan 18, 2013
d92e2a1
store: wrap create_class in a transaction to avoid races
Jan 18, 2013
7eb1674
domain removal also removes its default class
Jan 18, 2013
61e1d3b
tests: add "!want <count> <jobclass>" helper
Jan 19, 2013
6c9f5f6
reaper: ensure worker can be stopped via "!want"
Jan 19, 2013
e3f7601
Serialize tempfile reaping
dormando Feb 3, 2013
221808c
Checking in changes prior to tagging of version 2.67.
dormando Feb 3, 2013
461b1e3
list_keys: consistent ESCAPE usage across DB types
Feb 7, 2013
0889c79
list_keys: escape in Store, allow [%\\] as prefix
Feb 7, 2013
a92cfe7
reaper: detect resurrection of "dead" devices
Feb 12, 2013
47b710f
fsck: do not log FOND if note_on_device croaks
Feb 12, 2013
32c2313
Tell the kernel we're doing sequential reads.
Feb 13, 2013
534177a
Don't emit warnings if we're lacking the space free of a device. If …
Feb 15, 2013
93eac88
ProcManager: only log times_out_of_qworkers for new queries
Feb 23, 2013
55f3e41
Merge remote-tracking branch 'bogomips/list_keys' into next-small
Feb 26, 2013
2f05313
Merge remote-tracking branch 'bogomips/pending_queries' into next-small
Feb 26, 2013
21049f9
mogstored: avoid bareword on IO::AIO w/o fadvise
Feb 27, 2013
947ae4b
httpfile: correct FILE_MISSING check in digest_mgmt
Feb 23, 2013
265ccef
httpfile: correct timeouts for sidechannel digest
Feb 23, 2013
f369b15
fix "drain" handling used by MultipleHosts replpolicy
Mar 9, 2013
9bba043
fsck: this avoid redundant fsck log entries
Mar 30, 2013
2c52aed
remove unused *::get_dbh subroutines
Apr 1, 2013
b87f38a
ProcManager: log socketpair errors correctly
Jul 10, 2013
d45bbf0
httpfile: log mogstored I/O errors when checksumming
Jul 10, 2013
74844dc
add naive MultipleDevice replication policy
Jul 10, 2013
1f8bc08
store: do not auto-reconnect while holding a lock
Mar 31, 2013
8a5bad0
store: do not disconnect for max_handles while locked
Apr 1, 2013
ad8de9f
allow startup without job_master (and dependent workers)
Apr 1, 2013
18e8a6c
increase receive buffers for large state events
Jul 10, 2013
be0f167
monitor: do not repeat join() for the debug statement
Jul 11, 2013
b5db211
do not replay :monitor_events back to the monitor
Jul 11, 2013
08c83b1
Checking in changes prior to tagging of version 2.68.
dormando Aug 8, 2013
d9d3a9b
move Danga::Socket->Reset to ProcManager
Sep 4, 2012
d8cd470
monitor: refactor/rewrite to use new async API
Sep 4, 2012
333e071
monitor: switch to non-blocking HTTP device checks
Sep 4, 2012
f281556
JobMaster: use Danga::Socket to schedule
Sep 11, 2012
a78bc66
httpfile: remove size check failure backoff handling
Sep 11, 2012
81433c2
fsck: parallelize size checks for any given FID
Sep 11, 2012
d5cd4cf
httpfile: use Net::HTTP::NB, remove LWP::UserAgent
Sep 11, 2012
d45c8a6
httpfile: use HTTP connection pool for DELETE
Sep 11, 2012
13e5fe2
delete worker uses persistent HTTP connections
Sep 12, 2012
bdeaaf9
device: reuse HTTP connections for MKCOL
Sep 20, 2012
7e7e530
create_open: parallelize directory vivification
Sep 20, 2012
b8a0674
replicate: enforce expected Content-Length in http_copy
Sep 19, 2012
9054405
replicate: use persistent connection from pool if possible
Feb 4, 2013
c562af2
host: handle case where conn_get may return undef
Feb 21, 2013
72758a5
ConnectionPool: improve reporting of socket creation errors
Feb 21, 2013
66c8827
t/http.t: test error handling on non-running server
Feb 22, 2013
9b2b87a
connection/{poolable,http}: common retry logic for timeouts
Feb 22, 2013
fa80d20
connection/poolable: stricter timeout key check
Feb 23, 2013
11e3cdc
ProcManager: SetAsChild drops inherited IPC sockets
Sep 4, 2012
4dd1d6f
monitor: remove misleading error message for timeout
Aug 2, 2013
7969ce4
Checking in changes prior to tagging of version 2.70.
dormando Aug 19, 2013
202bbef
add LICENSE file to distro
dormando Dec 15, 2014
b7aff32
host: add "readonly" state to override device "alive" state
Sep 25, 2012
569cbb5
enable TCP keepalives for iostat watcher sockets
Sep 26, 2013
8593b0e
add conn_pool_size configuration option
Oct 14, 2013
fcd13ab
connection/poolable: do not write before event_write
Nov 18, 2013
828ed8e
connection/poolable: disable watch_write before retrying write
Nov 18, 2013
fef1fe7
connection/poolable: defer expiry of timed out connections
Feb 1, 2014
e654401
monitor: defer DB updates until all HTTP requests are done
Feb 1, 2014
b0f05b7
monitor: ping parent during deferred DB updates
Feb 1, 2014
7b6fe2e
monitor: batch MySQL device table updates
Feb 6, 2014
196e928
remove users of unreachable_fids table
Nov 12, 2014
a8dbbea
remove update_host_property
Nov 12, 2014
d0ee2a2
Work with DBD::SQLite's latest lock errors
dormando Dec 16, 2014
6832b1b
Checking in changes prior to tagging of version 2.72.
dormando Dec 16, 2014
f9c9d68
replicate: reduce backoff for too_happy FIDs
Apr 15, 2015
e2bd3ff
enable DB upgrade for host readonly state
Jun 12, 2015
8b76d98
replicate: avoid buffered IO on reads
Dec 17, 2015
8d1d685
Merge remote-tracking branch 'bogomips/fix-readonly' into testing
Feb 9, 2017
aae24cf
Merge remote-tracking branch 'bogomips/fsck-recheck' into testing
Feb 9, 2017
f2c011a
Merge remote-tracking branch 'bogomips/fsck-found-order' into testing
Feb 9, 2017
32fba34
Merge remote-tracking branch 'bogomips/prune-too_happy-v3' into testing
Feb 9, 2017
7eaab8e
Merge remote-tracking branch 'bogomips/resurrect-device' into testing
Feb 9, 2017
2acba9e
ConnectionPool: avoid undefined behavior for hash iteration
Feb 13, 2017
56b39b8
client connection should always be nonblocking
Apr 6, 2017
05cdf17
tracker: client fairness, backpressure, and expiry
Apr 7, 2017
5d18499
client: use single write for admin commands
Apr 7, 2017
7748d36
client: always disable watch_read after a command
Apr 7, 2017
ed1aac3
Merge branch 'client-backpressure' into next
May 8, 2017
acc475c
Merge remote-tracking branch 'bogomips/replicate-nobuf' into next
May 8, 2017
591b6d2
Merge remote-tracking branch 'bogomips/conn-pool-each' into next
May 9, 2017
2c50b8b
fsck: avoid infinite wait on dead devices
Jun 7, 2017
3204f2c
Merge branch 'fsck-timeout' into next
Sep 18, 2017
92b6914
Checking in changes prior to tagging of version 2.73.
dormando Jan 19, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Makefile
blib
pm_to_blib
2 changes: 1 addition & 1 deletion .shipit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist, UploadCPAN

svn.tagpattern = mogilefs-server-%v
git.tagpattern = %v

498 changes: 498 additions & 0 deletions CHANGES

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
License granted to use/distribute under the same terms as Perl itself.
78 changes: 32 additions & 46 deletions MANIFEST
Original file line number Diff line number Diff line change
@@ -1,56 +1,23 @@
CHANGES
LICENSE
examples/testapp/testapp-perlbal.conf
examples/testapp/testapp.psgi
examples/testapp/README
doc/fsck-notes.txt
doc/memcache-support.txt
doc/pluggable-replication-policies.txt
doc/testing.txt
lib/mogdeps/Danga/Socket.pm
lib/mogdeps/Net/Netmask.pm
lib/mogdeps/Perlbal.pm
lib/mogdeps/Perlbal/AIO.pm
lib/mogdeps/Perlbal/BackendHTTP.pm
lib/mogdeps/Perlbal/Cache.pm
lib/mogdeps/Perlbal/ChunkedUploadState.pm
lib/mogdeps/Perlbal/ClientHTTP.pm
lib/mogdeps/Perlbal/ClientHTTPBase.pm
lib/mogdeps/Perlbal/ClientManage.pm
lib/mogdeps/Perlbal/ClientProxy.pm
lib/mogdeps/Perlbal/CommandContext.pm
lib/mogdeps/Perlbal/HTTPHeaders.pm
lib/mogdeps/Perlbal/ManageCommand.pm
lib/mogdeps/Perlbal/Plugin/AccessControl.pm
lib/mogdeps/Perlbal/Plugin/AutoRemoveLeadingDir.pm
lib/mogdeps/Perlbal/Plugin/Highpri.pm
lib/mogdeps/Perlbal/Plugin/NotModified.pm
lib/mogdeps/Perlbal/Plugin/Queues.pm
lib/mogdeps/Perlbal/Plugin/Stats.pm
lib/mogdeps/Perlbal/Plugin/Vhosts.pm
lib/mogdeps/Perlbal/Plugin/AtomInject.pm
lib/mogdeps/Perlbal/Plugin/AtomStream.pm
lib/mogdeps/Perlbal/Plugin/Cgilike.pm
lib/mogdeps/Perlbal/Plugin/EchoService.pm
lib/mogdeps/Perlbal/Plugin/Include.pm
lib/mogdeps/Perlbal/Plugin/LazyCDN.pm
lib/mogdeps/Perlbal/Plugin/MaxContentLength.pm
lib/mogdeps/Perlbal/Plugin/Palimg.pm
lib/mogdeps/Perlbal/Plugin/Redirect.pm
lib/mogdeps/Perlbal/Plugin/Vpaths.pm
lib/mogdeps/Perlbal/Pool.pm
lib/mogdeps/Perlbal/ReproxyManager.pm
lib/mogdeps/Perlbal/Service.pm
lib/mogdeps/Perlbal/Socket.pm
lib/mogdeps/Perlbal/TCPListener.pm
lib/mogdeps/Perlbal/Test.pm
lib/mogdeps/Perlbal/Test/WebClient.pm
lib/mogdeps/Perlbal/Test/WebServer.pm
lib/mogdeps/Perlbal/UploadListener.pm
lib/mogdeps/Perlbal/Util.pm
lib/mogdeps/Perlbal/SocketSSL.pm
lib/mogdeps/Sys/Syscall.pm
doc/checksums.txt
lib/MogileFS/Checksum.pm
lib/MogileFS/Class.pm
lib/MogileFS/Config.pm
lib/MogileFS/Connection/Client.pm
lib/MogileFS/Connection/HTTP.pm
lib/MogileFS/Connection/Mogstored.pm
lib/MogileFS/Connection/Parent.pm
lib/MogileFS/Connection/Poolable.pm
lib/MogileFS/Connection/Worker.pm
lib/MogileFS/ConnectionPool.pm
lib/MogileFS/DevFID.pm
lib/MogileFS/Device.pm
lib/MogileFS/DeviceState.pm
Expand All @@ -62,7 +29,9 @@ lib/MogileFS/HTTPFile.pm
lib/MogileFS/IOStatWatcher.pm
lib/MogileFS/Overview.pm
lib/MogileFS/ProcManager.pm
lib/MogileFS/Rebalance.pm
lib/MogileFS/ReplicationPolicy.pm
lib/MogileFS/ReplicationPolicy/MultipleDevices.pm
lib/MogileFS/ReplicationPolicy/MultipleHosts.pm
lib/MogileFS/ReplicationPolicy/Union.pm
lib/MogileFS/ReplicationRequest.pm
Expand All @@ -71,9 +40,13 @@ lib/MogileFS/Store.pm
lib/MogileFS/Store/MySQL.pm
lib/MogileFS/Store/Postgres.pm
lib/MogileFS/Store/SQLite.pm
lib/MogileFS/Sys.pm
lib/MogileFS/Test.pm
lib/MogileFS/Util.pm
lib/MogileFS/Factory.pm
lib/MogileFS/Factory/Domain.pm
lib/MogileFS/Factory/Class.pm
lib/MogileFS/Factory/Host.pm
lib/MogileFS/Factory/Device.pm
lib/MogileFS/Worker.pm
lib/MogileFS/Worker/Delete.pm
lib/MogileFS/Worker/Fsck.pm
Expand All @@ -88,27 +61,40 @@ lib/Mogstored/ChildProcess/IOStat.pm
lib/Mogstored/FIDStatter.pm
lib/Mogstored/HTTPServer.pm
lib/Mogstored/HTTPServer/Apache.pm
lib/Mogstored/HTTPServer/Nginx.pm
lib/Mogstored/HTTPServer/Lighttpd.pm
lib/Mogstored/HTTPServer/Perlbal.pm
lib/Mogstored/HTTPServer/None.pm
lib/Mogstored/SideChannelClient.pm
lib/Mogstored/SideChannelListener.pm
lib/Mogstored/TaskQueue.pm
Makefile.PL
MANIFEST
mogautomount
mogdbsetup
mogilefsd
mogstored
t/00-startup.t
t/01-domain-class.t
t/02-host-device.t
t/10-weighting.t
t/20-filepaths.t
t/domains-classes.t
t/30-rebalance.t
t/40-httpfile.t
t/50-checksum.t
t/51-checksum_class_change.t
t/60-fsck.t
t/70-reaper.t
t/80-job_master.t
t/checksum.t
t/fid-stat.t
t/hosts-devices.t
t/http.t
t/mogstored-shutdown.t
t/multiple-devices-replpol.t
t/multiple-hosts-replpol.t
t/replpolicy-parsing.t
t/replpolicy.t
t/store-sqlite.t
t/store.t
t/util.t
TODO
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.SKIP
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ _blib$
\bdebian\b
\bconf\b
\.svn
\.git
dev-killmogstored.sh
make-par.sh
mogstored.pp
Expand Down
12 changes: 6 additions & 6 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ $exefiles = ["mogstored"] if exists $ENV{DANGABUILD_MOGSTOREDONLY};
$exefiles = ["mogilefsd"] if exists $ENV{DANGABUILD_MOGILEFSDONLY};

WriteMakefile(
NAME => 'mogilefs-server',
NAME => 'MogileFS::Server',
VERSION_FROM => 'lib/MogileFS/Server.pm',
AUTHOR => 'Brad Fitzpatrick <[email protected]>',
ABSTRACT_FROM => 'lib/MogileFS/Server.pm',
EXE_FILES => $exefiles,
PREREQ_PM => {
'Danga::Socket' => '1.56',
'Perlbal' => '1.76',
'Perlbal' => '1.79',
'Sys::Syslog' => 0,
'Sys::Syscall' => '0.22',
'Getopt::Long' => 0,
Expand All @@ -33,17 +33,17 @@ WriteMakefile(
'IO::AIO' => 0,
'MogileFS::Client' => 0,
DBI => 0,
'Test::More' => 0.88, # 0.88 for done_testing() support
},
META_MERGE => {
no_index => {
directory => 'lib/mogdeps',
package => ['ProcessHandle', 'TrackerHandle', 'MogstoredHandle',
'MogPath', 'Mgd'],
},
resources => {
homepage => 'http://danga.com/mogilefs/',
bugtracker => 'http://rt.cpan.org/Public/Dist/Display.html?Name=mogilefs-server',
repository => 'http://code.sixapart.com/svn/mogilefs/',
homepage => 'http://www.mogilefs.org',
bugtracker => 'http://code.google.com/p/mogilefs/issues/list',
repository => 'git://github.com/mogilefs/MogileFS-Server.git',
MailingList => 'http://groups.google.com/group/mogile',
},

Expand Down
12 changes: 4 additions & 8 deletions MogileFS-Server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

name: MogileFS-Server
summary: MogileFS-Server - MogileFS Server daemons and utilities.
version: 2.36
version: 2.46
release: 2%{?dist}
vendor: Alan Kasindorf <[email protected]>
packager: Jonathan Steinert <[email protected]>
license: Artistic
group: Applications/CPAN
buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n)
buildarch: noarch
source: mogilefs-server-%{version}.tar.gz
source: MogileFS-Server-%{version}.tar.gz
autoreq: no
requires: MogileFS-Server-mogilefsd = %{version}-%{release}
requires: MogileFS-Server-mogstored = %{version}-%{release}
Expand All @@ -26,10 +26,10 @@ This is a dummy package which depends on all the others so you can install them

%prep
rm -rf "%{buildroot}"
%setup -n mogilefs-server-%{version}
%setup -n MogileFS-Server-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX=%{buildroot}%{_prefix}
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX=%{buildroot}%{_prefix} INSTALL_BASE=
make all
make test

Expand All @@ -38,10 +38,6 @@ make pure_install

[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress

# remove mogdeps and related files
rm -rf %{buildroot}/%{perl_vendorlib}/mogdeps
rm -f %{buildroot}/usr/share/man/man3/mogdeps::*

# remove special files
find %{buildroot} \( \
-name "perllocal.pod" \
Expand Down
22 changes: 21 additions & 1 deletion TESTING
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ Testing under Postgresql:
-------------------------
Database setup:
# createuser -SRlD mogile
# createdb -E UTF8 -O mogile tmp_mogiletest
# createdb --template template0 -E UTF8 -O mogile tmp_mogiletest

To run the tests:
# make test \
MOGTEST_DBUSER=mogile \
MOGTEST_DBNAME=tmp_mogiletest \
MOGTEST_DBROOTUSER=postgres \
MOGTEST_DBTYPE=Postgres

Testing under SQLite:
Expand All @@ -24,3 +25,22 @@ Testing under SQLite:
MOGTEST_DBUSER=mogile \
MOGTEST_DBNAME=tmp_mogiletest \
MOGTEST_DBTYPE=SQLite

Available test variables:
-------------------------
MOGTEST_DBNAME
MOGTEST_DBTYPE
MOGTEST_DBUSER
MOGTEST_DBPASS
MOGTEST_DBROOTUSER
MOGTEST_DBROOTPASS

Other use test notes:
---------------------
- Running the tests should be done with equally new versions of MogileFS-Utils
and perl-MogileFS-Client. If you have all 3 git repos checked out in
parallel, set:
"PATH=../MogileFS-Utils/:$PATH PERL5LIB=../perl-MogileFS-Client/lib"
- You can control the disk space used for the test mogstored's by setting
TMPDIR.

5 changes: 4 additions & 1 deletion conf/mogilefsd.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#daemonize = 1
# Enable daemon mode to work in background and use syslog
daemonize = 1
# Where to store the pid of the daemon (must be the same in the init script)
pidfile = /var/run/mogilefsd/mogilefsd.pid
# Database connection information
db_dsn = DBI:mysql:mogilefs:host=127.0.0.1
db_user = username
Expand Down
62 changes: 62 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,65 @@
mogilefs-server (2.44-1) stable; urgency=low

* pull from upstream

-- Dormando <[email protected]> Thu, 23 Dec 2010 21:58:49 -0800

mogilefs-server (2.43-1) stable; urgency=low

* pulled 2.43 from github which includes fixes from 2.42-1
* added pidfile entry to default mogilefsd.conf to fix pidfile creation bug
* added daemon = 1 to default mogilefsd.conf to make mogilefsd use syslog

-- Andre Pascha <[email protected]> Mon, 11 Oct 2010 10:21:27 +0200

mogilefs-server (2.42-1kwick2) stable; urgency=low

* added fixes for over replicated files of todays github pull
* include mindevcount=1 fixes

-- Andre Pascha <[email protected]> Sun, 10 Oct 2010 14:34:25 +0200

mogilefs-server (2.42-1kwick1) stable; urgency=low

* git pull of today
* includes fix from Andre Pascha to make FSCK work again

-- Andre Pascha <[email protected]> Sat, 09 Oct 2010 18:12:18 +0200

mogilefs-server (2.41-1kwick3) stable; urgency=low

* fixed problem with wrong permissions on mogilefsd pid file

-- Andre Pascha <[email protected]> Fri, 08 Oct 2010 17:43:44 +0200

mogilefs-server (2.41-1kwick2) stable; urgency=low

* added pid directory to mogstored/mogilefsd. fixes problem with stopping
the daemon via init skript when daemon is set to 1 in the config. Daemon
needs to be set to 1 or syslogging won't be enabled.

-- Andre Pascha <[email protected]> Fri, 08 Oct 2010 17:33:11 +0200

mogilefs-server (2.41-1kwick1) stable; urgency=low

* moved to github version of MogileFS-Server
* package versioning now coresponds to mogilefs version

-- Andre Pascha <[email protected]> Fri, 08 Oct 2010 16:59:33 +0200

mogilefs-server (1.00-2kwick2) stable; urgency=low

* added dependency to Danga::Socket for mogostored

-- Andre Pascha <[email protected]> Fri, 08 Oct 2010 15:29:46 +0200

mogilefs-server (1.00-2kwick1) stable; urgency=low

* Non-maintainer upload.
* SVN snapshot of 06 Oct 2010

-- Andre Pascha <[email protected]> Thu, 07 Oct 2010 17:26:01 +0200

mogilefs-server (1.00-2) unstable; urgency=low

* fix data loss bug when the 'tempfile' table is InnoDB and the
Expand Down
6 changes: 3 additions & 3 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ Source: mogilefs-server
Section: perl
Priority: optional
Maintainer: Jonathan Steinert <[email protected]>
Build-Depends-Indep: libstring-crc32-perl
Build-Depends-Indep: debhelper (>= 4.1.40), perl (>= 5.6.0-16), libstring-crc32-perl
Standards-Version: 3.6.1.0

Package: mogstored
Architecture: all
Depends: ${perl:Depends}, debhelper (>= 4.1.40), libperlbal-perl, libio-aio-perl, debconf (>= 1.2.0)
Depends: ${perl:Depends}, libperlbal-perl (>= 1.79), libio-aio-perl, debconf (>= 1.2.0), sysstat
Suggests: mogilefs-utils
Description: storage node daemon for MogileFS
Mogstored is a storage node daemon for MogileFS, the open-source
application-level distributed filesystem from Danga Interactive.

Package: mogilefsd
Architecture: all
Depends: ${perl:Depends}, debhelper (>= 4.1.40), libdbd-mysql-perl, libdbi-perl, debconf (>= 1.2.0), libnet-netmask-perl, libwww-perl
Depends: ${perl:Depends}, libdbd-mysql-perl, libdbi-perl, debconf (>= 1.2.0), libnet-netmask-perl, libwww-perl, libdanga-socket-perl
Suggests: mogilefs-utils
Description: scalable distributed filesystem from Danga Interactive
MogileFS is an open-source, application-level distributed filesystem. It
Expand Down
Loading