Commit Graph

5237 Commits

Author SHA1 Message Date
Sage Weil
b9ce3dae02 mds: message include cleanup 2008-12-23 11:45:21 -08:00
Sage Weil
247e6d955e mds: fix up filelock states
Allow wrlocks in LOCK_MIXED (which will serve the same function as
LOCK_SCATTER).

Clean up can_wrlock()/can_rdlock().. there were lots of states in
there that shouldn't have been.
2008-12-23 11:45:21 -08:00
Sage Weil
397938f45d mds: new FileLock lock->sync state
Previously this was avoided, more or less by accident.  ScatterLock
has it, so we'll presumably need it in FileLock to fold them
together.
2008-12-23 11:45:21 -08:00
Sage Weil
1df9248df6 mds: rename gather lock states
Easier to read: LOCK_oldstate_newstate, "oldstate->newstate"
2008-12-23 11:45:21 -08:00
Sage Weil
2050e49010 mds: include max mds in mdsmap summary 2008-12-23 11:45:06 -08:00
Sage Weil
1163bcd618 mds: fix standby_replay on startup 2008-12-23 11:45:03 -08:00
Yehuda Sadeh
c8f31fb2fa remove uninitialized warnings 2008-12-22 15:20:27 -08:00
Yehuda Sadeh
f21f172595 osd: gracefully exit when create_object_store() returns NULL 2008-12-22 13:13:20 -08:00
Sage Weil
58522622eb osd: inc_lock attr is optional 2008-12-22 10:10:50 -08:00
Sage Weil
63f63bb2a7 osd: update pg degraded stats only when active
peer_missing needs to be defined.
2008-12-22 10:10:49 -08:00
Sage Weil
b873c1702d osd: initialize generate_backlog_epoch 2008-12-22 10:10:49 -08:00
Sage Weil
35d5c74df3 osd: clear_prior when activating
This just ensures that, once active, an osd state change affecting our
prior_set won't make us repeer.  E.g., a prior going down.
2008-12-22 10:10:48 -08:00
Sage Weil
21bf68c212 osd: clear backlog flag when done
Otherwise we won't requeue again later.
2008-12-22 10:10:47 -08:00
Sage Weil
199d03243f osd: only update degraded object stats after peering
This avoids incorrectly populating peer_missing[acting[i]], which
in turn screws up peering and recovery.
2008-12-19 12:27:46 -08:00
Sage Weil
af9559e784 osd: clear STATE_PEERING during replay 2008-12-18 16:46:07 -08:00
Sage Weil
e194bc95cf osd: safely encode all other attributes 2008-12-18 16:45:56 -08:00
Sage Weil
0db8c4c773 osd: properly encode ondisklog attr
Also combine into a single attr.
2008-12-18 16:01:41 -08:00
Sage Weil
ee4b96187b buffer: optionally preallocate some append_buffer 2008-12-18 15:24:00 -08:00
Sage Weil
9f1c7b16c1 make time format easier to read 2008-12-18 11:34:11 -08:00
Sage Weil
41dfd4089d ceph: terminate dumped output 2008-12-17 16:48:38 -08:00
Sage Weil
1a94147b2c mon: tell stdout where the monmap came from 2008-12-17 15:42:23 -08:00
Sage Weil
705496f660 dstart: cm.txt update (for 3x) 2008-12-17 15:42:22 -08:00
Sage Weil
705918340f ceph: fix observe renewal; ack by paxos 2008-12-17 15:43:44 -08:00
Sage Weil
901e58266f todo 2008-12-17 14:06:15 -08:00
Sage Weil
022d80126f verify-mds-journal: periodically verify mds replay; stop if error 2008-12-17 13:37:34 -08:00
Sage Weil
75421fcdb4 mds: only standby-replay when explicitly requested on startup.
Until it does something more than just replay the log and quit.
2008-12-17 13:32:11 -08:00
Sage Weil
6bf3f40190 mds: basic standby-replay hack
Replay the log, and exit cleanly if everything looks ok.
2008-12-17 13:12:27 -08:00
Sage Weil
81be48b5b4 mon: replace laggy standby-replay nodes too
If there is someone to take over...
2008-12-17 13:02:44 -08:00
Sage Weil
7b695ec689 mon: mark extra standby mds's as standby-replay
Not that the mds does the right thing, yet...
2008-12-17 12:34:28 -08:00
Sage Weil
c941da1303 osd: enable queue_generate_backlog on pg query
Code was disabled, oops.
2008-12-17 11:21:09 -08:00
Sage Weil
450cfeeec4 mds: fix mdsmap dump
Don't fall over duplicate mds (id,inc) pairs.
2008-12-17 11:20:23 -08:00
Sage Weil
ba140b5a6d msgr: stop accepter on socket error
Only if we get a few in a row.
2008-12-17 10:32:09 -08:00
Sage Weil
82b0bc39e5 mds: restructure mds map, clean up mdsmon
More flexible mdsmap structure.  Cleaner interface.
2008-12-17 10:32:09 -08:00
Sage Weil
6fb760b572 mon: clean up mdsmon a bit; do takeovers from tick(), not _committed()
This puts all the takeover logic in one place.  And avoids any
funny issues where the monitor fails before it can do a takeover.
More robust.
2008-12-17 10:32:09 -08:00
Sage Weil
80302174fe mon: blacklist failed mds 2008-12-17 10:32:09 -08:00
Sage Weil
c04ef1a280 mon: expire old blacklist items (osdmap change) 2008-12-17 10:32:09 -08:00
Sage Weil
117fc9d82d osd: clean out acker cruft 2008-12-17 10:32:09 -08:00
Sage Weil
d2d30489e6 rev protocol, mon disk formats due to mdsmap change 2008-12-17 10:32:09 -08:00
Sage Weil
b3aa3ed7c3 mon: mdsmap infrastructure for standby states, up:standby-replay
We need a state value for standby mds's.
2008-12-17 10:32:09 -08:00
Sage Weil
17d5ff6bba osd: fix pg stat reporting
We were skipping pgs that weren't active instead of not primary.
2008-12-16 13:37:35 -08:00
Sage Weil
dd091b38d5 osd: do delayed activation after replay via a queue, not timer event
This avoids osd_lock dependency by using osd->timer.
2008-12-16 13:37:32 -08:00
Sage Weil
6d28c8623f osd: take osd_lock in generate_backlog before peer()
Peer() uses the osd.timer to schedule the replay interval, which
needs osd_lock.
2008-12-16 13:18:23 -08:00
Sage Weil
e48fc3c586 mds cleanup 2008-12-16 11:32:44 -08:00
Sage Weil
e1abc7fad3 mds: add logclient 2008-12-16 11:25:21 -08:00
Sage Weil
cff97c1247 logclient: adjust link_dispatcher; add unlink_dispatcher 2008-12-16 11:25:14 -08:00
Sage Weil
b917de3b80 todos 2008-12-16 10:56:53 -08:00
Sage Weil
d0041ee81c mds: remove follows==0 special cases
A follows==0 shouldn't have any special meaning anymore.  See also
1876ca5ad4.
2008-12-15 16:40:08 -08:00
Sage Weil
dc0cc83a44 mds: when recovering size, don't munge up projected->size; use new_size 2008-12-15 15:57:36 -08:00
Sage Weil
415b4bbca8 mds: update rbytes with size on truncate, etc. 2008-12-15 15:56:51 -08:00
Sage Weil
48c3da005f mon: send mdsmap on beacon from mds not in the map
This happens when an mds goes laggy and is marked down by the
monitor.
2008-12-15 14:33:00 -08:00