Sage Weil
93a88150bd
radosgw-admin: push log listing into RGWRados
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-10 11:51:22 -07:00
Sage Weil
69e9f51d3f
rgw: chdir to dir in conf (default /)
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-10 11:51:19 -07:00
Sage Weil
930d57f864
rgw: push intent log processing into RGWRados layer
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-10 11:51:16 -07:00
Sage Weil
d7f7a21354
librbd: don't return >32bit value from copy().
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-10 11:51:09 -07:00
Greg Farnum
42ac18cd6b
.gitignore: test_libhadoopcephfs build
...
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-10-10 10:55:52 -07:00
Greg Farnum
968b09095d
Merge branch 'master' of github.com:NewDreamNetwork/ceph
2011-10-10 10:55:10 -07:00
Sage Weil
9ec60b4dc4
librbd: fix overflow on large large image copy
...
Fixes : #1611
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-10 11:04:30 -07:00
Sage Weil
b6c4615866
librbd: slightly cleaner
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-10 11:03:26 -07:00
Sage Weil
7060efa9ba
librbd: fix copy progress
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-10 09:50:33 -07:00
Greg Farnum
61855170a7
hadoop: get the right class member, and ask for it properly.
...
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-10-09 16:28:00 -07:00
Sage Weil
dc40b37403
auth: move AuthAuthorizeHandler registry into class
...
Static classes with constructors and destructors are dangerous. Explicitly
manage these as part of the server components (OSD, MDS).
Fixes : #1608
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 16:47:35 -07:00
Samuel Just
11a1d601f5
OSD,ReplicatedPG: expire and cleanup unconnected watchers
...
During handle_notify_timeout or ms_handle_reset, watchers are now marked
unconnected via pg->register_unconnected_watcher. A safe timer event has
been added to trigger OSD::handle_watch_timeout.
remove_watchers_and_notifies (called on role change) cleans up these
events before peering.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-10-07 16:07:09 -07:00
Greg Farnum
9d846d33b2
move ceph_mount call
2011-10-07 14:37:10 -07:00
Sage Weil
039035b366
osd: discard requests that from disconnected clients
...
If we can't reply, throw out the request; they'll need to resend it anyway.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 14:29:36 -07:00
Sage Weil
88de6ab53b
ceph.spec.in: handle docdir properly
...
Pass correct path to configure (fixes SuSE builds).
Use %doc command to install sample.ceph.conf and sample.fetch_conf.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 14:29:35 -07:00
Josh Durgin
0121bcd2f8
clitests: add test case for crush exhaustive search
...
This detects the bug that caused #1594 .
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-10-07 14:13:37 -07:00
Sage Weil
e5db7b243c
Makefile: only reset docdir if it's not already defined
...
This is only for old versions of automake, and won't work for ancient
SuSe.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 13:13:29 -07:00
Sage Weil
2f877f8220
crushtool: fix --weight arg parsing
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 13:03:00 -07:00
Sage Weil
8ff1cbb5c9
crushtool: add --force N
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 13:02:49 -07:00
Sage Weil
af6a9f3069
crush: try _all_ bucket items when doing exhaustive search
...
N-1 isn't exhaustive.
Fixes : #1594
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 12:54:59 -07:00
Sage Weil
5a23694240
ceph.spec.in: build on suse
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 11:10:46 -07:00
Sage Weil
6e29c28260
mon: tolerate 50ms (instead of 10ms) of clock drift
...
NTP on sepia can't manage 10ms, it seems. Sigh.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-07 09:53:52 -07:00
Sage Weil
ff31d3cca0
rgw: fix printf format warning
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 09:32:34 -07:00
Sage Weil
8be9450b31
rgw: make log object naming configurable
...
Use date(1) codes for object name, plus %i and %n for bucket id/name, and
make UTC vs localtime configurable.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-06 17:39:40 -07:00
Sage Weil
3d2f89fac2
mon: make other send_incremental variant handle map discontinuity
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-06 16:17:14 -07:00
Sage Weil
64935d4c24
auth: fix authorizer leak fix
...
We were never reusing the authorizer, so make it local. This fixes a crash
(double-free) on reset().
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-06 16:17:14 -07:00
Sage Weil
6e04f60ed4
mon: fix osdmap trimming unsigned overflow
...
This was trimming way to aggressively for early epochs due to the unsigned
version overflowing.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-06 16:17:14 -07:00
Sage Weil
4fe9cca5dd
objecter: cope with missing osdmaps in history
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-06 16:17:14 -07:00
Josh Durgin
b344d7979b
osd, pg: ignore responses to obsolete queries
...
This adds a query_epoch to notify and log messages, which are
sent in response to queries from the primary during peering. To
guarantee we don't try to process old logs and notifies after
restarting peering, query_epoch is set to the epoch at which the
query was sent. If query_epoch is less than last_peering_reset,
the primary discards the message.
This caused a "bad state machine event" crash in the following
scenario:
1. Primary tells a stray to generate a backlog at epoch 199.
2. The up set changes because a stray goes up.
3. Primary restarts peering at epoch 200.
4. Stray gets new map for epoch 200, sees that acting set did not
change, and sends log to primary.
5. Primary crashes.
Related to #1403 , #1449
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-10-06 15:45:36 -07:00
Josh Durgin
ad48ada8c4
pg: rename warm_restart and last_warm_restart
...
These names make more sense, since last_warm_restart was updated
outside of the warm_restart function.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-10-06 15:45:36 -07:00
Samuel Just
85bbc2f993
.gitignore: add multi_stress_watch
...
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-10-06 15:59:47 -07:00
Samuel Just
6bfae03ad9
ReplicatedPG: assert *_FLUSHING unreachable for AccessMode
...
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-10-06 14:51:21 -07:00
Samuel Just
5840ae46e2
test/multi_stress_watch.cc: add watch notify tester for teuthology
...
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-10-06 14:51:21 -07:00
Sage Weil
088d0dfa56
qa: rados-api: try harder to make these pool names unique
...
Still getting -17 sometimes on sepia... :/
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-06 13:56:58 -07:00
Sage Weil
646ef6aaac
xlist: more assertive
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-06 13:39:33 -07:00
Sage Weil
07c88609d9
Revert "osd: simplify the session ref-counting branches"
...
This reverts commit f002144ef7
.
2011-10-06 13:12:16 -07:00
Sage Weil
fce176170a
osd: boot with map of oldest-1
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-06 12:58:23 -07:00
Sage Weil
d2721464cf
radosgw-admin: UTC for time in 'log show', local time in separate field
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-06 12:35:28 -07:00
Sage Weil
e8dd1f8b30
utime: add gmtime() output function
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-06 12:35:27 -07:00
Sage Weil
77cfbfbbf5
radosgw-admin: for date filtering for 'log list'
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-06 12:35:27 -07:00
Greg Farnum
6e0a3df8dc
Merge branch 'wip-leaks'
2011-10-06 10:30:45 -07:00
Greg Farnum
d926201434
cephx: don't leak Authorizers on each request
...
It's not clear to me why this is a class member -- it's only
written to or read from in this function, which allocates a fresh
one each time it's called.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-10-06 09:58:48 -07:00
Greg Farnum
5d7e4bd58e
osd: put session ref in ms_handle_reset
...
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-10-06 09:44:48 -07:00
Greg Farnum
f002144ef7
osd: simplify the session ref-counting branches
...
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-10-06 09:44:44 -07:00
Sage Weil
d78286e1e2
rgw: fix chdir result warning
...
warning: rgw/rgw_main.cc:265: ignoring return value of ‘int chdir(const char*)’, declared with attribute warn_unused_result
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-06 09:40:09 -07:00
Sage Weil
ca3662c8d4
rgw: fix rgw_switch_url_previx printf arg
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-06 08:52:35 -07:00
Sage Weil
02be99385b
osd: same_acting_since -> same_interval_since
...
Interval is (currently) defined as same acting and up sets.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-06 08:50:50 -07:00
Sage Weil
5ab7f8fab3
osd: fix same_acting_since update
...
same_acting_since actually means "same acting AND up set since". This is
what the other same_acting_since update does (see a22511d
).
We should rename it same_interval_since or something similar.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-05 21:41:15 -07:00
Sage Weil
8f62c3bb18
rgw: use conf for rgw_swift_url[_prefix] instead of fcgi env
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-05 21:30:29 -07:00
Sage Weil
85cf0a8d90
rgw: use conf for rgw_print_continue instead of fcgi environment
...
Also remove unused expect100cont bool.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-05 21:30:29 -07:00