Commit Graph

8893 Commits

Author SHA1 Message Date
Yehuda Sadeh
85a25b5e3b auth: fix monclient startup issue 2009-11-18 15:29:56 -08:00
Yehuda Sadeh
eb295b9e14 auth: fix client and server side negotiation 2009-11-18 14:19:01 -08:00
Sage Weil
d00b917143 uclient: replace C_Cond with C_SafeCond 2009-11-18 12:25:46 -08:00
Sage Weil
ca5e4dd0d3 todo 2009-11-18 11:56:26 -08:00
Sage Weil
a845b662e7 todo 2009-11-18 11:04:00 -08:00
Sage Weil
4fab3f754d osd: allow reinitialization of osd journal
(without hosing osd data)
2009-11-18 10:58:09 -08:00
Greg Farnum
30a057cf04 rados: Move array to heap. Prevent segfault when you use too-large a write size 2009-11-18 10:13:56 -08:00
Greg Farnum
ba8aa58197 rados: remove unused paramater, add very primitive read bench in verify step 2009-11-18 10:13:56 -08:00
Greg Farnum
d4db1ec4c5 rados: Cosmetic changes for Sage 2009-11-18 10:13:56 -08:00
Sage Weil
5eeb711b6b auth: change server side negotiation a bit
client is not fixed up yet
2009-11-18 10:12:10 -08:00
Sage Weil
91e3e49f7a Merge branch 'unstable' of ceph.newdream.net:git/ceph into unstable 2009-11-17 16:31:18 -08:00
Sage Weil
88377be21d osd: eval access mode before try_*
The problem is the try_* functions may change the mode, but a start_write
may not follow if the op doesn't execute (for any number of reasons).  So
the next time we come around, we may need to reset back to IDLE if
num_wr == 0.  Be careful about the wake flag.

This fixes osd op hangs (particularly after mds restart, and lots of
failed stats on objects during file size/mtime recovery).
2009-11-17 16:30:39 -08:00
Sage Weil
cec672d54d osd: debug pg mode 2009-11-17 16:30:39 -08:00
Sage Weil
955351ff90 sepia: valgrind for a while 2009-11-17 16:30:39 -08:00
Sage Weil
18bbb8f88a objecter: be more verbose about laggy requests 2009-11-17 16:30:39 -08:00
Sage Weil
ae4e9784fb msgr: use discard_queue, kill drop_msgs 2009-11-17 16:30:39 -08:00
Sage Weil
4a644e246e msgr: don't initiate connect if we keepalive on unconnected peer 2009-11-17 16:30:39 -08:00
Sage Weil
6e88d27685 msgr: fix possible use-after-free by taking pipe lock during reap
This ensures that whoever called stop() (mark_down, in particular) finished
with the pipe (unlocked it) before we go and free it.  Otherwise we might
call p->lock.Unlock() after the reaper deleted the Pipe, mucking up some
other memory.

I don't think this was actually triggerd, tho, since we would have seen
the assert(nlock == 0) in ~Mutex???
2009-11-17 16:30:36 -08:00
Sage Weil
302fc82f32 msgr: use common helper for reader/writer thread stop and reap queueing; fix locking
We weren't holding lock during ::close(sd)
2009-11-17 16:30:12 -08:00
Sage Weil
760165c64a msgr: rename report_failures -> drop_msgs
Name was from legacy behavior
2009-11-17 14:03:36 -08:00
Sage Weil
318698b07e msgr: small cleanups 2009-11-17 14:02:57 -08:00
Sage Weil
62ccae85ea monc: small sanity check 2009-11-17 14:02:09 -08:00
Sage Weil
81fd4e159c uclient: set mode on snapdir properly 2009-11-17 11:37:36 -08:00
Sage Weil
09938e891b uclient: assert we have CAP_PIN
Not sure why that was conditional before??? Hmm!
2009-11-17 11:34:02 -08:00
Sage Weil
3e8e5f6e90 uclient: always retain CAP_PIN 2009-11-17 11:30:23 -08:00
Sage Weil
fcc234a8a0 monc: small cleanup
avoid unnec finish_hunting call on get_monmap_privately
2009-11-17 10:46:48 -08:00
Greg Farnum
cfd69fc48e rados: Update stat calculation and display; change to wait_for_safe 2009-11-17 10:03:11 -08:00
Greg Farnum
a3cb25c955 qa: We want to stop on errors. Add new scripts. 2009-11-17 09:13:47 -08:00
Yehuda Sadeh
0669ca21f4 auth: reuse global_id when requesting tickets 2009-11-16 16:46:59 -08:00
Yehuda Sadeh
9731313896 vstart: fix overwrite conf 2009-11-16 16:46:59 -08:00
Sage Weil
fecee16d9d mon: fix decode authmon stash on restart 2009-11-16 14:33:12 -08:00
Sage Weil
709be25a2b mds: don't crap on !check_from, this doesn't happen with nolaggy 2009-11-16 14:25:30 -08:00
Sage Weil
8c6d2769b1 mon: move misplaced parens 2009-11-16 14:25:13 -08:00
Sage Weil
aa4e5b5752 todo 2009-11-16 13:35:45 -08:00
Sage Weil
f50a0517b3 msgr: get rid of harmless valgrind error
==7781== Source and destination overlap in memcpy(0x5B97EA8, 0x5B97EA8, 136)
2009-11-16 11:46:03 -08:00
Sage Weil
40edb9e253 mon: fail on write error
Don't rename badly written file.  Also assert success, for now.
2009-11-16 11:45:25 -08:00
Sage Weil
37145dc154 monc: fix race/deadlock for get_monmap_privately 2009-11-13 16:38:52 -08:00
Sage Weil
a22418bb94 uclient: use Inode::auth_cap to find mds to write back snap cap metadata to 2009-11-13 16:27:26 -08:00
Sage Weil
e5ca40dd0c uclient: keep MClientRequest local to send_request 2009-11-13 16:26:59 -08:00
Sage Weil
63f75e5608 mds: journal open_files based on is_any_caps_wanted(), not is_any_caps()
Actually we're a bit conservative in a few places since the wanted check
is a bit more expensive.  We always do a full check in try_to_expire, so
much of the time we can do the quick check only.
2009-11-13 15:21:32 -08:00
Sage Weil
07369305f8 mds: don't rejournal files with caps that are unwanted
If they're unwanted, it's no biggie to fail to reconnect the cap.  And
Locker::adjust_cap_wanted() already adjusts the open_file logseg lists in
this way, so let's just totally consistent.
2009-11-13 15:21:32 -08:00
Sage Weil
7e7a79e57b mds: don't croak on open_files without caps
We can get a capless inode here if we replay an open file, the client
fails to reconnect it, but does REPLAY an open request (that adds it
to the logseg).  AFAICS it's ok for the client to replay an open on a
file it doesn't have in it's cache anymore.
2009-11-13 15:21:32 -08:00
Greg Farnum
f3e746d5e6 rados: status printouts are now threaded 2009-11-13 11:56:42 -08:00
Sage Weil
ca342b8771 mkmonfs: cleanup monmap fn arg 2009-11-13 11:10:36 -08:00
Sage Weil
531f227f33 Makefile: include all the headers we need to build 2009-11-13 10:55:31 -08:00
Sage Weil
788ddaa319 config: accept list of possible conf file locations; include ./ceph.conf
This makes './ceph -w' work with './vstart.sh -x'.
2009-11-13 10:47:52 -08:00
Sage Weil
75a3c1ac24 vstart: -x to start up with cephx 2009-11-13 10:40:10 -08:00
Sage Weil
2acf8b61b0 monc: fix race/deadlock for get_monmap_privately 2009-11-13 10:40:02 -08:00
Sage Weil
9880cad39c mds: don't try to send mdsmap to clients that need to reconnect
It won't work, clients must connect to us.

Also stop sending the map on recovery finish; they'll also (currently, at
least) get that from the monitor.
2009-11-13 10:09:31 -08:00
Sage Weil
2fb6f73618 mds: ignore/warn on late client reconnect attempts
In the future maybe we can do better (i.e. best effort attempt to reconnect
after the normal interval has passed)
2009-11-13 10:09:12 -08:00