liudezhi2098 opened a new issue, #16654:
URL: https://github.com/apache/pulsar/issues/16654

   **Is your enhancement request related to a problem? Please describe.**
   
   When using SubscriptionType.Key_Shared to subscribe, and set the same 
consumerName, keyHashRanges is same.
   
   `sh pulsar-admin topics stats test`
   ```
    "consumers" : [ {
           "msgRateOut" : 5.352763137163173,
           "msgThroughputOut" : 419.0499834647143,
           "bytesOutCounter" : 23486,
           "msgOutCounter" : 300,
           "msgRateRedeliver" : 0.0,
           "messageAckRate" : 5.3527631921751535,
           "chunkedMessageRate" : 0.0,
           "consumerName" : "name_0",
           "availablePermits" : 700,
           "unackedMessages" : 0,
           "avgMessagesPerEntry" : 1,
           "blockedConsumerOnUnackedMsgs" : false,
           "readPositionWhenJoining" : "427:8212",
           "lastAckedTimestamp" : 1658146341907,
           "lastConsumedTimestamp" : 1658146341811,
           "keyHashRanges" : [ "[0, 8017609]", "[8017610, 32160092]", 
"[32160093, 54013878]", "[54013879, 65771746]", "[65771747, 70303226]", 
"[70303227, 78274749]", "[78274750, 85630846]", "[85630847, 96887118]", 
"[96887119, 111743344]", "[111743345, 136045388]", "[136045389, 198872275]", 
"[198872276, 221289093]", "[221289094, 276342279]", "[276342280, 284122461]", 
"[284122462, 302295203]", "[302295204, 303451425]", "[303451426, 326121001]", 
"[326121002, 329874522]", "[329874523, 345863643]", "[345863644, 354596023]", 
"[354596024, 380822007]", "[380822008, 401692582]", "[401692583, 407940259]", 
"[407940260, 414361771]", "[414361772, 485800432]", "[485800433, 507294379]", 
"[507294380, 525681252]", "[525681253, 537345334]", "[537345335, 552062710]", 
"[552062711, 563327321]", "[563327322, 620545726]", "[620545727, 627504710]", 
"[627504711, 629337880]", "[629337881, 634342313]", "[634342314, 657250393]", 
"[657250394, 677587061]", "[677587062, 741372801]", "[741372802, 741984286]", 
"[741
 984287, 770508934]", "[770508935, 790861188]", "[790861189, 815584954]", 
"[815584955, 837678975]", "[837678976, 899806347]", "[899806348, 906394323]", 
"[906394324, 908259168]", "[908259169, 946637275]", "[946637276, 947088895]", 
"[947088896, 953589542]", "[953589543, 970773632]", "[970773633, 972234177]", 
"[972234178, 975554127]", "[975554128, 1011228528]", "[1011228529, 
1024827757]", "[1024827758, 1025534254]", "[1025534255, 1061358351]", 
"[1061358352, 1061477135]", "[1061477136, 1094978162]", "[1094978163, 
1097471042]", "[1097471043, 1134090080]", "[1134090081, 1145098021]", 
"[1145098022, 1192679191]", "[1192679192, 1236735422]", "[1236735423, 
1272613583]", "[1272613584, 1273999674]", "[1273999675, 1277021682]", 
"[1277021683, 1284420756]", "[1284420757, 1289547192]", "[1289547193, 
1335350916]", "[1335350917, 1341972750]", "[1341972751, 1356034244]", 
"[1356034245, 1392306195]", "[1392306196, 1397977525]", "[1397977526, 
1405126832]", "[1405126833, 1405487243]", "[1405487244, 1413882
 387]", "[1413882388, 1415751809]", "[1415751810, 1445040721]", "[1445040722, 
1458104272]", "[1458104273, 1460074838]", "[1460074839, 1464531466]", 
"[1464531467, 1480489853]", "[1480489854, 1487319096]", "[1487319097, 
1506016261]", "[1506016262, 1541128725]", "[1541128726, 1574357095]", 
"[1574357096, 1577562493]", "[1577562494, 1594082190]", "[1594082191, 
1596912246]", "[1596912247, 1729596638]", "[1729596639, 1747402775]", 
"[1747402776, 1756404800]", "[1756404801, 1788549481]", "[1788549482, 
1843386875]", "[1843386876, 1894581884]", "[1894581885, 1900318704]", 
"[1900318705, 1952151861]", "[1952151862, 1969111108]", "[1969111109, 
2010196503]", "[2010196504, 2017514319]", "[2017514320, 2059216719]" ],
           "metadata" : { },
           "address" : "/127.0.0.1:52170",
           "connectedSince" : "2022-07-18T20:11:32.318053+08:00",
           "clientVersion" : "2.9.2"
         }, {
           "msgRateOut" : 0.0,
           "msgThroughputOut" : 0.0,
           "bytesOutCounter" : 5400,
           "msgOutCounter" : 100,
           "msgRateRedeliver" : 0.0,
           "messageAckRate" : 0.0,
           "chunkedMessageRate" : 0.0,
           "consumerName" : "name_0",
           "availablePermits" : 900,
           "unackedMessages" : 0,
           "avgMessagesPerEntry" : 1,
           "blockedConsumerOnUnackedMsgs" : false,
           "readPositionWhenJoining" : "427:8512",
           "lastAckedTimestamp" : 1658146382188,
           "lastConsumedTimestamp" : 1658146382148,
           "keyHashRanges" : [ "[0, 8017609]", "[8017610, 32160092]", 
"[32160093, 54013878]", "[54013879, 65771746]", "[65771747, 70303226]", 
"[70303227, 78274749]", "[78274750, 85630846]", "[85630847, 96887118]", 
"[96887119, 111743344]", "[111743345, 136045388]", "[136045389, 198872275]", 
"[198872276, 221289093]", "[221289094, 276342279]", "[276342280, 284122461]", 
"[284122462, 302295203]", "[302295204, 303451425]", "[303451426, 326121001]", 
"[326121002, 329874522]", "[329874523, 345863643]", "[345863644, 354596023]", 
"[354596024, 380822007]", "[380822008, 401692582]", "[401692583, 407940259]", 
"[407940260, 414361771]", "[414361772, 485800432]", "[485800433, 507294379]", 
"[507294380, 525681252]", "[525681253, 537345334]", "[537345335, 552062710]", 
"[552062711, 563327321]", "[563327322, 620545726]", "[620545727, 627504710]", 
"[627504711, 629337880]", "[629337881, 634342313]", "[634342314, 657250393]", 
"[657250394, 677587061]", "[677587062, 741372801]", "[741372802, 741984286]", 
"[741
 984287, 770508934]", "[770508935, 790861188]", "[790861189, 815584954]", 
"[815584955, 837678975]", "[837678976, 899806347]", "[899806348, 906394323]", 
"[906394324, 908259168]", "[908259169, 946637275]", "[946637276, 947088895]", 
"[947088896, 953589542]", "[953589543, 970773632]", "[970773633, 972234177]", 
"[972234178, 975554127]", "[975554128, 1011228528]", "[1011228529, 
1024827757]", "[1024827758, 1025534254]", "[1025534255, 1061358351]", 
"[1061358352, 1061477135]", "[1061477136, 1094978162]", "[1094978163, 
1097471042]", "[1097471043, 1134090080]", "[1134090081, 1145098021]", 
"[1145098022, 1192679191]", "[1192679192, 1236735422]", "[1236735423, 
1272613583]", "[1272613584, 1273999674]", "[1273999675, 1277021682]", 
"[1277021683, 1284420756]", "[1284420757, 1289547192]", "[1289547193, 
1335350916]", "[1335350917, 1341972750]", "[1341972751, 1356034244]", 
"[1356034245, 1392306195]", "[1392306196, 1397977525]", "[1397977526, 
1405126832]", "[1405126833, 1405487243]", "[1405487244, 1413882
 387]", "[1413882388, 1415751809]", "[1415751810, 1445040721]", "[1445040722, 
1458104272]", "[1458104273, 1460074838]", "[1460074839, 1464531466]", 
"[1464531467, 1480489853]", "[1480489854, 1487319096]", "[1487319097, 
1506016261]", "[1506016262, 1541128725]", "[1541128726, 1574357095]", 
"[1574357096, 1577562493]", "[1577562494, 1594082190]", "[1594082191, 
1596912246]", "[1596912247, 1729596638]", "[1729596639, 1747402775]", 
"[1747402776, 1756404800]", "[1756404801, 1788549481]", "[1788549482, 
1843386875]", "[1843386876, 1894581884]", "[1894581885, 1900318704]", 
"[1900318705, 1952151861]", "[1952151862, 1969111108]", "[1969111109, 
2010196503]", "[2010196504, 2017514319]", "[2017514320, 2059216719]" ],
           "metadata" : { },
           "address" : "/127.0.0.1:52193",
           "connectedSince" : "2022-07-18T20:12:21.853168+08:00",
           "clientVersion" : "2.9.2"
         } ]
   ```
   
   
   **Describe the solution you'd like**
   keyHashRanges should not same.
   
   
   **Additional context**
   pulsar version :  2.11.0
   pulsar client : 2.9.2
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to