Skip to content

Commit

Permalink
resolved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
heesung-sn committed Feb 18, 2024
1 parent ad1f59f commit 53a3ff4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/ClientConnection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1794,6 +1794,7 @@ void ClientConnection::handleTopicMigrated(const proto::CommandTopicMigrated& co
return;
}

Lock lock(mutex_);
if (commandTopicMigrated.resource_type() == proto::CommandTopicMigrated_ResourceType_Producer) {
auto it = producers_.find(resourceId);
if (it != producers_.end()) {
Expand Down
2 changes: 1 addition & 1 deletion lib/ProducerImpl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Future<Result, bool> ProducerImpl::connectionOpened(const ClientConnectionPtr& c
return promise.getFuture();
}

LOG_DEBUG("Creating producer" << topic() << "producerName: " << producerName_ << " on "
LOG_DEBUG("Creating producer for topic:" << topic() << ", producerName:" << producerName_ << " on "
<< cnx->cnxString());
ClientImplPtr client = client_.lock();
cnx->registerProducer(producerId_, shared_from_this());
Expand Down
2 changes: 1 addition & 1 deletion proto/PulsarApi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ message CommandReachedEndOfTopic {
}

message CommandTopicMigrated {
enum ResourceType {
enum ResourceType {
Producer = 0;
Consumer = 1;
}
Expand Down
4 changes: 3 additions & 1 deletion tests/extensibleLM/ExtensibleLoadManagerTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ TEST(ExtensibleLoadManagerTest, testPubSubWhileUnloading) {
return res == 204 || res == 409;
}));

Client client{"pulsar://localhost:6650"};
ClientConfiguration conf;
conf.setIOThreads(8);
Client client{"pulsar://localhost:6650", conf};
Producer producer;
ProducerConfiguration producerConfiguration;
Result producerResult = client.createProducer(topicName, producerConfiguration, producer);
Expand Down

0 comments on commit 53a3ff4

Please sign in to comment.