Skip to content

[fix] [broker] Topic close failure leaves subscription in a permanent… - #73

Closed
poorbarcode wants to merge 11 commits into
masterfrom
fix/topic_not_work_after_close_fail
Closed

poorbarcode wants to merge 11 commits into
masterfrom
fix/topic_not_work_after_close_fail

Conversation

@poorbarcode

Copy link
Copy Markdown
Owner

/pulsarbot rerun-failure-checks

Demogorgon314 and others added 11 commits March 7, 2023 16:21
…nal (apache#19538)

PIP-192: apache#16691

### Motivation

Currently, the unload and transfer admin API still uses the old logic when enabling the `ExtensibleLoadManager`,
we need to publish the message to `ServiceUnitStateChannel`, and wait for its response.

### Modifications

This PR added a `UnloadManager ` to handle the duplicate unload request and return a `CompletableFuture` to the caller, so we can know when the unload operation is finished.

The unload and transfer admin API also been fixed, now we can support do unload when using `ExtensibleLoadManager`.
… using AUTO_CONSUME consumer to subscribe topic (apache#17449)

 Fixes apache#17354 
 PIP apache#19113

### Motivation

*Fixed the failure to use schema to create consumer after using AUTO-CONSUME consumer to subscribe an empty topic, and Broker returned the error message as  `IncompatibleSchemaException("Topic does not have schema to check")`.*

### Modifications

*In PersistentTopic::addSchemaIfIdleOrCheckCompatible, when there is an active consumer, but the consumer is using the AUTO_CONSUME schema to subscribe to the topic. Continuing to create a schema consumer to subscribe to the topic will fail.*

-  When `numActiveConsumers != 0`, and check the schema of the currently existing consumers is AUTO_CONSUME schema.
@poorbarcode
poorbarcode force-pushed the fix/topic_not_work_after_close_fail branch from 53a3f6a to 513f663 Compare March 7, 2023 15:25
@poorbarcode poorbarcode closed this Mar 9, 2023
@poorbarcode
poorbarcode deleted the fix/topic_not_work_after_close_fail branch March 9, 2023 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants