1
0
mirror of https://github.com/ceph/ceph synced 2025-04-11 04:02:04 +00:00
Commit Graph

18105 Commits

Author SHA1 Message Date
Sage Weil
cb15eb8826 os: new encoding for hobject_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 22:06:38 -08:00
Sage Weil
7d85c48129 osd: new encoding for pg_create_t
There was no version encoding previously, so this is an incompatible
change.  Fortunately this type is only used in one place, MOSDPGCreate,
so we'll rev that encoding and compensate there.  All is well!

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 22:05:57 -08:00
Sage Weil
f9d67f1ae9 osd: new encoding for osd_stat_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:08 -08:00
Sage Weil
757e3b0587 osd: new encoding for object_locator_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:08 -08:00
Sage Weil
4c3a41f786 osd: new encoding for osd_reqid_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:08 -08:00
Sage Weil
7a68fd9fd6 osd: new ScrubMap::object encoding
Signed-off-by: Sage Weil <sage@newdream.net>
2012-02-09 21:58:08 -08:00
Sage Weil
92a058aa52 mon: set last_changed when creating new pgs
This will help us identify PGs that are stuck in creating state.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:08 -08:00
Sage Weil
a65586cab7 mon: set last_unstale when marking PGs stale
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:08 -08:00
Sage Weil
88f1fbc1ba osd: include state timestamps, mapping_epoch in pg_stat_t
Track the time when the pg state last changed (or was refreshed) in
interesting ways.

Also track the epoch when the mapping last changed (same_interval_since).

Signed-off-by: Sage Weil <sage@newdream.net>
2012-02-09 21:58:08 -08:00
Sage Weil
00997f93c7 osd: new encoding for PG::Interval
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:08 -08:00
Sage Weil
9f3f119798 osd: new encoding for PG::OndiskLog
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:08 -08:00
Sage Weil
14d6ed4980 objectstore: new encoding for Transaction
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:08 -08:00
Sage Weil
fa779dba09 osd: new encoding for ScrubMap
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:08 -08:00
Sage Weil
a4a9d52058 osd: new encoding for object_info_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:08 -08:00
Sage Weil
c8cf0aeaeb osd: new encoding for watch_info_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:08 -08:00
Sage Weil
156c6ebe71 osd: new encoding for SnapSet
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:08 -08:00
Sage Weil
92fc5f0994 osd: new encoding for pg_missing_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:08 -08:00
Sage Weil
02dd0a854f osd: new encoding for pg_log_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:07 -08:00
Sage Weil
18c8861b4c osd: new encoding for pg_log_entry_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:07 -08:00
Sage Weil
9304db003a osd: new encoding for pg_history_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:07 -08:00
Sage Weil
538e8d121a osd: new encoding for pg_history_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:07 -08:00
Sage Weil
0d79b1bf93 osd: new encoding for pool_stat_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:07 -08:00
Sage Weil
9016658cc3 osd: new encoding for pg_stat_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:07 -08:00
Sage Weil
3a547efea3 osd: new encoding for object_stat_collection_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:07 -08:00
Sage Weil
bd829e35d3 osd: new encoding for object_stat_sum_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:07 -08:00
Sage Weil
5b6b500825 osd: new encoding for pg_pool_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:07 -08:00
Sage Weil
fc869dee1e osd: new encoding for pool_snap_info_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:07 -08:00
Sage Weil
a03ff1b57e osd: new encoding for OSDSuperblock
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:58:07 -08:00
Sage Weil
7f10d5facc osd: move object_locator_t to osd_types.{h,cc}
That's a better home.  Also add to ceph-dencoder.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:45:00 -08:00
Sage Weil
e255044ccc ceph-dencoder: add osd_reqid_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:35:39 -08:00
Sage Weil
01c7b3bd37 ceph-dencoder: add hobject_t
Move to a separate file in os/, since this is an ObjectStore related
object.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-09 21:30:16 -08:00
Sage Weil
b49a55b937 mon: add/use pg_create_t ctor
Signed-off-by: Sage Weil <sage@newdream.net>
2012-02-09 21:17:55 -08:00
Sage Weil
34158ed09e ceph-dencoder: add pg_create_t (formerly MOSDPGCreate::create_rec)
Signed-off-by: Sage Weil <sage@newdream.net>
2012-02-09 21:15:53 -08:00
Sage Weil
7479828e29 test/encoding/readable.sh: no \t
Not sure why this sometimes works and sometimes doesn't.  Maybe it's a
bashism?

Signed-off-by: Sage Weil <sage@newdream.net>
2012-02-09 17:20:18 -08:00
Sage Weil
fab2254c1b Merge branch 'wip-corpus' 2012-02-09 16:47:15 -08:00
Sage Weil
e492ffd911 ceph-dencoder: add Log{Entry,EntryKey,Summary}
Signed-off-by: Sage Weil <sage@newdream.net>
2012-02-09 16:44:39 -08:00
Sage Weil
93d7ef9631 filestore: wait to start op if other ops are in line
We can have a sequence like:

- commit_start, blocked=true
- op_start thread A gets in line
- op_start thread B gets in line
- commit finished, blocked=false
- thread A goes
- op_start thread C sees blocked=false and continues
-> order broken

If there are people in line from a previous block, we need to get in line,
even if blocked == false.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-02-09 16:20:58 -08:00
Sage Weil
1009d1a016 filestore: fix op queue quiesce during commit
When I added the ordering constraint fix back in 259c509a I got the
check backwards.  We want to wait if we are blocked OR we are not in the
front of the line (i.e., proceed if we are not blocked AND first in line).

Fixes: 
Signed-off-by: Sage Weil <sage@newdream.net>
2012-02-09 16:20:58 -08:00
Sage Weil
0a60fcf3a5 Merge remote branch 'gh/wip-types' 2012-02-08 21:05:39 -08:00
Sage Weil
143ad86b4c Merge remote branch 'gh/wip-stuck-in-backfill'
Reviewed-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-08 20:43:53 -08:00
Josh Durgin
f0334673ab ReplicatedPG: don't count deletions as ops
Counting them as ops but not requeueing the pg for recovery causes
backfill to stall when only deletions are sent in
recover_backfill(). Deletions are cheap and don't need to be acked, so
we can simply stop counting them as ops.

Fixes: 
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-02-08 17:40:51 -08:00
Josh Durgin
42db09b7e4 osd: don't remove pg from recovery queue if not enough recovery ops started
The pg has already been dequeued at the beginning of do_recovery(),
and it requeues itself only if it starts a new recovery op.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-02-08 17:15:23 -08:00
Yehuda Sadeh
a6d7629c17 rgw: don't treat plus as a space in url decode
Any special character encoding should be done through %hex. The
plus sign is a valid character in object names, and in user id
(when used in signed urls).

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-02-08 17:11:01 -08:00
Sage Weil
72bbaeac03 osd: discard waiting ops when pg mapping changes
If the pg mapping changes away from us, we can safely discard messages we
have waiting for the PG to be created.

Fixes: 
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Reviewed-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-02-08 16:19:30 -08:00
Sage Weil
359dfb9966 osd: flush on activate
PG::activate() can make lots of changes, most notably clean_up_local()
which deletes lots of local objects.  Those changes need to be flushed
to the fs before we start servicing requests or else we risk processing a
client read on those objects.

Fixes: 
Signed-off-by: Sage Weil <sage@newdream.net>
2012-02-08 13:19:51 -08:00
Sage Weil
6c4687fe91 Makefile: check readability of object corpus on 'make check'
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-08 13:17:27 -08:00
Sage Weil
e261317e7a add ceph-object-corpus.git submodule 2012-02-08 13:17:22 -08:00
Sage Weil
8e2ceb4eca mon: fix [near]full_ratio conf update
Already a value in [0,1].  Interpret as a percentage if > 1.0.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-08 13:12:18 -08:00
Sage Weil
3f94c15b38 mon: better MonCaps test cases
Move MonCaps to libcommon.la.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-02-08 13:12:18 -08:00
Sage Weil
dfaa7fd717 ceph-dencoder: MonCap[s]
Need some better test instances for MonCaps...

Signed-off-by: Sage Weil <sage@newdream.net>
2012-02-08 13:12:18 -08:00