]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
11 years agomailmap: Bjørnar Ness affiliation
Loic Dachary [Wed, 5 Mar 2014 07:46:42 +0000 (08:46 +0100)]
mailmap: Bjørnar Ness affiliation

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Ron Allred affiliation
Loic Dachary [Sun, 2 Mar 2014 08:02:18 +0000 (09:02 +0100)]
mailmap: Ron Allred affiliation

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Steve Stock affiliation
Loic Dachary [Sun, 2 Mar 2014 08:01:07 +0000 (09:01 +0100)]
mailmap: Steve Stock affiliation

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Christopher O'Connell affiliation
Loic Dachary [Sat, 1 Mar 2014 16:36:52 +0000 (17:36 +0100)]
mailmap: Christopher O'Connell affiliation

Reviewed-by: Christopher O'Connell <jwriteclub@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Mike Lundy affiliation
Loic Dachary [Sat, 1 Mar 2014 16:32:16 +0000 (17:32 +0100)]
mailmap: Mike Lundy affiliation

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Mouad Benchchaoui affiliation
Loic Dachary [Sat, 1 Mar 2014 16:29:32 +0000 (17:29 +0100)]
mailmap: Mouad Benchchaoui affiliation

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Andrey Kuznetsov affiliation
Loic Dachary [Sat, 1 Mar 2014 16:28:04 +0000 (17:28 +0100)]
mailmap: Andrey Kuznetsov affiliation

Reviewed-by: Andrey Kuznetsov <Andrey_Kuznetsov@epam.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Wang, Yaguang affiliation
Loic Dachary [Sat, 1 Mar 2014 16:26:10 +0000 (17:26 +0100)]
mailmap: Wang, Yaguang affiliation

and name normalization

Reviewed-by: Wang, Yaguang <yaguang.wang@intel.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: The Linux Box affiliations
Loic Dachary [Sat, 1 Mar 2014 16:20:43 +0000 (17:20 +0100)]
mailmap: The Linux Box affiliations

Matt Benjamin, Adam C. Emerson and Casey Bodley are with The Linux Box

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1334 from kazhang/wip-get-hit_set-parameter
Sage Weil [Sat, 1 Mar 2014 09:21:37 +0000 (01:21 -0800)]
Merge pull request #1334 from kazhang/wip-get-hit_set-parameter

OSDMonitor: enable getting hit set parameters

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoOSDMonitor: enable getting hit set parameters 1334/head
Kai Zhang [Sat, 1 Mar 2014 08:22:14 +0000 (00:22 -0800)]
OSDMonitor: enable getting hit set parameters
We would like to get the hit set parameters: hit_set_type |
hit_set_period | hit_set_count | hit_set_fpp via OSDMonitor

Signed-off-by: Kai Zhang <zakir.exe@gmail.com>
11 years agoMerge pull request #1333 from ceph/wip-s3radoscheck-wusui
Yehuda Sadeh [Sat, 1 Mar 2014 05:57:25 +0000 (21:57 -0800)]
Merge pull request #1333 from ceph/wip-s3radoscheck-wusui

Use pgrep radosgw to determine if rados gateway is running.

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoUse pgrep radosgw to determine if rados gateway is running. 1333/head
Warren Usui [Sat, 1 Mar 2014 05:43:31 +0000 (21:43 -0800)]
Use pgrep radosgw to determine if rados gateway is running.
Fixes: 7528
Signed-off-by: Warren Usui <warren.usui@inktank.com>
11 years agoMerge pull request #1323 from ceph/wip-requests-dependencies
Sage Weil [Fri, 28 Feb 2014 16:34:14 +0000 (08:34 -0800)]
Merge pull request #1323 from ceph/wip-requests-dependencies

Fix python-requests package dependencies.

Backport: firefly
Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoFix python-requests package dependencies. 1323/head
Dan Mick [Thu, 27 Feb 2014 01:11:05 +0000 (17:11 -0800)]
Fix python-requests package dependencies.

python-ceph does not require requests, but ceph-common does (for ceph-brag).

Signed-off-by: Dan Mick <dan.mick@inktank.com>
11 years agoMerge pull request #1263 from ceph/wip-mds-dumper
Gregory Farnum [Wed, 26 Feb 2014 18:30:57 +0000 (10:30 -0800)]
Merge pull request #1263 from ceph/wip-mds-dumper

mds: Dumper improvements

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agomds: Add dump-journal-entries 1263/head
John Spray [Thu, 13 Feb 2014 12:59:00 +0000 (12:59 +0000)]
mds: Add dump-journal-entries

This adds a somewhat-human-readable peer to
the 'dump-journal' command.

Signed-off-by: John Spray <john.spray@inktank.com>
11 years agomds: Create MDSUtility as base for Dumper/Resetter
John Spray [Wed, 12 Feb 2014 12:19:57 +0000 (12:19 +0000)]
mds: Create MDSUtility as base for Dumper/Resetter

These classes has lots of similar functionality and we may
want to add more similar things in the future.

Also, get a copy of the MDS map at startup
to learn the ID of the metadata pool instead of
assuming it's the default.

Signed-off-by: John Spray <john.spray@inktank.com>
11 years agomds: Fix Dumper shutdown
John Spray [Tue, 11 Feb 2014 23:48:33 +0000 (23:48 +0000)]
mds: Fix Dumper shutdown

It was shutting down messenger before monclient.  This
caused a sometimes-assertion when monclient tried to
reconnect in response to ms_handle_reset.

Signed-off-by: John Spray <john.spray@inktank.com>
11 years agoMerge pull request #1283 from ceph/wip-7485
Gregory Farnum [Wed, 26 Feb 2014 17:46:31 +0000 (09:46 -0800)]
Merge pull request #1283 from ceph/wip-7485

mon/MDSMonitor: Cope with failures during creation

Reviewed-by: Greg Farnum <greg@inktank.com
11 years agoMerge pull request #1264 from ceph/wip-mds-dencoder
Gregory Farnum [Wed, 26 Feb 2014 05:26:58 +0000 (21:26 -0800)]
Merge pull request #1264 from ceph/wip-mds-dencoder

mds: Add encode/decode/dump for use with dencoder

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoMerge pull request #1280 from ceph/wip-7374-wusui
Yehuda Sadeh [Wed, 26 Feb 2014 02:00:37 +0000 (18:00 -0800)]
Merge pull request #1280 from ceph/wip-7374-wusui

Fix sub check() to not exit if rgw is running.

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoMerge pull request #1279 from ceph/wip-7375-wusui
Yehuda Sadeh [Wed, 26 Feb 2014 01:59:51 +0000 (17:59 -0800)]
Merge pull request #1279 from ceph/wip-7375-wusui

Fixed sub check() to say okay if rgw is running.

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoFixed get_status() to find client.radosgw fields inside of ps output. 1279/head
Warren Usui [Fri, 21 Feb 2014 05:07:53 +0000 (21:07 -0800)]
Fixed get_status() to find client.radosgw fields inside of ps output.
Fixes: 7375
Signed-off-by: Warren Usui <warren.usui@inktank.com>
11 years agoFix get_status() to find client.rados text inside of ps command results. 1280/head
Warren Usui [Fri, 21 Feb 2014 05:11:45 +0000 (21:11 -0800)]
Fix get_status() to find client.rados text inside of ps command results.
Added port (fixed value for right now in teuthology) to hostname.
Fixes: 7374
Signed-off-by: Warren Usui <warren.usui@inktank.com>
11 years agomds: add mds_kill_create_at for testing 1283/head
John Spray [Mon, 24 Feb 2014 12:14:59 +0000 (12:14 +0000)]
mds: add mds_kill_create_at for testing

Signed-off-by: John Spray <john.spray@inktank.com>
11 years agoMerge pull request #1303 from ceph/port/temp-failure-retry
Sage Weil [Mon, 24 Feb 2014 03:59:00 +0000 (19:59 -0800)]
Merge pull request #1303 from ceph/port/temp-failure-retry

compat: avoid unused warn with TEMP_FAILURE_RETRY

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agocompat: avoid unused warn with TEMP_FAILURE_RETRY 1303/head
Noah Watkins [Sun, 23 Feb 2014 19:14:00 +0000 (11:14 -0800)]
compat: avoid unused warn with TEMP_FAILURE_RETRY

The version of TEMP_FAILURE_RETRY found on Linux has a GNU extension
that squashes the unused return value warning where applicable. This
adds a VOID_TEMP_FAILURE_RETRY to make the case explicit, casting the
expression value to void to avoid the warning.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoMerge pull request #1287 from kdreyer-inktank/redhat-files
Sage Weil [Sun, 23 Feb 2014 17:49:27 +0000 (09:49 -0800)]
Merge pull request #1287 from kdreyer-inktank/redhat-files

packaging: file list adjustments

Tested-by: Huang Jun <hjwsm1989@gmail.com>
11 years agoMerge pull request #1265 from ceph/wip-mds-misc
Sage Weil [Sun, 23 Feb 2014 17:45:55 +0000 (09:45 -0800)]
Merge pull request #1265 from ceph/wip-mds-misc

MDS misc. cleanup

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoos/ObjectStore: fix rebase errors
Sage Weil [Sun, 23 Feb 2014 17:00:27 +0000 (09:00 -0800)]
os/ObjectStore: fix rebase errors

These were goofed by d74f1282cd268b4b04cfd9e90ddeac6d1dc6be7e.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoREADME: add build dep
Sage Weil [Sun, 23 Feb 2014 16:17:58 +0000 (08:17 -0800)]
README: add build dep

Technically it's a 'make check' dep, but close enough.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge remote-tracking branch 'gh/firefly'
Sage Weil [Sun, 23 Feb 2014 15:38:43 +0000 (07:38 -0800)]
Merge remote-tracking branch 'gh/firefly'

11 years agoMerge pull request #1290 from ceph/wip-os-doc
Sage Weil [Sun, 23 Feb 2014 15:37:55 +0000 (07:37 -0800)]
Merge pull request #1290 from ceph/wip-os-doc

os/ObjectStore: document interface

11 years agoos/ObjectStore: document interface 1290/head
Allen Samuels [Sun, 23 Feb 2014 15:29:05 +0000 (07:29 -0800)]
os/ObjectStore: document interface

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoMerge pull request #1294 from ceph/wip-librados-object-iterator
Sage Weil [Sun, 23 Feb 2014 15:25:13 +0000 (07:25 -0800)]
Merge pull request #1294 from ceph/wip-librados-object-iterator

fix bugs in librados::ObjectIterator

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1295 from yuyuyu101/keyvaluestore-enhance
Sage Weil [Sun, 23 Feb 2014 15:24:43 +0000 (07:24 -0800)]
Merge pull request #1295 from yuyuyu101/keyvaluestore-enhance

Keyvaluestore enhance(backport to firely)

Pulling this into firefly because it doesn't (substantiatively) touch anything outside of KeyValueStore.

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1297 from ceph/wip-ec-bugs
Sage Weil [Sun, 23 Feb 2014 15:12:40 +0000 (07:12 -0800)]
Merge pull request #1297 from ceph/wip-ec-bugs

Wip ec bugs

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agounittest_ecbackend: fix signed/unsigned warnings
Sage Weil [Sun, 23 Feb 2014 06:00:55 +0000 (22:00 -0800)]
unittest_ecbackend: fix signed/unsigned warnings

In file included from test/osd/TestECBackend.cc:20:0:
../src/gtest/include/gtest/gtest.h: In instantiation of ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int; T2 = int]’:
../src/gtest/include/gtest/gtest.h:1300:30: required from ‘static testing::AssertionResult testing::internal::EqHelper::Compare(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int; T2 = int; bool lhs_is_null_literal = false]’
test/osd/TestECBackend.cc:30:281: required from here
warning: ../src/gtest/include/gtest/gtest.h:1263:3: comparison between signed and unsigned integer expressions [-Wsign-compare]

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1301 from ceph/wip-scrub-primary
Sage Weil [Sun, 23 Feb 2014 05:56:53 +0000 (21:56 -0800)]
Merge pull request #1301 from ceph/wip-scrub-primary

mon/PGMonitor: fix primary osd check on deep-scrub

gitbuilders are now passing

11 years agomon/PGMonitor: fix primary osd check on deep-scrub 1301/head
Sage Weil [Sun, 23 Feb 2014 05:31:48 +0000 (21:31 -0800)]
mon/PGMonitor: fix primary osd check on deep-scrub

s/!=/==/.  Logic was reversed.

Broken in 40bdcb88504aea6288d461d29d24d5b0bf7aeebc.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1300 from ceph/wip-7513
Samuel Just [Sun, 23 Feb 2014 01:35:46 +0000 (17:35 -0800)]
Merge pull request #1300 from ceph/wip-7513

PGLog::activate_not_complete typo

Reviewed-by: David Zafman <david.zafman@inktank.com>
11 years agoPGLog::activate_not_complete: fix log.complete_to increment typo 1300/head
Samuel Just [Sun, 23 Feb 2014 00:38:46 +0000 (16:38 -0800)]
PGLog::activate_not_complete: fix log.complete_to increment typo

info.last_complete should be the entry before log.complete_to.

This appears to have been a typo introduced in
dd71051a8f6ec611b3559f8e2aff3c001be37792.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #1298 from ceph/wip-subscribe
Samuel Just [Sun, 23 Feb 2014 01:18:55 +0000 (17:18 -0800)]
Merge pull request #1298 from ceph/wip-subscribe

osd: fix off-by-one is boot subscription

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #1299 from ceph/wip-repair
David Zafman [Sat, 22 Feb 2014 22:55:08 +0000 (14:55 -0800)]
Merge pull request #1299 from ceph/wip-repair

osd/PG: fix assert when a shallow repair has fixed all errors.

Reviewed-by: David Zafman <david.zafman@inktank.com>
11 years agoosd/PG: fix assert when deep repair finds no errors 1299/head
David Zafman [Sat, 22 Feb 2014 21:51:03 +0000 (13:51 -0800)]
osd/PG: fix assert when deep repair finds no errors

If there are no deep repairs, we don't want to assert.
Fixes:

    -1> 2014-02-21 21:13:56.393087 7f0258ff9700  0 log [INF] : 0.0 repair ok, 0 fixed
     0> 2014-02-21 21:13:56.428703 7f0258ff9700 -1 osd/PG.cc: In function 'void PG::scrub_finish()' thread 7f0258ff9700 time 2014-02-21 21:13:56.393127
osd/PG.cc: 4294: FAILED assert(deep_scrub)

Signed-off-by: David Zafman <david.zafman@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoPGLog: test for missing using the correct shard value 1296/head 1297/head
Samuel Just [Fri, 21 Feb 2014 21:25:36 +0000 (13:25 -0800)]
PGLog: test for missing using the correct shard value

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoOSD: fix query for ec pgs
Samuel Just [Fri, 21 Feb 2014 21:25:17 +0000 (13:25 -0800)]
OSD: fix query for ec pgs

We need to parse a pg_t and translate it into an spg_t.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoObjecter: make is_pg_changed static and const for old/newacting
Samuel Just [Fri, 21 Feb 2014 20:00:06 +0000 (12:00 -0800)]
Objecter: make is_pg_changed static and const for old/newacting

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoOSDMap: make calc_pg_rank/role const for acting
Samuel Just [Fri, 21 Feb 2014 19:59:16 +0000 (11:59 -0800)]
OSDMap: make calc_pg_rank/role const for acting

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoObjecter: resend op if primary role changed
Samuel Just [Fri, 21 Feb 2014 19:59:04 +0000 (11:59 -0800)]
Objecter: resend op if primary role changed

Fixes: #7508
Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoECTransaction: require hash_infos for deleted objects
Samuel Just [Fri, 21 Feb 2014 17:34:15 +0000 (09:34 -0800)]
ECTransaction: require hash_infos for deleted objects

Otherwise, an append preceded by a delete may not see the
correct HashInfo state since it won't have been cached
until the delete is applied.

Fixes: #7506
Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoECUtil: clear() should reset hashes to -1, not 0
Samuel Just [Fri, 21 Feb 2014 17:33:05 +0000 (09:33 -0800)]
ECUtil: clear() should reset hashes to -1, not 0

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG::cancel_pull: ECBackend might cancel_pull on a non-missing object
Samuel Just [Fri, 21 Feb 2014 02:32:08 +0000 (18:32 -0800)]
ReplicatedPG::cancel_pull: ECBackend might cancel_pull on a non-missing object

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoECBackend::filter_read_op: clean up read state properly
Samuel Just [Fri, 21 Feb 2014 02:31:35 +0000 (18:31 -0800)]
ECBackend::filter_read_op: clean up read state properly

Fixes: #7494
Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoosd: fix off-by-one is boot subscription 1298/head
Sage Weil [Sat, 22 Feb 2014 16:08:37 +0000 (08:08 -0800)]
osd: fix off-by-one is boot subscription

If we have osdmap N, we want to onetime subscribe
starting at N+1.  Among other things, it means we
hear when the NOUP flag is cleared.

This appears to have broken somewhere around
3c76b81f2f96b790b72f2088164ed8e9d5efbba1.

Fixes: #7511
Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoRename keyvaluestore_check_backend to keyvaluestore_debug_check_backend 1282/head 1295/head
Haomai Wang [Sat, 22 Feb 2014 15:57:02 +0000 (23:57 +0800)]
Rename keyvaluestore_check_backend to keyvaluestore_debug_check_backend

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoAdd KeyValueStore op thread options
Haomai Wang [Fri, 21 Feb 2014 14:48:00 +0000 (22:48 +0800)]
Add KeyValueStore op thread options

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoRemove eio inject codes in KeyValueStore
Haomai Wang [Fri, 21 Feb 2014 14:44:39 +0000 (22:44 +0800)]
Remove eio inject codes in KeyValueStore

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoAdd config tracker to KeyValueStore
Haomai Wang [Fri, 21 Feb 2014 14:35:10 +0000 (22:35 +0800)]
Add config tracker to KeyValueStore

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoAdd backend check option to KeyValueStore
Haomai Wang [Fri, 21 Feb 2014 14:33:58 +0000 (22:33 +0800)]
Add backend check option to KeyValueStore

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoRemove filestore_inject_stall
Haomai Wang [Fri, 21 Feb 2014 14:14:52 +0000 (22:14 +0800)]
Remove filestore_inject_stall

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoRemove m_eio in KeyValueStore
Haomai Wang [Fri, 21 Feb 2014 14:10:17 +0000 (22:10 +0800)]
Remove m_eio in KeyValueStore

KeyValueStore use kv backend to detect errors and nearly can't know the actual
reason for error.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoMake SequencePosition sync by each transaction
Haomai Wang [Fri, 21 Feb 2014 13:59:42 +0000 (21:59 +0800)]
Make SequencePosition sync by each transaction

Each object modify will increase SequencePosition and sync it to disk

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoImplement collection_rename interface in KeyValueStore
Haomai Wang [Fri, 21 Feb 2014 13:36:48 +0000 (21:36 +0800)]
Implement collection_rename interface in KeyValueStore

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoRemove unnecessary "check_coll" check
Haomai Wang [Fri, 21 Feb 2014 12:55:19 +0000 (20:55 +0800)]
Remove unnecessary "check_coll" check

The goal of "check_coll" is aimed to ensure the collection is exists. But
the create and delete of collection already ensured by OSD, just remove check.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoOptimize write call add enhance error detect
Haomai Wang [Fri, 21 Feb 2014 08:46:53 +0000 (16:46 +0800)]
Optimize write call add enhance error detect

A single write call may need several keys in the backend kv store. Let get these
keys one time.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoUnify object level lock in GenericObjectMap
Haomai Wang [Fri, 21 Feb 2014 06:44:48 +0000 (14:44 +0800)]
Unify object level lock in GenericObjectMap

Before we copy lock implementation from DBObjectMap which provide with two locks
for header. Here just unify it to make ease.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoFix incorrect read and truncate
Haomai Wang [Fri, 21 Feb 2014 04:23:10 +0000 (12:23 +0800)]
Fix incorrect read and truncate

If the first chunk of object is not read entirely, the current implementation
will contain it entirely which make wrong.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoReturn 0 when the offset of read exceed the length of object
Haomai Wang [Fri, 21 Feb 2014 04:22:24 +0000 (12:22 +0800)]
Return 0 when the offset of read exceed the length of object

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoAdd read/write operation to store_test.cc
Haomai Wang [Thu, 20 Feb 2014 08:57:34 +0000 (16:57 +0800)]
Add read/write operation to store_test.cc

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoAdjust some interfaces to optimize caller codes
Haomai Wang [Thu, 20 Feb 2014 06:21:54 +0000 (14:21 +0800)]
Adjust some interfaces to optimize caller codes

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoUse rename operation to make colection_move atomic
Haomai Wang [Thu, 20 Feb 2014 04:20:21 +0000 (12:20 +0800)]
Use rename operation to make colection_move atomic

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoAdd get_*_with_header to StripObjectHeader
Haomai Wang [Thu, 20 Feb 2014 03:43:16 +0000 (11:43 +0800)]
Add get_*_with_header to StripObjectHeader

In some situations, we need to ensure header is held and try to read, so read
interfaces need to accept header argument to allow.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoAdd test for omap interface
Haomai Wang [Thu, 20 Feb 2014 03:42:55 +0000 (11:42 +0800)]
Add test for omap interface

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoMove perf counter and add op queue reserve throttle
Haomai Wang [Tue, 18 Feb 2014 14:46:22 +0000 (22:46 +0800)]
Move perf counter and add op queue reserve throttle

The perf counter of FileStore can shared with other ObjectStore backend, so move
it to ObjectStore and adjust position to let other KeyValueStore refer to.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoFix deadlock caused by hold collection obj
Haomai Wang [Tue, 18 Feb 2014 07:04:25 +0000 (15:04 +0800)]
Fix deadlock caused by hold collection obj

Collection is a special object in KeyValueStore, if exists collection modify,
this object will be hold. When exists check collection, it will be dead lock to
try to access this object.

Now lookup transaction cache first to ensure no collection object exists
already.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoMerge branch 'wip-6685-firefly' into firefly
David Zafman [Sat, 22 Feb 2014 03:28:37 +0000 (19:28 -0800)]
Merge branch 'wip-6685-firefly' into firefly

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #1293 from jwriteclub/doc-update-ceph-osd-note
Josh Durgin [Sat, 22 Feb 2014 02:30:29 +0000 (18:30 -0800)]
Merge pull request #1293 from jwriteclub/doc-update-ceph-osd-note

Added a note that the ceph-osd command requires the cluster option.

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoAdded a note that the ceph-osd command requires the cluster option. 1293/head
Christopher O'Connell [Sat, 22 Feb 2014 02:26:58 +0000 (18:26 -0800)]
Added a note that the ceph-osd command requires the cluster option.

Signed-off-by: Christopher O'Connell <jwriteclub@gmail.com>
11 years agolibrados: implement ObjectIterator copying and assignment 1294/head
Josh Durgin [Fri, 21 Feb 2014 01:28:11 +0000 (17:28 -0800)]
librados: implement ObjectIterator copying and assignment

Copied iterators should be independent of each other, and not
rely on the same underlying ListContext or ObjListCtx.

Add some tests for this to make sure they work in various
circumstances.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoMerge remote-tracking branch 'origin/wip-da-SCA-20140218' into firefly
Josh Durgin [Sat, 22 Feb 2014 01:40:30 +0000 (17:40 -0800)]
Merge remote-tracking branch 'origin/wip-da-SCA-20140218' into firefly

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoAdded evaluation of cluster and fixed evaluation when setting initial weight on start...
Christopher O'Connell [Sat, 22 Feb 2014 02:23:38 +0000 (18:23 -0800)]
Added evaluation of cluster and fixed evaluation when setting initial weight on start in verbose mode

Signed-off-by: Christopher O'Connell <jwriteclub@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agolibrados: don't destroy ObjListCtx when iterator reaches the end
Josh Durgin [Fri, 21 Feb 2014 23:52:59 +0000 (15:52 -0800)]
librados: don't destroy ObjListCtx when iterator reaches the end

There's no need to destroy it when we've used it once. It'll get destroyed
by the destructor anyway. Now that there's a seek method, we might want seek
and iterate again anyway, which is not possible if the ObjListCtx is gone.

Change get_next() to check the underlying ObjListCtx for the end of iteration
instead of deleting ObjListCtx, and modify the equality operator to count
the end marker (with ctx == NULL) as equal to having a ObjListCtx at the
end of its list.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
11 years agolibrados: remove extra advance from objects_begin(position)
Josh Durgin [Fri, 21 Feb 2014 01:30:54 +0000 (17:30 -0800)]
librados: remove extra advance from objects_begin(position)

ObjectIterator::seek() already calls get_next() to update the
iterator's state. Calling it again goes one past where it should be.

When the iterator reached the end of the list, it deleted the ListCtx,
causing a segfault on further accesses.

Fixes: #7491
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoMerge pull request #1286 from ceph/wip-corpus
Josh Durgin [Fri, 21 Feb 2014 23:57:29 +0000 (15:57 -0800)]
Merge pull request #1286 from ceph/wip-corpus

ceph-object-corpus: prune some old releases

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoRevert "ReplicatedPG::recover_backfill: adjust last_backfill to HEAD if snapdir"
David Zafman [Mon, 17 Feb 2014 02:24:33 +0000 (18:24 -0800)]
Revert "ReplicatedPG::recover_backfill: adjust last_backfill to HEAD if snapdir"

This reverts commit 545135f3e1c75318940caa2c82ac32a53fc4f957.

Conflicts:

src/osd/ReplicatedPG.cc

11 years agoMerge remote-tracking branch 'origin/port/updates' into firefly
Josh Durgin [Fri, 21 Feb 2014 22:46:27 +0000 (14:46 -0800)]
Merge remote-tracking branch 'origin/port/updates' into firefly

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agopackaging: match all test files 1287/head
Ken Dreyer [Fri, 21 Feb 2014 22:05:51 +0000 (15:05 -0700)]
packaging: match all test files

It's tedious to try to keep the list of test files up to date in the RPM
spec file. Use a wildcard to match them all.

Reported-by: huangjun <hjwsm1989@gmail.com>
Signed-off-by: Ken Dreyer <ken.dreyer@inktank.com>
11 years agopackaging: add missing file
huangjun [Fri, 21 Feb 2014 20:40:20 +0000 (13:40 -0700)]
packaging: add missing file

Signed-off-by: huangjun <hjwsm1989@gmail.com>
Reviewed-by: Ken Dreyer <ken.dreyer@inktank.com>
11 years agoceph-object-corpus: prune some old releases 1286/head
Sage Weil [Fri, 21 Feb 2014 21:57:24 +0000 (13:57 -0800)]
ceph-object-corpus: prune some old releases

We do not need to test these old object encodings as they are covered by
later object collections.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge remote-tracking branch 'origin/wip-6936' into firefly
Josh Durgin [Fri, 21 Feb 2014 21:10:47 +0000 (13:10 -0800)]
Merge remote-tracking branch 'origin/wip-6936' into firefly

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoMerge remote-tracking branch 'origin/wip-7099' into firefly
Josh Durgin [Fri, 21 Feb 2014 21:09:52 +0000 (13:09 -0800)]
Merge remote-tracking branch 'origin/wip-7099' into firefly

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoMerge remote-tracking branch 'origin/wip-6830' into firefly
Josh Durgin [Fri, 21 Feb 2014 21:08:21 +0000 (13:08 -0800)]
Merge remote-tracking branch 'origin/wip-6830' into firefly

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoMerge remote-tracking branch 'origin/wip-6951' into firefly
Josh Durgin [Fri, 21 Feb 2014 21:07:34 +0000 (13:07 -0800)]
Merge remote-tracking branch 'origin/wip-6951' into firefly

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoMerge remote-tracking branch 'origin/wip-7064' into firefly
Josh Durgin [Fri, 21 Feb 2014 21:06:37 +0000 (13:06 -0800)]
Merge remote-tracking branch 'origin/wip-7064' into firefly

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoMerge remote-tracking branch 'origin/wip-7271' into firefly
Josh Durgin [Fri, 21 Feb 2014 21:05:49 +0000 (13:05 -0800)]
Merge remote-tracking branch 'origin/wip-7271' into firefly

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agodencoder: check for radosgw build option 1288/head
Noah Watkins [Fri, 21 Feb 2014 21:00:29 +0000 (13:00 -0800)]
dencoder: check for radosgw build option

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoosd: use ceph scoped shared_ptr
Noah Watkins [Fri, 21 Feb 2014 21:00:09 +0000 (13:00 -0800)]
osd: use ceph scoped shared_ptr

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agomon/MDSMonitor: Cope with failures during creation
John Spray [Fri, 21 Feb 2014 16:18:13 +0000 (16:18 +0000)]
mon/MDSMonitor: Cope with failures during creation

Previously an MDS which failed in state CREATING could be
assigned the sequence BOOT->STANDBY->REPLAY at its next
startup, which fails to re-try the creation.

Fixes: #7485
Signed-off-by: John Spray <john.spray@inktank.com>