You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by no...@apache.org on 2023/02/22 08:02:24 UTC
[solr] branch jira/solr16636_test updated: added more debugging 4
This is an automated email from the ASF dual-hosted git repository.
noble pushed a commit to branch jira/solr16636_test
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/jira/solr16636_test by this push:
new 509a6409122 added more debugging 4
509a6409122 is described below
commit 509a64091227760bc5595ba382b6e15f6baeeb5d
Author: Noble Paul <no...@gmail.com>
AuthorDate: Wed Feb 22 19:02:13 2023 +1100
added more debugging 4
---
.../org/apache/solr/common/cloud/ZkStateReader.java | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkStateReader.java b/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkStateReader.java
index b8d9c84a6ef..015cf81aba0 100644
--- a/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkStateReader.java
+++ b/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkStateReader.java
@@ -1915,8 +1915,9 @@ public class ZkStateReader implements SolrCloseable {
//do not do anything
}
if (coll != null && predicate.matches(liveNodes, coll)) {
- log.info("bypassed collection watch");
return;
+ } else {
+ log.info("registering actual watcher");
}
final CountDownLatch latch = new CountDownLatch(1);
@@ -1953,13 +1954,16 @@ public class ZkStateReader implements SolrCloseable {
return fetchCachedCollection(collection);
} finally {
long time = System.currentTimeMillis() - start;
- StringBuilder sb = new StringBuilder();
- StackTraceElement[] st = new RuntimeException().getStackTrace();
- for (int i = 1; i < 5; i++) {
- StackTraceElement e = st[i];
- sb.append(e.getMethodName()).append("@").append(e.getLineNumber()).append(" > ");
+ if(time > 5) {
+ StringBuilder sb = new StringBuilder();
+ StackTraceElement[] st = new RuntimeException().getStackTrace();
+ for (int i = 1; i < 5; i++) {
+ StackTraceElement e = st[i];
+ sb.append(e.getMethodName()).append("@").append(e.getLineNumber()).append(" > ");
+ }
+
+ log.info("fetchCachedCollection. Waited {} callstack : {}", time, sb);
}
- log.info("fetchCachedCollection. Waited {} callstack : {}", time, sb);
}
}