Skip to contentSkip to conversation

e330b7: mon: create fail_mds_gid() helper; make 'ceph mds ...

ceph-commit Gregory Farnum 2 participants 2 messages Feb 14, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 79 lines · GitHub

Branch: refs/heads/master
Home: https://github.com/ceph/ceph
Commit: e330b7ec54f89ca799ada376d5615e3c1dfc54f0

      https://github.com/ceph/ceph/commit/e330b7ec54f89ca799ada376d5615e3c1dfc54f0

Author: Sage Weil <[email protected]>
Date: 2013-01-17 (Thu, 17 Jan 2013)

Changed paths:
M src/mon/MDSMonitor.cc
M src/mon/MDSMonitor.h

Log Message:
-----------
mon: create fail_mds_gid() helper; make 'ceph mds rm ...' more generic

Take a gid or a rank or a name. Use a nicer helper.

Commit: 2e112333397750a1b683c41f58c3fae05321fc49

      https://github.com/ceph/ceph/commit/2e112333397750a1b683c41f58c3fae05321fc49

Author: Sage Weil <[email protected]>
Date: 2013-01-17 (Thu, 17 Jan 2013)

Changed paths:
M src/common/config_opts.h
M src/mds/MDSMap.h
M src/mon/MDSMonitor.cc

Log Message:
-----------
mon: enforce unique name in mdsmap

Add 'mds enforce unique name' option, defaulting to true.

If set, when an MDS boots, it will kick any previous mds with the same name from the mdsmap. This is possibly less confusing for users. If an mds daemon restarts, it will immediately replace its previous instantiation.

Two misconfigured daemons running with the same name will fight over the same role.

Fixes #3857

Commit: dd7caf5f411696f8e7dc108270a8e85a34f3e80c

      https://github.com/ceph/ceph/commit/dd7caf5f411696f8e7dc108270a8e85a34f3e80c

Author: Sage Weil <[email protected]>
Date: 2013-01-17 (Thu, 17 Jan 2013)

Changed paths:
M src/mds/MDS.cc

Log Message:
-----------
mds: gracefully exit if newer gid replaces us by name

If 'mds enforce unique name' is set, and another MDS with the same name kicks us out of the MDSMap, gracefully exit instead of respawning and fighting over our position.

Commit: 6f28faf9e6613bff403bcd958818d8dccd004f9d

      https://github.com/ceph/ceph/commit/6f28faf9e6613bff403bcd958818d8dccd004f9d

Author: Sage Weil <[email protected]>
Date: 2013-01-17 (Thu, 17 Jan 2013)

Changed paths:
M src/mds/MDCache.cc

Log Message:
-----------
mds: open mydir after replay

Quoted 5 lines

In certain cases, we may replay the journal and not end up with the dirfrag for mydir open. This is fine--we just need to open it up and fetch it below.

In the tests I ran last night on this branch I saw some Valgrind warnings in the OSDs and Monitors, but I couldn't figure out any way for this series to have caused them so I assume they're latent and pop up occasionally in master? In any case, please keep an eye out in case I was wrong. :)
-Greg

#2 lore raw
Quoted 5 lines · Gregory Farnum

In the tests I ran last night on this branch I saw some Valgrind warnings in the OSDs and Monitors, but I couldn't figure out any way for this series to have caused them so I assume they're latent and pop up occasionally in master? In any case, please keep an eye out in case I was wrong. :)

That is probably a sneaky MMonPaxos leak in the mon. And the OSD isn't yet valgrind leak check clean.

sage