[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-db/master] Raise the threshold for warning about missing descriptors.



commit 3235ecfc4ced5ddea10421e6f7b4edb0ef8cfc57
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Sat Nov 3 06:22:04 2012 -0400

    Raise the threshold for warning about missing descriptors.
    
    Apparently, it happens quite often that 0.1% of extra-info descriptors
    are missing that are referenced from a vote.  Raising the threshold to
    0.5% to reduce frequent warnings.  Anything between 0.1% and 0.5% still
    does not indicate a problem.
---
 .../ernie/db/relaydescs/ArchiveWriter.java         |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/org/torproject/ernie/db/relaydescs/ArchiveWriter.java b/src/org/torproject/ernie/db/relaydescs/ArchiveWriter.java
index a128a16..2f1df0f 100644
--- a/src/org/torproject/ernie/db/relaydescs/ArchiveWriter.java
+++ b/src/org/torproject/ernie/db/relaydescs/ArchiveWriter.java
@@ -470,8 +470,8 @@ public class ArchiveWriter extends Thread {
               voteFoundExtraInfos, voteAllExtraInfos,
               100.0D * (double) voteFoundExtraInfos /
                 (double) voteAllExtraInfos));
-          if (voteFoundServerDescs * 1000 < voteAllServerDescs * 999 ||
-              voteFoundExtraInfos * 1000 < voteAllExtraInfos * 999) {
+          if (voteFoundServerDescs * 1000 < voteAllServerDescs * 995 ||
+              voteFoundExtraInfos * 1000 < voteAllExtraInfos * 995) {
             missingDescriptors = true;
           }
         }
@@ -503,8 +503,8 @@ public class ArchiveWriter extends Thread {
           100.0D * (double) foundServerDescs / (double) allServerDescs,
           foundExtraInfos, allExtraInfos,
           100.0D * (double) foundExtraInfos / (double) allExtraInfos));
-      if (foundServerDescs * 1000 < allServerDescs * 999 ||
-          foundExtraInfos * 1000 < allExtraInfos * 999) {
+      if (foundServerDescs * 1000 < allServerDescs * 995 ||
+          foundExtraInfos * 1000 < allExtraInfos * 995) {
         missingDescriptors = true;
       }
       if (foundVotes < allVotes) {
@@ -513,7 +513,7 @@ public class ArchiveWriter extends Thread {
     }
     this.logger.info(sb.toString());
     if (missingDescriptors) {
-      this.logger.warning("We are missing at least 0.1% of server or "
+      this.logger.warning("We are missing at least 0.5% of server or "
           + "extra-info descriptors referenced from a consensus or "
           + "vote.");
     }

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits