Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-8930

I'm having problems with the tag ranges.it can't move data to shard server with tag.

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.3.0
    • Sharding
    • None

    Description

      — Sharding Status —
      sharding version:

      { "_id" : 1, "version" : 3 }

      shards:

      { "_id" : "shard0000", "host" : "172.16.9.1:27017", "tags" : [ "tag0" ] } { "_id" : "shard0001", "host" : "172.16.9.2:27017", "tags" : [ "tag1" ] } { "_id" : "shard0002", "host" : "172.16.9.3:27017", "tags" : [ "tag2" ] }

      databases:

      { "_id" : "admin", "partitioned" : false, "primary" : "config" } { "_id" : "bi", "partitioned" : true, "primary" : "shard0000" }

      bi.products chunks:
      shard0000 2
      shard0001 1
      { "prod_id" :

      { $minKey : 1 }

      } -->>

      { "prod_id" : NumberLong(7302933) }

      on : shard0000 Timestamp(2000, 1)

      { "prod_id" : NumberLong(7302933) }

      -->>

      { "prod_id" : NumberLong(7309926) }

      on : shard0000 Timestamp(1000, 3)

      { "prod_id" : NumberLong(7309926) }

      -->> { "prod_id" :

      { $maxKey : 1 }

      } on : shard0001 Timestamp(2000, 0)
      tag: tag2

      { "prod_id" : 7300000 }

      -->>

      { "prod_id" : 8300000 }

      tag: null

      { "tag" : "tag0" }

      -->> "tag0"
      tag: null

      { "tag" : "tag1" }

      -->> "tag1"
      tag: null

      { "tag" : "tag2" }

      -->> "tag2"

      db.products.find(null,

      {prod_id:1,tag:1}

      ).sort(

      {prod_id:-1}

      )

      { "_id" : ObjectId("513d5651be84f5a1b352328a"), "prod_id" : NumberLong(7309925), "tag" : "tag2" } { "_id" : ObjectId("513d5636be84f5a1b3521e5b"), "prod_id" : NumberLong(7309924), "tag" : "tag1" } { "_id" : ObjectId("513d562abe84f5a1b352179a"), "prod_id" : NumberLong(7309923), "tag" : "tag0" } { "_id" : ObjectId("513d5646be84f5a1b3522aa4"), "prod_id" : NumberLong(7309922), "tag" : "tag2" } { "_id" : ObjectId("513d565bbe84f5a1b3523b1f"), "prod_id" : NumberLong(7309921), "tag" : "tag1" } { "_id" : ObjectId("513d562bbe84f5a1b3521866"), "prod_id" : NumberLong(7309920), "tag" : "tag0" } { "_id" : ObjectId("513d563bbe84f5a1b3522229"), "prod_id" : NumberLong(7309919), "tag" : "tag2" } { "_id" : ObjectId("513d562cbe84f5a1b35218fc"), "prod_id" : NumberLong(7309918), "tag" : "tag1" } { "_id" : ObjectId("513d5635be84f5a1b3521dc7"), "prod_id" : NumberLong(7309917), "tag" : "tag0" } { "_id" : ObjectId("513d5657be84f5a1b3523800"), "prod_id" : NumberLong(7309916), "tag" : "tag2" } { "_id" : ObjectId("513d5639be84f5a1b35220f6"), "prod_id" : NumberLong(7309915), "tag" : "tag1" } { "_id" : ObjectId("513d5644be84f5a1b352297d"), "prod_id" : NumberLong(7309914), "tag" : "tag0" } { "_id" : ObjectId("513d5659be84f5a1b3523943"), "prod_id" : NumberLong(7309913), "tag" : "tag2" } { "_id" : ObjectId("513d5630be84f5a1b3521bf6"), "prod_id" : NumberLong(7309912), "tag" : "tag1" } { "_id" : ObjectId("513d5632be84f5a1b3521c92"), "prod_id" : NumberLong(7309911), "tag" : "tag0" } { "_id" : ObjectId("513d565abe84f5a1b3523a7c"), "prod_id" : NumberLong(7309910), "tag" : "tag2" } { "_id" : ObjectId("513d5639be84f5a1b35220f7"), "prod_id" : NumberLong(7309909), "tag" : "tag1" } { "_id" : ObjectId("513d564bbe84f5a1b3522e6d"), "prod_id" : NumberLong(7309908), "tag" : "tag0" } { "_id" : ObjectId("513d562abe84f5a1b352179b"), "prod_id" : NumberLong(7309907), "tag" : "tag2" } { "_id" : ObjectId("513d563abe84f5a1b3522226"), "prod_id" : NumberLong(7309906), "tag" : "tag1" }

      Attachments

        Activity

          People

            Unassigned Unassigned
            zero_li123456 zero_li123456
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: