This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit fdaf29d262090d394d3482ef6f8d2dcd54f97f41
Author: Persia Aziz <[email protected]>
AuthorDate: Fri Feb 2 16:44:34 2018 -0600

    Note the stripe meta while clearing the stripe
    
    (cherry picked from commit f5751c3f58b0c75c1a4bd7b1a534ff14c3082b8e)
---
 iocore/cache/Cache.cc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/iocore/cache/Cache.cc b/iocore/cache/Cache.cc
index e0b6339..1b6edd6 100644
--- a/iocore/cache/Cache.cc
+++ b/iocore/cache/Cache.cc
@@ -1470,6 +1470,10 @@ Vol::handle_dir_read(int event, void *data)
   if (!(header->magic == VOL_MAGIC && footer->magic == VOL_MAGIC &&
         CACHE_DB_MAJOR_VERSION_COMPATIBLE <= header->version.ink_major && 
header->version.ink_major <= CACHE_DB_MAJOR_VERSION)) {
     Warning("bad footer in cache directory for '%s', clearing", 
hash_text.get());
+    Note("VOL_MAGIC %d\n header magic: %d\n footer_magic %d\n 
CACHE_DB_MAJOR_VERSION_COMPATIBLE %d\n major version %d\n"
+         "CACHE_DB_MAJOR_VERSION %d\n",
+         VOL_MAGIC, header->magic, footer->magic, 
CACHE_DB_MAJOR_VERSION_COMPATIBLE, header->version.ink_major,
+         CACHE_DB_MAJOR_VERSION);
     Note("clearing cache directory '%s'", hash_text.get());
     clear_dir();
     return EVENT_DONE;
@@ -1832,7 +1836,9 @@ Vol::handle_header_read(int event, void *data)
       io.aiocb.aio_offset = skip + vol_dirlen(this);
       ink_assert(ink_aio_read(&io));
     } else {
-      Note("no good directory, clearing '%s'", hash_text.get());
+      Note("no good directory, clearing '%s' since sync_serials on both A and 
B copies are invalid", hash_text.get());
+      Note("Header A: %d\nFooter A: %d\n Header B: %d\n Footer B %d\n", 
hf[0]->sync_serial, hf[1]->sync_serial, hf[2]->sync_serial,
+           hf[3]->sync_serial);
       clear_dir();
       delete init_info;
       init_info = nullptr;

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to