Skip to content

Conversation

@antimpatel
Copy link
Contributor

@antimpatel antimpatel commented Jan 22, 2020

Fixes #5905

Motivation

Pulsar supports terminate a non-partitioned-topic or a partition of a partitioned topic. If there has a partitioned topic with too many partitions, users need to get all partitions and terminate them one by one. We need to support terminate all partition of a partitioned topic.

Modifications

Added API to support terminate all partitioned topic in PersistenceTopicBase. and added test case for the same.

Verifying this change

added test case and verified.

@antimpatel
Copy link
Contributor Author

@zymap Please check the PR, against the mentioned issue.


@Test
public void testTerminatePartitionedTopic() {
String testLocalTopicName = "topic-not-found";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems most of the test content is duplicate with above testGetSubscriptions(), Could we refine this test case to focus on topic Terminate?

@jiazhai
Copy link
Member

jiazhai commented Jan 23, 2020

Thanks @antimpatel for the help. left a comments related to the test.

@sijie sijie added area/admin area/cli type/feature The PR added a new feature or issue requested a new feature labels Jan 23, 2020
@sijie sijie added this to the 2.6.0 milestone Jan 23, 2020
@codelipenghui
Copy link
Contributor

@antimpatel There are some CI tests failed, could you please merge the master branch? since there are flaky tests are fixed in master branch.

@codelipenghui
Copy link
Contributor

/pulsarbot run-failure-checks

@codelipenghui codelipenghui merged commit 5c7e535 into apache:master Jun 4, 2020
zeo1995 pushed a commit to zeo1995/pulsar that referenced this pull request Jun 5, 2020
…te-update

* 'website-update' of github.com:zeo1995/pulsar: (432 commits)
  Fixed ordering issue in KeyShared dispatcher when adding consumer (apache#7106)
  Fix Duplicated messages are sent to dead letter topic apache#6960 (apache#7021)
  [Issue 2793][Doc]--Update the TLS hostname verification for CPP and Python clients (apache#7162)
  [Doc]--set netty mex frame size (apache#7174)
  [Doc] Update for the maximum message size (apache#7171)
  Fixed KeyShared consumers getting stuck on delivery (apache#7105)
  [apache#6003][pulsar-functions] Possibility to add builtin Functions (apache#6895)
  [Issue 6921][pulsar-broker-common] Replaced "Paths.get(...).getParent()", because it's system dependent and uses '\' as path separator on Windows (apache#6992)
  Improve broker unit test CI (apache#7173)
  Fix typo in exception message (apache#7027)
  Support KeyValue Schema Use Null Key And Null Value (apache#7139)
  [Doc]--Update documents for support consumer priority level in failover mode (apache#7136)
  Add schema config to cpp and cgo docs. (apache#7137)
  [Doc]--Update for the maximum message size (apache#7160)
  [C++] Expose ZSTD and Snappy compression to C API (apache#7014)
  [pulsar-proxy] add proxyLogLevel into config file (apache#6948)
  Add multi-hosts example for bookkeeperMetadataServiceUri (apache#6998)
  support for termination of partitioned topic (apache#6126)
  Use pure-java Air-Compressor instead of JNI based libraries (apache#5390)
  [Issues 5709]remove the namespace checking (apache#5716)
  ...

# Conflicts:
#	site2/website/scripts/split-swagger-by-version.js
cdbartholomew pushed a commit to kafkaesque-io/pulsar that referenced this pull request Jul 24, 2020
Fixes apache#5905 

### Motivation
Pulsar supports terminate a non-partitioned-topic or a partition of a partitioned topic. If there has a partitioned topic with too many partitions, users need to get all partitions and terminate them one by one. We need to support terminate all partition of a partitioned topic.


### Modifications
Added API to support terminate all partitioned topic in PersistenceTopicBase. and added test case for the same.

### Verifying this change
added test case and verified.
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
Fixes apache#5905 

### Motivation
Pulsar supports terminate a non-partitioned-topic or a partition of a partitioned topic. If there has a partitioned topic with too many partitions, users need to get all partitions and terminate them one by one. We need to support terminate all partition of a partitioned topic.


### Modifications
Added API to support terminate all partitioned topic in PersistenceTopicBase. and added test case for the same.

### Verifying this change
added test case and verified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/admin area/cli type/feature The PR added a new feature or issue requested a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[pulsar-broker][REST API] Support terminate all partitions of a partitioned topic

4 participants