Commit Graph

18874 Commits

Author SHA1 Message Date
Greg Farnum
9f10a99115 msgr: write minimal documentation for the tcp functions.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:22:28 -07:00
Greg Farnum
e966c39df6 msgr: make a bunch of stuff private.
Why were all these data members public? They're accessed by Pipes
and the Accepter and stuff, so maybe that's why...but that's all
internal interface stuff.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:22:19 -07:00
Greg Farnum
096971d4c3 msg: update the Dispatcher and Messenger documentation
Clarify what mark_down() and mark_down_on_empty() actually do.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:22:02 -07:00
Greg Farnum
36ec8e930c dispatcher: fix documentation for ms_handle_reset
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:21:44 -07:00
Greg Farnum
cbe13ab292 msgr: rename set_ip() -> set_addr_unknowns()
The generic interface shouldn't reference specifics like that.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:21:25 -07:00
Greg Farnum
607f35e71f msgr: Remove _my_name and ms_addr, replace with direct access to my_inst.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:13:33 -07:00
Greg Farnum
77f45667c0 msgr: store the entity_inst_t in the Messenger.
Convert ms_addr and _my_name to be references to their fields in
the entity_inst_t my_inst.
This way we can use const references for accessing all of them,
instead of the bizarre distinction we had before for get_myinst().

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:13:20 -07:00
Greg Farnum
6374d0645e buffer: implement a contents_equal function on bufferlists
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:11:29 -07:00
Greg Farnum
5681461bf4 msgr: change the signature of get_myaddr()
Return a const reference to the actual address, instead of copying it.
All current users are happy with this, and I can't see a good reason
to copy it instead.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:11:18 -07:00
Greg Farnum
45a76eafdd msgr: get_connection() is required to establish a connection if none exists.
Making an allowance for lossy server connections is silly. Just don't
ask for the Connection in that case. (There aren't any users who
rely on the previous behavior.)
Document that requirement in Messenger.h!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:11:09 -07:00
Greg Farnum
e80126ea68 test: fix monmaptool help text
Broken by commit:15f0a3270fdcf09acce554313f2d0c0814a511e4

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:10:23 -07:00
Yehuda Sadeh
e06436e930 cls_rgw: guard decode
thee were few cases where decode wasn't guarded.

Signed-off-by: Yehuda Sadeh <yehuda.sadeh@dreamhost.com>
2012-04-03 11:32:44 -07:00
Yehuda Sadeh
ebb487a617 cls_rgw: reset return code in some cases
Beforehand the return code was ignored, so fixed the cases
where we erroneously return error instead of success.

Signed-off-by: Yehuda Sadeh <yehuda.sadeh@dreamhost.com>
2012-04-03 11:30:57 -07:00
Sage Weil
a8938422a4 librados: fix exec test
Return for read operations is now returned correctly.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-03 10:12:01 -07:00
Sage Weil
57f52479a9 doc: disable broken 'doxygenclass' class in librados c++ doc
This is the last remaining gitbuilder error.  Add it back when the C++
docs actually build.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-03 09:06:37 -07:00
Sage Weil
9d4fcd0893 Merge remote-tracking branch 'gh/stable' 2012-04-03 08:58:13 -07:00
Sage Weil
e40cf8caff test_workload_gen: fix Sequencer ctor
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-03 08:44:46 -07:00
Sage Weil
b5ca2fe01a Merge remote-tracking branch 'gh/wip-name-sequencers' 2012-04-02 22:04:04 -07:00
Sage Weil
d70191a88e Merge remote-tracking branch 'gh/wip-2087' 2012-04-02 22:03:55 -07:00
Yehuda Sadeh
addc744692 rgw: check for subuser existence
This fixes #1856: looking up subuser that doesn't exist returns
user as long as subuser prefix defined existing user.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-04-02 13:24:14 -07:00
Sage Weil
e792cd9388 filestore: fix ZERO fallback write
It helps if we write zeros!

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-01 17:04:58 -07:00
Sage Weil
8434caf589 qa: test_rewrite_latency
Tool to measure latency of overwriting a single block.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-01 16:24:39 -07:00
Sage Weil
dbc70b9db5 Merge remote branch 'gh/wip-mon_setup'
Reviewed-by: Sage Weil <sage@newdream.net>
2012-03-30 20:31:30 -07:00
Sage Weil
f8a53869f6 osd: fix error code return from class methods
Don't shadow the result at function scope.

Fixes: #2148
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-03-30 20:18:55 -07:00
Greg Farnum
15f0a3270f monmaptool: make clear you can set the fsid when making a new map.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-03-30 17:22:57 -07:00
Greg Farnum
208daeb3a4 ceph_mon: fix fsid parsing.
fsid is a field in the CephContext _conf structure and is parsed by
the standard options parsing library before it gets to the ceph_mon
custom parsing.
Instead do the standard parsing, and check that member directly
to decide if we want to (over)write the monmap's fsid.

Fixes one part of #2221.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-03-30 17:07:19 -07:00
Sage Weil
aa31035e55 osd: update_stats() on reads too
Update pg stats on any op completion (read or write), not just writes.  Do
the calls with log_op_stats() for consistency's sake.  Skip if the request
was an error.

Fixes: #2209
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Reviewed-by: Samuel Just <samuel.just@dreamhost.com>
2012-03-30 16:14:05 -07:00
Sage Weil
2878865463 log: dump_recent in fatal signal handler
Signed-off-by: Sage Weil <sage@newdream.net>
2012-03-30 16:11:31 -07:00
Sage Weil
f27acbc88e Merge remote-tracking branch 'gh/wip-log'
Conflicts:
	src/common/config_opts.h
2012-03-30 16:07:53 -07:00
Sage Weil
374bef9c97 Merge remote branch 'gh/wip-osd-hb' 2012-03-30 16:00:29 -07:00
Sage Weil
f7f65ebe34 osd: fix typo in debug message
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-03-30 15:37:34 -07:00
Sage Weil
75e3b9b309 Merge remote branch 'gh/wip-osd-recovery-sources' 2012-03-30 14:57:57 -07:00
Sage Weil
df5860fe8f objectstore: name Sequencers
Assign a (unique) name to each Sequencer.  This will aid in debugging, and
can be useful when dumping traces of FileStore workloads.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-03-30 14:23:25 -07:00
Tommi Virtanen
29c01f2511 ceph_common.sh: Remove dead code.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-03-30 11:57:51 -07:00
Tommi Virtanen
ba6bb4cfa3 man: Oops, update ceph-mon(8) for real. Sorry about that.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-03-30 11:27:47 -07:00
Tommi Virtanen
541a543c43 man: Update ceph-mon(8) after reStructuredText syntax fixes.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-03-30 11:26:19 -07:00
Tommi Virtanen
2c5424424c doc: Remove duplicate anchor from (unused) overview doc.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-03-30 11:16:57 -07:00
Tommi Virtanen
1ec47db1bd doc: Convert the mailing list mention to not be a section heading.
If toctree is inside a section, the subtree is inside the section too.
We don't want all of dev/* to be under "Mailing list".

I have not found a decent workaround for this. The toplevel toctree
avoids this purely by the fact that it is the topmost toctree. Right
now that means you should 1) avoid having more than a few paragraphs of
text before the toctree for that subtree (put most of the content after
the toctree; clumsy if the toctree is long), or 2) put the toptree
immediately after the document title, make it :hidden:, and let the
reader use links in the text or the ToC in the sidebar to navigate.
See start/index for an example of this.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-03-30 11:11:25 -07:00
Tommi Virtanen
b162696b32 doc: Fix reStructuredText syntax errors.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-03-30 11:11:12 -07:00
Sage Weil
2d1a96d3dd add include/stringify.h
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-03-30 10:52:23 -07:00
Samuel Just
b25817a58d FileJournal: check pwrite return value when zeroing journal
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2012-03-30 09:59:24 -07:00
Sage Weil
41f84fac1a filestore: set guard on collection_move
During recovery we submit transactions like:

 - delete a/foo
 - move tmp/foo to a/foo

This prevents the EEXIST check in collection_move from doing any good,
since the destination never exists.  We need to do that remove at least
sometimes, because we may be overwriting an existing/older version of the
object.

So,
 - set the guard after we do the move, so that
 - the delete won't be repated, and
 - the EEXIST check will work

Also check the guard for good measure (although that doesn't do anything
specifically useful in this scenario).

Fixes: #2164
Signed-off-by: Sage Weil <sage@newdream.net>
Reviewed-by: Josh Durgin <josh.durgin@dreamhost.com>
Reviewed-by: Samuel Just <samuel.just@dreamhost.com>
2012-03-30 09:52:09 -07:00
Sage Weil
f89f98dfd0 osd: clear RECOVERING on start_peering_interval
This prevents us from, say, getting into a recovering+stray state.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-03-30 08:49:16 -07:00
Sage Weil
3cdd8d58b2 osd: more heartbeat debug
Signed-off-by: Sage Weil <sage@newdream.net>
2012-03-30 08:45:52 -07:00
Sage Weil
efc27f199d osd: don't fail new heartbeat peers
last_tx may be 0 because we just added this peer; don't mark them down
yet!

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-03-30 08:45:04 -07:00
Sage Weil
21e6e2b853 osd: ignore peer epoch of 0 on ping reply
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-03-30 08:45:04 -07:00
Sage Weil
e1a5891211 osd: discard heartbeat_peer in note_down_osd
Discard the heartbeat_peer as soon as we find out, along with queued
failures, or else the heartbeat_check may come along (without map_lock)
and requeue a failure.  And then later, when we try to report it, we'll
osdmap->get_inst() on a now-down OSD and fail miserably.

Reported-by: Wido den Hollander <wido@widodh.nl>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-03-30 08:45:04 -07:00
Sage Weil
33b9187a46 osd: rename hbin -> hbclient, hbout -> hbserver
This is way less confusing.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-03-30 08:45:03 -07:00
Sage Weil
fe5f0331f1 osd: send pings from hbin
Fixes: #2212
Signed-off-by: Sage Weil <sage@newdream.net>
2012-03-30 08:44:26 -07:00
Sage Weil
4e2f0d149d osd: simplify heartbeat logic
Simplify heartbeats to use a simple request/reply model.

 - avoid any weirdness with map update timing
 - no from/to distinction
 - lossy client/server model

Signed-off-by: Sage Weil <sage@newdream.net>
2012-03-30 08:44:26 -07:00