]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: initialize last_* timestamps on new pgs to creation time 7980/head
authorSage Weil <sage@redhat.com>
Tue, 8 Mar 2016 18:46:58 +0000 (13:46 -0500)
committerSage Weil <sage@redhat.com>
Tue, 8 Mar 2016 18:46:58 +0000 (13:46 -0500)
commit433afce6288207b4fa8fcd6f1d72aa617cbd57a3
treef585d5bbbb27b5f474a10f678b8d1fad03c18e57
parent796331d6a17b4f5ea6f133ed2b56d5780cbcf6f1
mon: initialize last_* timestamps on new pgs to creation time

Currently, when you create a pool, until the PGs peer you generate a health
error like

            8 pgs are stuck inactive for more than 300 seconds

which is inaccurate and misleading.  Instead, set the timestamps to the
creation time so that warnings don't appear until it's clear they're stuck.

Fixes: #14952
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/PGMonitor.cc