We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Producer sends some messages with new topic(not registed at broker).
The producer processes the partitions changing incorrectly if the broker creates this topic more than one partition.
See the code(https://github.com/adyliu/jafka/blob/v1.0/src/main/java/com/sohu/jafka/producer/ZKBrokerPartitionInfo.java):
class BrokerTopicsListener implements IZkChildListener { private Map<String, SortedSet<Partition>> originalBrokerTopicsParitions; private Map<Integer, Broker> originBrokerIds; public BrokerTopicsListener(Map<String, SortedSet<Partition>> originalBrokerTopicsParitions, Map<Integer, Broker> originBrokerIds) { super(); this.originalBrokerTopicsParitions = originalBrokerTopicsParitions; this.originBrokerIds = originBrokerIds;
We need a new map before the producer creating a default partition for new topic.
public BrokerTopicsListener(Map<String, SortedSet<Partition>> originalBrokerTopicsParitions, Map<Integer, Broker> originBrokerIds) { super(); this.originalBrokerTopicsParitions = new HashMap<String, SortedSet<Partition>>( originalBrokerTopicsParitions); this.originBrokerIds = new HashMap<Integer, Broker>(originBrokerIds);
The text was updated successfully, but these errors were encountered:
Fixed at 1.1: 4cf4b0d
Sorry, something went wrong.
No branches or pull requests
Producer sends some messages with new topic(not registed at broker).
The producer processes the partitions changing incorrectly if the broker creates this topic more than one partition.
See the code(https://github.com/adyliu/jafka/blob/v1.0/src/main/java/com/sohu/jafka/producer/ZKBrokerPartitionInfo.java):
We need a new map before the producer creating a default partition for new topic.
The text was updated successfully, but these errors were encountered: