Solr
  1. Solr
  2. SOLR-3459

I started up in SolrCloud mode with 2 collections, but the cluster visualization page only displayed the first collection.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: 4.0-ALPHA
    • Component/s: SolrCloud, web gui
    • Labels:
      None
    1. SOLR-3459.patch
      3 kB
      Stefan Matheis (steffkes)
    2. screen2.png
      81 kB
      Mark Miller
    3. screen1.png
      61 kB
      Mark Miller

      Issue Links

        Activity

        Hide
        Mark Miller added a comment -

        Give me a bit and I'll try and offer a simple cmd to get two collections up.

        Show
        Mark Miller added a comment - Give me a bit and I'll try and offer a simple cmd to get two collections up.
        Hide
        Stefan Matheis (steffkes) added a comment -

        Mark, perhaps that's another bug, but perhaps this command demonstrates what you wanted to show?

        java -DzkRun -Dcollection.configName=myconf -Dbootstrap_confdir=./solr/conf -Dsolr.solr.home=multicore -jar start.jar

        this results in the following clusterstate.json:

        {
          "core1":{"shard1":{"debian2:8983_solr_core1":{
                "shard":"shard1",
                "leader":"true",
                "state":"active",
                "core":"core1",
                "collection":"core1",
                "node_name":"debian2:8983_solr",
                "base_url":"http://debian2:8983/solr"}}},
          "core0":{"shard1":{"debian2:8983_solr_core0":{
                "shard":"shard1",
                "leader":"true",
                "state":"active",
                "core":"core0",
                "collection":"core0",
                "node_name":"debian2:8983_solr",
                "base_url":"http://debian2:8983/solr"}}}}

        but only core0 is visible for the Graph-Views.

        If so, how would we like to display this? Otherwise, ignore this comment ;>

        Show
        Stefan Matheis (steffkes) added a comment - Mark, perhaps that's another bug, but perhaps this command demonstrates what you wanted to show? java -DzkRun -Dcollection.configName=myconf -Dbootstrap_confdir=./solr/conf -Dsolr.solr.home=multicore -jar start.jar this results in the following clusterstate.json: { "core1" :{ "shard1" :{ "debian2:8983_solr_core1" :{ "shard" : "shard1" , "leader" : " true " , "state" : "active" , "core" : "core1" , "collection" : "core1" , "node_name" : "debian2:8983_solr" , "base_url" : "http: //debian2:8983/solr" }}}, "core0" :{ "shard1" :{ "debian2:8983_solr_core0" :{ "shard" : "shard1" , "leader" : " true " , "state" : "active" , "core" : "core0" , "collection" : "core0" , "node_name" : "debian2:8983_solr" , "base_url" : "http: //debian2:8983/solr" }}}} but only core0 is visible for the Graph-Views. If so, how would we like to display this? Otherwise, ignore this comment ;>
        Hide
        Mark Miller added a comment -

        Yeah, that is it exactly. It would be nice if the view for each collection was simply stacked on top of each other - that is, the first would be as it is now, and the next below it and so on. Then you can just scroll down and see the view for each collection?

        Show
        Mark Miller added a comment - Yeah, that is it exactly. It would be nice if the view for each collection was simply stacked on top of each other - that is, the first would be as it is now, and the next below it and so on. Then you can just scroll down and see the view for each collection?
        Hide
        Stefan Matheis (steffkes) added a comment -

        i'm not sure, that's the reason why i'm asking. While thinking about this ... perhaps it's a bit more like this:

        core0 \
               - shard1 - debian2
        core1 /

        Because it's running the same shard on the same machine. If we have core0 on debian2 and core1 on debian3, then like this:

        core0 - shard1 - debian2
        
        core1 - shard1 - debian3

        (regardless if that configuration would make sense or not, just for demonstration)

        in either case, that would mean, that (at least) for the radial view, we could have a graph with multiple root-nodes. don't know why i've included that strict handling for one collection :/

        Show
        Stefan Matheis (steffkes) added a comment - i'm not sure, that's the reason why i'm asking. While thinking about this ... perhaps it's a bit more like this: core0 \ - shard1 - debian2 core1 / Because it's running the same shard on the same machine. If we have core0 on debian2 and core1 on debian3, then like this: core0 - shard1 - debian2 core1 - shard1 - debian3 (regardless if that configuration would make sense or not, just for demonstration) in either case, that would mean, that (at least) for the radial view, we could have a graph with multiple root-nodes. don't know why i've included that strict handling for one collection :/
        Hide
        Mark Miller added a comment -

        shard1 can be anything though - its just a shard name by default. So just as often, there would be no overlap in shard name for the different collections. I think logically they should be presented as separate trees.

        Show
        Mark Miller added a comment - shard1 can be anything though - its just a shard name by default. So just as often, there would be no overlap in shard name for the different collections. I think logically they should be presented as separate trees.
        Hide
        Stefan Matheis (steffkes) added a comment -

        Yepp, of course .. just an idea I'll try to bring up an patch

        Show
        Stefan Matheis (steffkes) added a comment - Yepp, of course .. just an idea I'll try to bring up an patch
        Hide
        Stefan Matheis (steffkes) added a comment -

        First Version, should at least display all available data.

        Mark would you mind to provide a Screenshot of both Graph-Views and your clusterstate.json?

        Show
        Stefan Matheis (steffkes) added a comment - First Version, should at least display all available data. Mark would you mind to provide a Screenshot of both Graph-Views and your clusterstate.json?
        Hide
        Mark Miller added a comment -

        I just tried the patch using cloud-dev/solrcloud-multi-start.sh...

        Screens attached and cluster.json:

        {
          "core1":{
            "shard1":{
              "halfmetal:8983_solr_core1":{
                "shard":"shard1",
                "leader":"true",
                "state":"active",
                "core":"core1",
                "collection":"core1",
                "node_name":"halfmetal:8983_solr",
                "base_url":"http://halfmetal:8983/solr"},
              "halfmetal:7575_solr_core1":{
                "shard":"shard1",
                "state":"active",
                "core":"core1",
                "collection":"core1",
                "node_name":"halfmetal:7575_solr",
                "base_url":"http://halfmetal:7575/solr"},
              "halfmetal:7574_solr_core1":{
                "shard":"shard1",
                "state":"active",
                "core":"core1",
                "collection":"core1",
                "node_name":"halfmetal:7574_solr",
                "base_url":"http://halfmetal:7574/solr"}},
            "shard2":{
              "halfmetal:7578_solr_core1":{
                "shard":"shard2",
                "leader":"true",
                "state":"active",
                "core":"core1",
                "collection":"core1",
                "node_name":"halfmetal:7578_solr",
                "base_url":"http://halfmetal:7578/solr"},
              "halfmetal:7577_solr_core1":{
                "shard":"shard2",
                "state":"active",
                "core":"core1",
                "collection":"core1",
                "node_name":"halfmetal:7577_solr",
                "base_url":"http://halfmetal:7577/solr"},
              "halfmetal:7576_solr_core1":{
                "shard":"shard2",
                "state":"active",
                "core":"core1",
                "collection":"core1",
                "node_name":"halfmetal:7576_solr",
                "base_url":"http://halfmetal:7576/solr"}}},
          "core0":{
            "shard1":{
              "halfmetal:8983_solr_core0":{
                "shard":"shard1",
                "leader":"true",
                "state":"active",
                "core":"core0",
                "collection":"core0",
                "node_name":"halfmetal:8983_solr",
                "base_url":"http://halfmetal:8983/solr"},
              "halfmetal:7578_solr_core0":{
                "shard":"shard1",
                "state":"active",
                "core":"core0",
                "collection":"core0",
                "node_name":"halfmetal:7578_solr",
                "base_url":"http://halfmetal:7578/solr"},
              "halfmetal:7575_solr_core0":{
                "shard":"shard1",
                "state":"active",
                "core":"core0",
                "collection":"core0",
                "node_name":"halfmetal:7575_solr",
                "base_url":"http://halfmetal:7575/solr"}},
            "shard2":{
              "halfmetal:7576_solr_core0":{
                "shard":"shard2",
                "state":"active",
                "core":"core0",
                "collection":"core0",
                "node_name":"halfmetal:7576_solr",
                "base_url":"http://halfmetal:7576/solr"},
              "halfmetal:7574_solr_core0":{
                "shard":"shard2",
                "state":"active",
                "core":"core0",
                "collection":"core0",
                "node_name":"halfmetal:7574_solr",
                "base_url":"http://halfmetal:7574/solr"},
              "halfmetal:7577_solr_core0":{
                "shard":"shard2",
                "leader":"true",
                "state":"active",
                "core":"core0",
                "collection":"core0",
                "node_name":"halfmetal:7577_solr",
                "base_url":"http://halfmetal:7577/solr"}}}}
        
        Show
        Mark Miller added a comment - I just tried the patch using cloud-dev/solrcloud-multi-start.sh... Screens attached and cluster.json: { "core1":{ "shard1":{ "halfmetal:8983_solr_core1":{ "shard":"shard1", "leader":"true", "state":"active", "core":"core1", "collection":"core1", "node_name":"halfmetal:8983_solr", "base_url":"http://halfmetal:8983/solr"}, "halfmetal:7575_solr_core1":{ "shard":"shard1", "state":"active", "core":"core1", "collection":"core1", "node_name":"halfmetal:7575_solr", "base_url":"http://halfmetal:7575/solr"}, "halfmetal:7574_solr_core1":{ "shard":"shard1", "state":"active", "core":"core1", "collection":"core1", "node_name":"halfmetal:7574_solr", "base_url":"http://halfmetal:7574/solr"}}, "shard2":{ "halfmetal:7578_solr_core1":{ "shard":"shard2", "leader":"true", "state":"active", "core":"core1", "collection":"core1", "node_name":"halfmetal:7578_solr", "base_url":"http://halfmetal:7578/solr"}, "halfmetal:7577_solr_core1":{ "shard":"shard2", "state":"active", "core":"core1", "collection":"core1", "node_name":"halfmetal:7577_solr", "base_url":"http://halfmetal:7577/solr"}, "halfmetal:7576_solr_core1":{ "shard":"shard2", "state":"active", "core":"core1", "collection":"core1", "node_name":"halfmetal:7576_solr", "base_url":"http://halfmetal:7576/solr"}}}, "core0":{ "shard1":{ "halfmetal:8983_solr_core0":{ "shard":"shard1", "leader":"true", "state":"active", "core":"core0", "collection":"core0", "node_name":"halfmetal:8983_solr", "base_url":"http://halfmetal:8983/solr"}, "halfmetal:7578_solr_core0":{ "shard":"shard1", "state":"active", "core":"core0", "collection":"core0", "node_name":"halfmetal:7578_solr", "base_url":"http://halfmetal:7578/solr"}, "halfmetal:7575_solr_core0":{ "shard":"shard1", "state":"active", "core":"core0", "collection":"core0", "node_name":"halfmetal:7575_solr", "base_url":"http://halfmetal:7575/solr"}}, "shard2":{ "halfmetal:7576_solr_core0":{ "shard":"shard2", "state":"active", "core":"core0", "collection":"core0", "node_name":"halfmetal:7576_solr", "base_url":"http://halfmetal:7576/solr"}, "halfmetal:7574_solr_core0":{ "shard":"shard2", "state":"active", "core":"core0", "collection":"core0", "node_name":"halfmetal:7574_solr", "base_url":"http://halfmetal:7574/solr"}, "halfmetal:7577_solr_core0":{ "shard":"shard2", "leader":"true", "state":"active", "core":"core0", "collection":"core0", "node_name":"halfmetal:7577_solr", "base_url":"http://halfmetal:7577/solr"}}}}
        Hide
        Mark Miller added a comment -

        Thanks a lot Stefan - looking good!

        Show
        Mark Miller added a comment - Thanks a lot Stefan - looking good!
        Hide
        Stefan Matheis (steffkes) added a comment -

        Committed in r1340933

        Show
        Stefan Matheis (steffkes) added a comment - Committed in r1340933

          People

          • Assignee:
            Stefan Matheis (steffkes)
            Reporter:
            Mark Miller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development