]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
11 years agounittests: fail early when low on disk 1143/head
Loic Dachary [Sun, 26 Jan 2014 12:32:57 +0000 (13:32 +0100)]
unittests: fail early when low on disk

Scripts from qa that are run as unittests via test/vstart_wrapper.sh may
fail because the partition on which it runs is low on space ( 95% full
). When it happens the cause of the problem may be unclear because it
is likely to show only as a client not being able to reach the mon.

A test is added in test/vstart_wrapper.sh to verify the disk space usage
using the same method as the mon would and fail with a detailed error if
it is the case.

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agodoc: Switched logging to true. Now required for sync agent.
John Wilkins [Fri, 24 Jan 2014 23:11:32 +0000 (15:11 -0800)]
doc: Switched logging to true. Now required for sync agent.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoMerge pull request #1102 from ceph/wip-rgw-civetweb-2
Sage Weil [Fri, 24 Jan 2014 16:31:37 +0000 (08:31 -0800)]
Merge pull request #1102 from ceph/wip-rgw-civetweb-2

Wip rgw civetweb 2

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1116 from jcsp/doc_toofull
Josh Durgin [Fri, 24 Jan 2014 06:43:43 +0000 (22:43 -0800)]
Merge pull request #1116 from jcsp/doc_toofull

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoMerge pull request #1135 from ceph/use-ceph-sharedptr
Josh Durgin [Fri, 24 Jan 2014 06:36:18 +0000 (22:36 -0800)]
Merge pull request #1135 from ceph/use-ceph-sharedptr

libc++: convert tr1 uses

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agolibc++: convert tr1 uses 1135/head
Noah Watkins [Fri, 24 Jan 2014 04:13:57 +0000 (20:13 -0800)]
libc++: convert tr1 uses

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agodoc: Added domain pool, and changed zone configs to use domain tool so they don't...
John Wilkins [Fri, 24 Jan 2014 01:11:59 +0000 (17:11 -0800)]
doc: Added domain pool, and changed zone configs to use domain tool so they don't clash.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Change zone domain to include "domain" so it is clear.
John Wilkins [Fri, 24 Jan 2014 01:11:23 +0000 (17:11 -0800)]
doc: Change zone domain to include "domain" so it is clear.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Added space between {Query_String} and [E=HTTP ... to solve for 500 error.
John Wilkins [Fri, 24 Jan 2014 00:03:25 +0000 (16:03 -0800)]
doc: Added space between {Query_String} and [E=HTTP ... to solve for 500 error.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoMerge pull request #1134 from ceph/wip-backend-uninit-use
athanatos [Thu, 23 Jan 2014 23:44:39 +0000 (15:44 -0800)]
Merge pull request #1134 from ceph/wip-backend-uninit-use

ReplicatedBackend: fix uninitialized use warning/bug

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedBackend: fix uninitialized use warning/bug 1134/head
Greg Farnum [Thu, 23 Jan 2014 23:40:18 +0000 (15:40 -0800)]
ReplicatedBackend: fix uninitialized use warning/bug

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agodoc: Fixed omission of a comma in zone configuration.
John Wilkins [Thu, 23 Jan 2014 21:34:25 +0000 (13:34 -0800)]
doc: Fixed omission of a comma in zone configuration.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoFileStore: perform LFNIndex lookup without holding fdcache lock
Samuel Just [Mon, 4 Nov 2013 22:02:28 +0000 (14:02 -0800)]
FileStore: perform LFNIndex lookup without holding fdcache lock

Fixes: #7207
Signed-off-by: Samuel Just <sam.just@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoMerge remote-tracking branch 'origin/next'
Greg Farnum [Thu, 23 Jan 2014 20:47:00 +0000 (12:47 -0800)]
Merge remote-tracking branch 'origin/next'

11 years agomongoose: git rm src/mongoose 1102/head
Yehuda Sadeh [Thu, 23 Jan 2014 19:00:05 +0000 (11:00 -0800)]
mongoose: git rm src/mongoose

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoMerge pull request #1132 from ceph/wip-erasure-rule
Loic Dachary [Thu, 23 Jan 2014 18:22:49 +0000 (10:22 -0800)]
Merge pull request #1132 from ceph/wip-erasure-rule

osd/OSDMap: do not create erasure rule by default

Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agocivetweb: md5.inl -> md5.h
Yehuda Sadeh [Wed, 15 Jan 2014 18:09:03 +0000 (10:09 -0800)]
civetweb: md5.inl -> md5.h

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agocivetweb: add include to makefile
Yehuda Sadeh [Wed, 15 Jan 2014 02:25:35 +0000 (18:25 -0800)]
civetweb: add include to makefile

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agorgw: modify the civetweb rule
Yehuda Sadeh [Wed, 15 Jan 2014 00:50:19 +0000 (16:50 -0800)]
rgw: modify the civetweb rule

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agocivetweb: fix module uri
Yehuda Sadeh [Mon, 23 Dec 2013 06:29:15 +0000 (22:29 -0800)]
civetweb: fix module uri

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agocivetweb: update submodule
Yehuda Sadeh [Wed, 15 Jan 2014 23:27:11 +0000 (15:27 -0800)]
civetweb: update submodule

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agorgw: switch mongoose to civetweb
Yehuda Sadeh [Mon, 23 Dec 2013 06:16:48 +0000 (22:16 -0800)]
rgw: switch mongoose to civetweb

Fixes: #7054
mongoose is now GPL, using the civetweb fork instead.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoMerge pull request #1131 from ceph/use-unordered-map
Sage Weil [Thu, 23 Jan 2014 17:27:03 +0000 (09:27 -0800)]
Merge pull request #1131 from ceph/use-unordered-map

osd: use ceph:: scoped hash_map

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoosd/OSDMap: do not create erasure rule by default 1132/head
Sage Weil [Thu, 23 Jan 2014 17:16:54 +0000 (09:16 -0800)]
osd/OSDMap: do not create erasure rule by default

If we do, we will require the v2 feature bit from clients.

We could only include feature bits for rules that are actually referenced
by pools, but for now making the user create the rule is simpler.  There is
no need to create this rule ahead of time.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoosd: use ceph:: scoped hash_map 1131/head
Noah Watkins [Thu, 23 Jan 2014 15:20:42 +0000 (07:20 -0800)]
osd: use ceph:: scoped hash_map

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoMerge pull request #1064 from ceph/port/libc++
Josh Durgin [Thu, 23 Jan 2014 08:27:30 +0000 (00:27 -0800)]
Merge pull request #1064 from ceph/port/libc++

support libc++
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoMerge branch 'wip-client-io-final'
Samuel Just [Wed, 22 Jan 2014 22:52:39 +0000 (14:52 -0800)]
Merge branch 'wip-client-io-final'

Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
11 years agoPGBackend: clarify rollback_stash name and method comments
Samuel Just [Wed, 22 Jan 2014 19:55:16 +0000 (11:55 -0800)]
PGBackend: clarify rollback_stash name and method comments

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPG: drop messages from down peers
Samuel Just [Sun, 19 Jan 2014 09:17:49 +0000 (01:17 -0800)]
PG: drop messages from down peers

This overlaps with the existing old_peering_msg() mechanism
except in one case: pulls from a replica not in the acting
set.  If such a replica gets marked down, we may resend
pulls to another replica without causing a new interval
to start.  If we recieved, but didn't process, a push in
response to such a pull prior to processing the map marking
the peer down, we might process the push after having reset
the pull state for a different pull operation.  We can
avoid this by discarding ops from down peers.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG: make STARTSYNC a noop
Samuel Just [Fri, 17 Jan 2014 19:14:06 +0000 (11:14 -0800)]
ReplicatedPG: make STARTSYNC a noop

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPG::calc_acting: consider newest_update_osd when choosing backfill peers
Samuel Just [Thu, 16 Jan 2014 20:04:01 +0000 (12:04 -0800)]
PG::calc_acting: consider newest_update_osd when choosing backfill peers

We must include newest_update_osd->second.log_tail when considering backfill
peers because in GetLog we will request logs back to the min last_update over
our acting_backfill set.  This will result in our log being extended as far
backwards as necessary to pick up any peers which can be log recovered by the
union of newest_update_osd's log and that of the chosen primary.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG: take ReplicatedPGRef in BlessedContext
Samuel Just [Thu, 16 Jan 2014 17:31:59 +0000 (09:31 -0800)]
ReplicatedPG: take ReplicatedPGRef in BlessedContext

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoRadosModel: RollBack dirties the object
Samuel Just [Wed, 15 Jan 2014 19:17:57 +0000 (11:17 -0800)]
RadosModel: RollBack dirties the object

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoRadosModel: undirty with update_object_undirty
Samuel Just [Tue, 14 Jan 2014 21:43:22 +0000 (13:43 -0800)]
RadosModel: undirty with update_object_undirty

Otherwise it doesn't behave properly with snapshots since
update_object_version doesn't add another snapshot entry.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG::trim_object: remove unused int r; declaration
Samuel Just [Tue, 14 Jan 2014 03:28:35 +0000 (19:28 -0800)]
ReplicatedPG::trim_object: remove unused int r; declaration

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agocommon/hobject: print shard as unsigned, not as char
Samuel Just [Sun, 8 Dec 2013 06:18:24 +0000 (22:18 -0800)]
common/hobject: print shard as unsigned, not as char

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG::_process_copy_chunk: use append
Samuel Just [Fri, 13 Dec 2013 21:14:52 +0000 (13:14 -0800)]
ReplicatedPG::_process_copy_chunk: use append

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG: fill in mod_desc for hitset repops
Samuel Just [Mon, 13 Jan 2014 00:26:51 +0000 (16:26 -0800)]
ReplicatedPG: fill in mod_desc for hitset repops

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG: use append for write and writefull
Samuel Just [Wed, 15 Jan 2014 17:21:57 +0000 (09:21 -0800)]
ReplicatedPG: use append for write and writefull

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG: fill in mod_desc in finish_copyfrom
Samuel Just [Wed, 15 Jan 2014 17:21:30 +0000 (09:21 -0800)]
ReplicatedPG: fill in mod_desc in finish_copyfrom

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG::finish_copyfrom: check new_obs.exists, not obs.exists
Samuel Just [Sat, 7 Dec 2013 23:10:26 +0000 (15:10 -0800)]
ReplicatedPG::finish_copyfrom: check new_obs.exists, not obs.exists

If the transaction previously created the object, the stat update
will have already happened.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG: handle removing the old object in finish_copy_op
Samuel Just [Sat, 7 Dec 2013 22:52:49 +0000 (14:52 -0800)]
ReplicatedPG: handle removing the old object in finish_copy_op

do_osd_ops will need to either copy the old version out of the
way or simply delete it depending on mod_desc.  Thus, defer
handling filling that part in until we finish the copy op.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG: EOPNOTSUPP on ec_pool if there are omaps in the COPY_GET
Samuel Just [Sat, 7 Dec 2013 22:43:22 +0000 (14:43 -0800)]
ReplicatedPG: EOPNOTSUPP on ec_pool if there are omaps in the COPY_GET

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG: make COPY_GET async read friendly
Samuel Just [Sat, 7 Dec 2013 21:09:52 +0000 (13:09 -0800)]
ReplicatedPG: make COPY_GET async read friendly

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG: requeue in_progress_async_reads on_change
Samuel Just [Thu, 2 Jan 2014 15:34:16 +0000 (07:34 -0800)]
ReplicatedPG: requeue in_progress_async_reads on_change

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG: support async reads on ec pools
Samuel Just [Fri, 6 Dec 2013 21:54:04 +0000 (13:54 -0800)]
ReplicatedPG: support async reads on ec pools

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agosrc/: add CEPH_OSD_OP_READ_SYNC
Samuel Just [Fri, 6 Dec 2013 21:51:24 +0000 (13:51 -0800)]
src/: add CEPH_OSD_OP_READ_SYNC

EC pools won't support SYNC reads.  This means that TMAP and friends
along with reads from an object class will not be supported.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG: use pgbackend->objects_read_sync() as appropriate
Samuel Just [Fri, 6 Dec 2013 19:50:29 +0000 (11:50 -0800)]
ReplicatedPG: use pgbackend->objects_read_sync() as appropriate

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoosd/: add sync/async read methods to PGBackend
Samuel Just [Fri, 6 Dec 2013 19:44:02 +0000 (11:44 -0800)]
osd/: add sync/async read methods to PGBackend

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoObjectStore: _collection_move_rename needs to increment ops
Samuel Just [Fri, 6 Dec 2013 01:08:28 +0000 (17:08 -0800)]
ObjectStore: _collection_move_rename needs to increment ops

Bugfix.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPGLog,PG: reset can_rollback_to when we get a log entry without a transaction
Samuel Just [Thu, 9 Jan 2014 03:22:21 +0000 (19:22 -0800)]
PGLog,PG: reset can_rollback_to when we get a log entry without a transaction

We cannot rollback past an entry which we didn't actually
apply locally.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPGLog: we cannot rollback past a recovered object entry
Samuel Just [Tue, 10 Dec 2013 18:50:59 +0000 (10:50 -0800)]
PGLog: we cannot rollback past a recovered object entry

We don't recover the older versions, so we can't do a rollback.
In general, this is ok since we had enough copies to recover it
in the first place.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPGLog: create interface allowing interface user to cleanup/rollback
Samuel Just [Mon, 9 Dec 2013 03:36:51 +0000 (19:36 -0800)]
PGLog: create interface allowing interface user to cleanup/rollback

We need to be able to allow the PGLog interface user to provide
logic for rolling back and trimming log entries.  To that end,
serveral PGLog methods now take a LogEntryHander.

In PGLog::merge_old_entry, if prior_version > info.log_tail and
the object is not missing, we must have rolled back the prior
log entry.  Thus, we don't skip the entry.

To simplify the code, _merge_old_entry has been split out as
a const helper.  This way, proc_replica_log can be reexpressed
as merging the divergent replica log entries with the fully
merged authoritative log.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG: Fill in rollback info for log events
Samuel Just [Wed, 4 Dec 2013 00:14:55 +0000 (16:14 -0800)]
ReplicatedPG: Fill in rollback info for log events

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoosd/: introduce xattr caching for ec pools
Samuel Just [Mon, 25 Nov 2013 23:33:57 +0000 (15:33 -0800)]
osd/: introduce xattr caching for ec pools

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPGBackend,ReplicatedBackend: add support for rolling back log entries
Samuel Just [Wed, 4 Dec 2013 00:25:07 +0000 (16:25 -0800)]
PGBackend,ReplicatedBackend: add support for rolling back log entries

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoosd_types: add a can_rollback_to line to pg_log_t
Samuel Just [Wed, 4 Dec 2013 00:24:40 +0000 (16:24 -0800)]
osd_types: add a can_rollback_to line to pg_log_t

This allows us to determine how far back the log can be rolled.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoosd_types: add ObjectModDesc into pg_log_entry_t
Samuel Just [Wed, 4 Dec 2013 00:23:50 +0000 (16:23 -0800)]
osd_types: add ObjectModDesc into pg_log_entry_t

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoosd_types: ObjectModDesc
Samuel Just [Wed, 4 Dec 2013 00:22:53 +0000 (16:22 -0800)]
osd_types: ObjectModDesc

Contains information needed to roll back a pg_log_entry_t.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoosd/: move client op handling into ReplicatedBackend
Samuel Just [Thu, 21 Nov 2013 00:17:36 +0000 (16:17 -0800)]
osd/: move client op handling into ReplicatedBackend

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPGBackend: allow queue_transaction to specify an op
Samuel Just [Fri, 15 Nov 2013 22:34:55 +0000 (14:34 -0800)]
PGBackend: allow queue_transaction to specify an op

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG: factor out should_send_op
Samuel Just [Mon, 14 Oct 2013 17:50:03 +0000 (10:50 -0700)]
ReplicatedPG: factor out should_send_op

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG: split out op_applied_replica
Samuel Just [Sat, 12 Oct 2013 01:00:53 +0000 (18:00 -0700)]
ReplicatedPG: split out op_applied_replica

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPG/ReplicatedPG: move snap map management into append_log
Samuel Just [Fri, 11 Oct 2013 00:12:48 +0000 (17:12 -0700)]
PG/ReplicatedPG: move snap map management into append_log

Both the replica and the primary should use the same append_log
mechanism to update the snap map.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedBackend: implement RPGTransaction
Samuel Just [Thu, 10 Oct 2013 23:12:10 +0000 (16:12 -0700)]
ReplicatedBackend: implement RPGTransaction

RPGTransaction is essentially a wrapped ObjectStore::Transaction.
The coll_t argument is elided, tempness is instead encoded in the
hobject.  RPGTransaction tracks which temp objects are created and
cleared so we can update the ReplicatedBackend tracking and possibly
create the temp collection as needed.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agohobject_t/ReplicatedPG: tempness is now an hobject thing
Samuel Just [Thu, 10 Oct 2013 23:10:36 +0000 (16:10 -0700)]
hobject_t/ReplicatedPG: tempness is now an hobject thing

PGBackend implmentations will have complete control over the temp
collection.  Rather than specifying the collection when sending
ops into the PGBackend, hobjects themselves will be temp or not.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPGBackend: add PGTransaction
Samuel Just [Thu, 10 Oct 2013 23:08:53 +0000 (16:08 -0700)]
PGBackend: add PGTransaction

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedBackend: update the collection_list mechanisms to skip stashed objects
Samuel Just [Wed, 4 Dec 2013 20:09:22 +0000 (12:09 -0800)]
ReplicatedBackend: update the collection_list mechanisms to skip stashed objects

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agotest/osd/: verify length of buffer returned in read
Samuel Just [Sun, 8 Dec 2013 03:46:54 +0000 (19:46 -0800)]
test/osd/: verify length of buffer returned in read

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agotest/osd/TestRados.cc: skip 0 weight ops
Samuel Just [Fri, 6 Dec 2013 19:02:04 +0000 (11:02 -0800)]
test/osd/TestRados.cc: skip 0 weight ops

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agotest/osd: add append support to WriteOp
Samuel Just [Thu, 5 Dec 2013 02:23:17 +0000 (18:23 -0800)]
test/osd: add append support to WriteOp

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agotest/osd: adapt RadosModel to not do omap ops on ec_pools
Samuel Just [Thu, 5 Dec 2013 02:42:49 +0000 (18:42 -0800)]
test/osd: adapt RadosModel to not do omap ops on ec_pools

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agotest/osd: restructure Object/RadosModel in prep for append
Samuel Just [Thu, 5 Dec 2013 00:06:17 +0000 (16:06 -0800)]
test/osd: restructure Object/RadosModel in prep for append

Attribute handling no longer has special support in ContentsGenerator.
The most recent operation information is now stored in a special
attr rather than at the beginning of the object.  ObjectDesc layers
include their own ContentsGenerators to allow more flexibility.

Also, writes truncate to the new object size rather than simply
causing reads to stop at that object size.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agotest/osd/Object: create encoders for ContDesc
Samuel Just [Wed, 4 Dec 2013 22:34:13 +0000 (14:34 -0800)]
test/osd/Object: create encoders for ContDesc

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agosrc/test/osd: remove tmap test
Samuel Just [Wed, 4 Dec 2013 22:37:54 +0000 (14:37 -0800)]
src/test/osd: remove tmap test

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPGLog: allow for empty pg log in update_range if log_tail == eversion_t()
Samuel Just [Mon, 9 Dec 2013 17:09:45 +0000 (09:09 -0800)]
PGLog: allow for empty pg log in update_range if log_tail == eversion_t()

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agocommon: add option to disable filestore sharded object check
Samuel Just [Thu, 5 Dec 2013 21:57:44 +0000 (13:57 -0800)]
common: add option to disable filestore sharded object check

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoFileStore::lfn_link: handle link within a collection
Samuel Just [Thu, 5 Dec 2013 22:55:18 +0000 (14:55 -0800)]
FileStore::lfn_link: handle link within a collection

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPG: prefer older last_update for ec_pool
Samuel Just [Sat, 7 Dec 2013 04:51:28 +0000 (20:51 -0800)]
PG: prefer older last_update for ec_pool

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoOSDMonitor: add debug_fake_ec_pool
Samuel Just [Fri, 22 Nov 2013 19:20:23 +0000 (11:20 -0800)]
OSDMonitor: add debug_fake_ec_pool

This flag will cause ReplicatedPG to act as though the
pool were actually an EC pool in that operations will
be restricted to operations which can be locally rolled
back thereby allowing us to test the ReplicatedPG local
log rollback mechanisms independent of EC.  It will also
cause ReplicatedPG to use the async read mechanism on
the PGBackend implementation once it is implemented.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPGLog::rewind_divergent_log: we can rewind to tail, fix assert
Samuel Just [Fri, 13 Dec 2013 20:43:00 +0000 (12:43 -0800)]
PGLog::rewind_divergent_log: we can rewind to tail, fix assert

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPGLog: don't move up log.tail
Samuel Just [Sat, 7 Dec 2013 21:19:49 +0000 (13:19 -0800)]
PGLog: don't move up log.tail

Moving up log.tail unnecessarily risks backfilling
a replica after a split.  Also, it disrupts the
property that replicas from the most recent interval
which performed writes must have overlapping logs.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedBackend: remove pushing entry for each object as it completes
Samuel Just [Thu, 2 Jan 2014 15:20:18 +0000 (07:20 -0800)]
ReplicatedBackend: remove pushing entry for each object as it completes

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoFileStore::_collection_move_rename: remove source before closing guard
Samuel Just [Sun, 8 Dec 2013 22:44:48 +0000 (14:44 -0800)]
FileStore::_collection_move_rename: remove source before closing guard

Fixes a bug in _collection_move_rename replays.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedBackend.h: don't need to be active for pushes
Samuel Just [Tue, 15 Oct 2013 00:54:17 +0000 (17:54 -0700)]
ReplicatedBackend.h: don't need to be active for pushes

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoObjectStore: improve name of the queue_transaction which cleans up the transaction
Samuel Just [Tue, 15 Oct 2013 02:13:19 +0000 (19:13 -0700)]
ObjectStore: improve name of the queue_transaction which cleans up the transaction

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agohobject: admit that gen_t is actually version_t
Samuel Just [Fri, 22 Nov 2013 00:33:23 +0000 (16:33 -0800)]
hobject: admit that gen_t is actually version_t

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #1079 from ceph/wip-tier-bits
Gregory Farnum [Wed, 22 Jan 2014 21:44:46 +0000 (13:44 -0800)]
Merge pull request #1079 from ceph/wip-tier-bits

osd: a few tiering fixes

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoMerge pull request #1126 from ceph/wip-osdmapenc-fix
Sage Weil [Wed, 22 Jan 2014 16:20:08 +0000 (08:20 -0800)]
Merge pull request #1126 from ceph/wip-osdmapenc-fix

MOSDMap: reencode maps if target doesn't have OSDMAP_ENC

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMOSDMap: reencode maps if target doesn't have OSDMAP_ENC 1126/head
Ilya Dryomov [Wed, 22 Jan 2014 15:33:39 +0000 (17:33 +0200)]
MOSDMap: reencode maps if target doesn't have OSDMAP_ENC

Reencode both full and incremental maps if target doesn't know how to
decode OSDMAP_ENC maps (CEPH_FEATURE_OSDMAP_ENC bit is not set).  This
fixes a compatibility bug that was introduced in 3d7c69fb0986 ("OSDMap:
add a CEPH_FEATURE_OSDMAP_ENC feature, and use new encoding").

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
11 years agoadded perl script for rgw bucket quota tests
tamil [Wed, 22 Jan 2014 02:51:49 +0000 (18:51 -0800)]
added perl script for rgw bucket quota tests

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
11 years agoremoving rgw_tests.sh
tamil [Wed, 22 Jan 2014 02:44:57 +0000 (18:44 -0800)]
removing rgw_tests.sh

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
(cherry picked from commit 54caa0192b02b03549fe4ca5d062495e6e429f97)

11 years agoremoving rgw_tests.sh
tamil [Wed, 22 Jan 2014 02:44:57 +0000 (18:44 -0800)]
removing rgw_tests.sh

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
11 years agoMerge branch 'master' of github.com:ceph/ceph
tamil [Wed, 22 Jan 2014 01:50:22 +0000 (17:50 -0800)]
Merge branch 'master' of github.com:ceph/ceph

11 years agomodified the port to 7280 in the script instead of the default 80
tamil [Wed, 22 Jan 2014 01:50:00 +0000 (17:50 -0800)]
modified the port to 7280 in the script instead of the default 80

Signed-off-by: tamil <tamil@tamil-VirtualBox.(none)>
11 years agoMerge pull request #1124 from ceph/wip-cache-mode-fix
Sage Weil [Wed, 22 Jan 2014 01:30:34 +0000 (17:30 -0800)]
Merge pull request #1124 from ceph/wip-cache-mode-fix

mon/MonCommands: 'invalidate+forward' -> 'forward'

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoscript for rgw bucket quota testing
tamil [Tue, 21 Jan 2014 23:56:37 +0000 (15:56 -0800)]
script for rgw bucket quota testing

Signed-off-by: tamil <tamil@tamil-VirtualBox.(none)>
11 years agomon/MonCommands: 'invalidate+forward' -> 'forward' 1124/head
Ilya Dryomov [Tue, 21 Jan 2014 22:27:09 +0000 (00:27 +0200)]
mon/MonCommands: 'invalidate+forward' -> 'forward'

Commit 4e439857a694 introduced invalidate+forward cache mode, commit
81279e3bb6e0 renamed it to forward, but missed the CLI.  Fix it.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
11 years agoMerge pull request #1123 from ceph/wip-stray-mdsmaps
Gregory Farnum [Tue, 21 Jan 2014 20:04:42 +0000 (12:04 -0800)]
Merge pull request #1123 from ceph/wip-stray-mdsmaps

mon/MDSMonitor: do not generate mdsmaps from already-laggy mds
Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agodoc: Fixed end string from '' to `` to stop warnings. Enforced 80 char line.
John Wilkins [Tue, 21 Jan 2014 19:51:15 +0000 (11:51 -0800)]
doc: Fixed end string from '' to `` to stop warnings. Enforced 80 char line.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>