tuteng opened a new issue #8174:
URL: https://github.com/apache/pulsar/issues/8174


   **Describe the bug**
   A clear and concise description of what the bug is.
   
   ```
   pulsar-admin topics create-partitioned-topic
   pulsar-admin topics peek-messages -s sub topic-name-partitioned-0
   ```
   
   Throw exception:
   
   ```
   Peek messages on a partitioned topic is not allowed
   ```
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Go to '...'
   2. Click on '....'
   3. Scroll down to '....'
   4. See error
   
   ```
   pulsar-admin topics create-partitioned-topic
   pulsar-admin topics peek-messages -s sub topic-name-partitioned-0
   ```
   
   Throw exception:
   
   ```
   Peek messages on a partitioned topic is not allowed
   ```
   
   **Expected behavior**
   
   Support peek message for partitioned topic
   Remove this check 
https://github.com/apache/pulsar/blob/983266d480f77543a29a74ac1970280abd9f804b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java#L2091
   
   **Screenshots**
   If applicable, add screenshots to help explain your problem.
   
   **Desktop (please complete the following information):**
    - OS: [e.g. iOS]
   
   **Additional context**
   Add any other context about the problem here.
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to