Commit Graph

9682 Commits

Author SHA1 Message Date
Sage Weil
955cfdb712 mds: make beacon output more informative 2010-04-02 20:07:37 -07:00
Sage Weil
4d5ce888f2 qa: run tests in random order 2010-04-02 20:07:34 -07:00
Sage Weil
fd60670bb7 mds: allow reconnect as long as we are in reconnect state
This used to work.. I think this is fallout from the mds session state
simplification (CLOSED was != NEW before).
2010-04-02 20:07:29 -07:00
Anton Blanchard
2cb112890f Add missing Makefile dependency for debug.cc
We were missing a Makefile dependency for debug.cc, without it make -j fails
because ceph_ver.h hasn't been created.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-04-02 20:05:15 -07:00
Greg Farnum
d08ef701e1 rgw: radosgw_admin can delete users from the system 2010-04-02 16:51:19 -07:00
Greg Farnum
473c22a7f3 rgw: call url_decode in more appropriate places 2010-04-02 16:51:19 -07:00
Greg Farnum
fa8b9b9714 rgw: convert + to space in url_decode 2010-04-02 16:51:19 -07:00
Greg Farnum
1f3431ac62 rgw: send an error response if reading an ACL off disk fails 2010-04-02 16:51:19 -07:00
Greg Farnum
9cb74b9e37 rgw: remove bad local variable shadowing class member variable 2010-04-02 16:51:19 -07:00
Greg Farnum
a9620631d4 rgw: remove some invalid FIXMEs 2010-04-02 16:51:19 -07:00
Sage Weil
fdd5709afc mds: set laggy flag if dispatch takes too long
This prevents, e.g., tick() from coming in immediately after and
closing out client sessions after we chew through something particularly
slow.
2010-04-01 16:13:41 -07:00
Sage Weil
ea035fea80 msgr: set OPEN state after accepting connection
Not doing so can eventually lead to

msg/SimpleMessenger.cc: In function 'int SimpleMessenger::Pipe::accept()':
msg/SimpleMessenger.cc:765: FAILED assert(existing->state == STATE_CONNECTING)
2010-04-01 16:12:49 -07:00
Sage Weil
5fa165881a mds: fix file recovery
This was broken by commit d5574993f.
2010-04-01 13:18:00 -07:00
Sage Weil
4d56710ff3 mds: remove dir from 'new' list on any commit, not just on clean
A dir may be redirtied after the commit, such that it never becomes clean.
It only needs to stay on the 'new' list until it's been written to disk
at least once, though.
2010-04-01 13:17:56 -07:00
Sage Weil
96262fcb9d filejournal: fix journal full handling
We would block on journal full, but then try to continue where we left off,
which broke thoroughly.  Add return codes, and wait at the proper times:

 - if journal if full on first event, wait. otherwise, write what we have
   so far.
 - wait in write_thread_entry(), not check_for_full().

Also fix up 'room' calculation.
2010-04-01 11:39:16 -07:00
Sage Weil
e6bc437528 qa: make snaptest trigger capsnap dirty(caps)==0 bug
Prior to ceph-client.git commit 819ccbfa448, this will cause a

	VFS: Busy inodes after unmount of ceph. Self-destruct in 5 seconds.  Have a nice day...

on umount.
2010-04-01 09:44:04 -07:00
Sage Weil
4f8a353278 mds: remove dentry AND inode when dropping snap metadata; add helper
We should only drop obsolete snapped metadata when it is unreferenced, and
at that point we need to drop the dentry AND inode, not just the dentry.
This delays things until caps are released, among other things.
2010-04-01 07:34:24 -07:00
Sage Weil
74980486d1 osd: improve print of snapc in MOSDOp 2010-04-01 07:28:41 -07:00
Sage Weil
3f094f7b70 osd: fix snap trimmer SnapSet adjustment
AFAICS it's totally wrong?
2010-04-01 07:27:59 -07:00
Sage Weil
bd43b3a263 todo: updates 2010-03-31 15:30:29 -07:00
Sage Weil
4bb676d6d3 osd: improve snap trimmer debug output 2010-03-31 15:30:17 -07:00
Sage Weil
bca73ed71a mds: clear old snap_trace before building new one
Otherwise we just build up a big stack of historical information and send
it all to the client.
2010-03-31 15:00:23 -07:00
Sage Weil
4d174b593a qa: make snaptest.sh repeatable in same dir 2010-03-31 14:46:20 -07:00
Sage Weil
6cf94518eb Merge branch 'mds' into unstable 2010-03-31 09:49:55 -07:00
Sage Weil
11114331b1 todo: kclient snap bug 2010-03-30 21:28:12 -07:00
Sage Weil
8c3765e307 mds: don't adjust subtree map in rename_prepare
Not sure what the reasoning behind this was.

This code is from pre git history, and the git->subversion conversion
managed to make pretty git-blame unusable.  I doubt I really documented
what its purpose at that point was anyway.
2010-03-30 21:28:04 -07:00
Sage Weil
7293dd5b73 mds: subtree map should always reflect current hierarchy
Not projected!
2010-03-30 21:28:01 -07:00
Sage Weil
4abb47a24c qa: drop numeric prefix from workunits 2010-03-30 21:24:45 -07:00
Sage Weil
b206d2a648 osd: don't filter out shutdown msg to self 2010-03-30 13:40:41 -07:00
Sage Weil
2a0ed8301e msgr: init local_pipe peer_{addr,type} 2010-03-30 13:19:30 -07:00
Sage Weil
9b552c753f Merge branch 'mds' into unstable 2010-03-30 12:22:37 -07:00
Sage Weil
47286cb1ba mds: todo rejoin bug 2010-03-30 12:14:03 -07:00
Sage Weil
3ab157faa5 todo: kclient bug 2010-03-30 12:13:33 -07:00
Greg Farnum
a9f6bd3908 rgw: revert accidental commit of get_attr prototype change 2010-03-30 11:48:06 -07:00
Sage Weil
858314367f Merge branch 'msgr' into unstable 2010-03-30 11:45:00 -07:00
Sage Weil
3edc9d67bd msgr: source, not orig_source, in dbg output 2010-03-30 11:40:38 -07:00
Sage Weil
bf62cc01c4 mds: don't use get_orig_source
MDS doesn't do any request forwarding, so there is no need.
2010-03-30 11:40:38 -07:00
Sage Weil
ddf61d067c msgr: NOSRCADDR protocol feature drops src/orig_src in msg header
This lets us drop the src, orig_src ceph_entity_addr's from the message
header, saving about 160 bytes per message.

The feature is optional.  We can still talk to peers who use the old
protocol.
2010-03-30 11:40:38 -07:00
Sage Weil
9a4b7686c2 msgr: put features in connection_state 2010-03-30 11:40:38 -07:00
Sage Weil
cd102fb61c msgr: use connection for src addr 2010-03-30 11:40:38 -07:00
Sage Weil
94137309db msgr: make Message::get_orig_* differ only when explicitly directed to
This paves the way for removal of the orig_src field from the message
header.
2010-03-30 11:40:38 -07:00
Sage Weil
58ce32cc84 mds: fix MDSTableClient ack double journaling
Do not journal ack unless the tid is registered in the LogSegment.  Once
we journal it, we remove it from the LogSegment list, and once it's
journaled, we remove the pending_commit[tid] entry.

This fixes a bug where the mds got two acks, journaled both of them, and
crashed in the completion for the second because pending_commit[tid] was
gone.  The second ack should have been ignored.
2010-03-30 10:30:02 -07:00
Sage Weil
d5574993f4 mds: start file recovery after sending rejoin ack
The rejoin ack intializes replica lock states correctly; we can't send any
lock messages before that.  This fixes both the check max size call (which
sends lock messages taking the wrlock) and the file_recover() call
(which does the same).

Instead, we make two lists, files to recover and those to fix up.  The lock
states for both are set to PRE_SCAN (LOCK on replica).  After the rejoin
acks go out, we either check_inode_max_size or file_recover.

If file_recover someday grows another caller, this may need something a bit
more sophisticated.
2010-03-29 16:26:54 -07:00
Sage Weil
65d3f3fd83 mds: delay check_inode_max_size if frozen 2010-03-29 15:52:51 -07:00
Sage Weil
e6cd1c219f mds: less noisy about snaprealm siblings
This can get _very_ large for the stray dir.
2010-03-29 14:40:48 -07:00
Greg Farnum
dab367f52f rgw: add optional auid parameter to create_bucket.
If set this will set the RADOS pool's auid to the given one, granting
partial data coherency.
2010-03-29 11:49:11 -07:00
Greg Farnum
66c5af2cca rgw: remove dead code. rebuild_policy exists elsewhere; the acl needs no main() 2010-03-29 11:49:11 -07:00
Greg Farnum
7030731bd8 rgw: radosgw_admin will quit gracefully if it can't open the store 2010-03-29 11:49:11 -07:00
Greg Farnum
a5d809215a rgw: set auid if specified at creation 2010-03-29 11:49:11 -07:00
Greg Farnum
83a6efefe2 rgw: add auid field to RGWUserInfo 2010-03-29 11:49:11 -07:00