You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Andrzej Bialecki (Jira)" <ji...@apache.org> on 2021/01/07 16:16:00 UTC

[jira] [Updated] (SOLR-15076) Inconsistent metric types in ReplicationHandler

     [ https://issues.apache.org/jira/browse/SOLR-15076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrzej Bialecki updated SOLR-15076:
------------------------------------
    Description: 
As pointed out by [~dsmiley] in SOLR-14924 there are cases when ReplicaHandler returns unexpected type of a metric (string instead of a number):
{quote}
There are test failures in TestReplicationHandler introduced by this change (I think). See https://ci-builds.apache.org/job/Lucene/job/Lucene-Solr-Tests-8.x/1255/

java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
 at __randomizedtesting.SeedInfo.seed([754427253A1E4E95:F190450AC46671D]:0)
 at org.apache.solr.handler.TestReplicationHandler.doTestDetails(TestReplicationHandler.java:361)
The test could be made to convert to a string. But it suggests an inconsistency that ought to be fixed – apparently ReplicationHandler sometimes returns its details using all strings and othertimes with the typed variants – and that's bad.
{quote}

Reproducing seed from David:
{quote}
gradlew :solr:core:test --tests "org.apache.solr.handler.TestReplicationHandler.doTestDetails" -Ptests.jvms=6 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=5135EC61BF449203 -Ptests.file.encoding=ISO-8859-1
{quote}

  was:
As pointed out by [~dsmiley] in SOLR-14924 there are cases when ReplicaHandler returns unexpected type of a metric (string instead of a number):
{quote}
There are test failures in TestReplicationHandler introduced by this change (I think). See https://ci-builds.apache.org/job/Lucene/job/Lucene-Solr-Tests-8.x/1255/

java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
 at __randomizedtesting.SeedInfo.seed([754427253A1E4E95:F190450AC46671D]:0)
 at org.apache.solr.handler.TestReplicationHandler.doTestDetails(TestReplicationHandler.java:361)
The test could be made to convert to a string. But it suggests an inconsistency that ought to be fixed – apparently ReplicationHandler sometimes returns its details using all strings and othertimes with the typed variants – and that's bad.
{quote}


> Inconsistent metric types in ReplicationHandler
> -----------------------------------------------
>
>                 Key: SOLR-15076
>                 URL: https://issues.apache.org/jira/browse/SOLR-15076
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Andrzej Bialecki
>            Assignee: Andrzej Bialecki
>            Priority: Major
>
> As pointed out by [~dsmiley] in SOLR-14924 there are cases when ReplicaHandler returns unexpected type of a metric (string instead of a number):
> {quote}
> There are test failures in TestReplicationHandler introduced by this change (I think). See https://ci-builds.apache.org/job/Lucene/job/Lucene-Solr-Tests-8.x/1255/
> java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
>  at __randomizedtesting.SeedInfo.seed([754427253A1E4E95:F190450AC46671D]:0)
>  at org.apache.solr.handler.TestReplicationHandler.doTestDetails(TestReplicationHandler.java:361)
> The test could be made to convert to a string. But it suggests an inconsistency that ought to be fixed – apparently ReplicationHandler sometimes returns its details using all strings and othertimes with the typed variants – and that's bad.
> {quote}
> Reproducing seed from David:
> {quote}
> gradlew :solr:core:test --tests "org.apache.solr.handler.TestReplicationHandler.doTestDetails" -Ptests.jvms=6 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=5135EC61BF449203 -Ptests.file.encoding=ISO-8859-1
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org