From f56f736d28970a0f03ee887a5bd5515cc749d413 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Thu, 1 Jun 2017 18:07:47 -0400 Subject: [PATCH] bees: make a thread note when we read data Reads can block indefinitely due to bugs, low io priority, or poor storage performance. Record the block origin data in the thread state so we can see which reads are problematic. Signed-off-by: Zygo Blaxell --- src/bees-types.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bees-types.cc b/src/bees-types.cc index 6ae281f..df2d2b4 100644 --- a/src/bees-types.cc +++ b/src/bees-types.cc @@ -930,6 +930,7 @@ BeesBlockData::data() const { if (m_data.empty()) { THROW_CHECK1(invalid_argument, size(), size() > 0); + BEESNOTE("Reading BeesBlockData " << *this); BEESTOOLONG("Reading BeesBlockData " << *this); Timer read_timer;