You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "mlbiscoc (via GitHub)" <gi...@apache.org> on 2026/05/07 20:51:29 UTC
[PR] SOLR-17855: Remove Dropwizard dependency from core [solr]
mlbiscoc opened a new pull request, #4404:
URL: https://github.com/apache/solr/pull/4404
https://issues.apache.org/jira/browse/SOLR-17855
After migration to OTEL, dropwizard metrics are not used anymore for metrics collection but there were still a few references to it in solr-core. This removes those dropwizard instruments so we can get rid of the dependency from core but it is still needed in test-framework where we embed zookeeper.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17855: Remove Dropwizard dependency from core [solr]
Posted by "dsmiley (via GitHub)" <gi...@apache.org>.
dsmiley commented on code in PR #4404:
URL: https://github.com/apache/solr/pull/4404#discussion_r3221411251
##########
changelog/unreleased/SOLR-17855-dropwizard-removal.yml:
##########
@@ -0,0 +1,9 @@
+title: Remove Dropwizard Metrics as a direct Solr dependency. The `OVERSEERSTATUS` response no longer includes per-operation timing metrics or queue stats; success/error counts are preserved.
Review Comment:
We can also advise that tracing is a substitute for per-operation metrics.
##########
solr/benchmark/src/java/org/apache/solr/bench/SolrBenchState.java:
##########
@@ -598,4 +589,10 @@ public static Path getFile(String name) {
+ " CWD="
+ Path.of("").toAbsolutePath());
}
+
+ private static void logIndexingRate(long docCount, long startNanos) {
+ long elapsedMs = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNanos);
Review Comment:
as we're logging at docs per SECOND, why convert to milliseconds at an intermediate step? It's okay if we round to a whole number... docs/sec should be rather high anyway. It's also okay if you want to add a fraction.
##########
solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-10.adoc:
##########
@@ -323,6 +323,10 @@ Users who consume Solr metrics via OTLP and rely on the 10.0 underscore-format n
The metric `solr_core_indexsearcher_open_warmup_time` has been removed as it duplicated `solr_core_indexsearcher_warmup_time`.
Update your dashboards to use `solr_core_indexsearcher_warmup_time` instead.
+==== Overseer Status Metrics Removed
+
+The `OVERSEERSTATUS` Collection API response no longer includes per-operation timing metrics but per-operation `requests` and `errors` counts still exist.
Review Comment:
mention that OTEL tracing can be used to get similar information indirectly
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17855: Remove Dropwizard dependency from core [solr]
Posted by "dsmiley (via GitHub)" <gi...@apache.org>.
dsmiley commented on code in PR #4404:
URL: https://github.com/apache/solr/pull/4404#discussion_r3206284787
##########
solr/benchmark/src/java/org/apache/solr/bench/SolrBenchState.java:
##########
@@ -406,10 +407,12 @@ private void indexParallel(String collection, Docs docs, int docCount)
new SolrNamedThreadFactory("SolrJMH Indexer Progress"));
scheduledExecutor.scheduleAtFixedRate(
() -> {
- if (meter.getCount() == docCount) {
+ long count = meterCount.get();
+ if (count == docCount) {
scheduledExecutor.shutdown();
} else {
- log(meter.getCount() + " docs at " + meter.getMeanRate() + " doc/s");
+ double rate = count / ((System.nanoTime() - meterStartNanos) / 1e9);
Review Comment:
I'd prefer to see something that requires less trust in the time math as a code reviewer... like some JDK API calls to produce a readable equivalent.
##########
solr/core/src/java/org/apache/solr/cloud/ZkDistributedQueue.java:
##########
Review Comment:
if we wanted to bring back such timings, I'd rather it be done with annotations similar to tracing `@WithSpan`. Alas, OTEL has no metric equivalent, which would be for something more light-weight that isn't span-worthy. I think talking to ZK is span-worthy as it's another process/system, albeit it's so fast that someone would typically prefer to disable such. Ideally Spans would have levels like logging but they don't; people have [proposed it](https://github.com/open-telemetry/opentelemetry-specification/issues/3205). I did see [this](https://github.com/open-telemetry/opentelemetry-specification/pull/3877) interesting development, which is somewhat related as it allows disabling spans for an entire "scope".
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17855: Remove Dropwizard dependency from core [solr]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #4404:
URL: https://github.com/apache/solr/pull/4404#issuecomment-4406653094
@mlbiscoc I think we may be able to elminate JettySolrRunnerWithMetrics as well... I poked around and it appears that it is no longer used in testing, it exists for two classes, but isn't actively used in the asserts, it just sits there...
I played around a bit and got this patch file:
[remove_jettymetricstestframework.patch](https://github.com/user-attachments/files/27521296/remove_jettymetricstestframework.patch). This could also be in another PR... Maybe this is a breaking chnage to our test-framework? I think though, it's minimal if it is, and in a perfect world would have been part of our Solr 10 Test Framework changes anyway.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17855: Remove Dropwizard dependency from core [solr]
Posted by "dsmiley (via GitHub)" <gi...@apache.org>.
dsmiley commented on PR #4404:
URL: https://github.com/apache/solr/pull/4404#issuecomment-4446843760
If CI passes on this matter; it's fine.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17855: Remove Dropwizard dependency from core [solr]
Posted by "mlbiscoc (via GitHub)" <gi...@apache.org>.
mlbiscoc commented on PR #4404:
URL: https://github.com/apache/solr/pull/4404#issuecomment-4445139458
My lockfile changes here came from deleting the lockfiles then re-running `gradlew resolveAndLockAll --write-locks` but it unintentionally made additional lockfiles changes on some of the SolrJ modules that existed on main. All checks look to pass on CI though. Is it still ok to commit this as is or do I need to fix this to generate the lockfiles without `delete + writelocks`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17855: Remove Dropwizard dependency from core [solr]
Posted by "mlbiscoc (via GitHub)" <gi...@apache.org>.
mlbiscoc merged PR #4404:
URL: https://github.com/apache/solr/pull/4404
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17855: Remove Dropwizard dependency from core [solr]
Posted by "mlbiscoc (via GitHub)" <gi...@apache.org>.
mlbiscoc commented on PR #4404:
URL: https://github.com/apache/solr/pull/4404#issuecomment-4423404434
> @mlbiscoc I think we may be able to elminate JettySolrRunnerWithMetrics as well... I poked around and it appears that it is no longer used in testing, it exists for two classes, but isn't actively used in the asserts, it just sits there...
>
> I played around a bit and got this patch file: [remove_jettymetricstestframework.patch](https://github.com/user-attachments/files/27521296/remove_jettymetricstestframework.patch). This could also be in another PR... Maybe this is a breaking chnage to our test-framework? I think though, it's minimal if it is, and in a perfect world would have been part of our Solr 10 Test Framework changes anyway.
I took a look and applied it to this PR. I think it's worth adding. The jetty metrics were essentially a no-op in 10 at this point anyways.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org