Project

General

Profile

Feature #11174

An MDS-specific assert that dumps cache state

Added by John Spray over 4 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Introspection/Control
Target version:
-
Start date:
03/19/2015
Due date:
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:

Description

There are a ton of places where we assert certain thing are consistent within the MDCache+MDLog+etc state. Asserting is a good thing, but we could leave more useful stuff around than a stack trace. Things like:

  • an MDCache dump
  • an OpTracker ops in flight dump
  • a clog() message
  • a message to MDSMonitor to indicate our failure so that nobody has to wait for us to go laggy

This mechanism would not replace normal assertions for things like validity of pointers or iterators, as once those are violated we can no longer safely traverse any of our internal data structures.

History

#1 Updated by John Spray over 4 years ago

  • Description updated (diff)

#2 Updated by Greg Farnum over 3 years ago

  • Category changed from 47 to Introspection/Control

Also available in: Atom PDF