[Proto] java.lang.IllegalStateException: Some required fields are missing
See original GitHub issueDescribe the bug parse message metadata throw Exception To Reproduce Steps to reproduce the behavior:
- start up a standalone pulsar, the version is bigger than 2.10.0
- change broker config transactionCoordinatorEnabled=true managedLedgerMaxEntriesPerLedger=3 managedLedgerMinLedgerRolloverTimeMinutes=1
- config namespace ttl ./pulsar-admin namespaces set-message-ttl -ttl 10 public/default
-
PulsarClient pulsarClient = PulsarClient.builder().enableTransaction(true).serviceUrl("pulsar://127.0.0.1:6650").build(); int sendTopicsCount = 200; String topicName = "test55"; List<Producer<String>> producers = new ArrayList<>(sendTopicsCount); for (int i = 0; i < sendTopicsCount; i++) { producers.add(pulsarClient.newProducer(Schema.STRING).sendTimeout(0, TimeUnit.SECONDS).topic(i + topicName).create()); Consumer<String> consumer = pulsarClient.newConsumer(Schema.STRING).subscriptionName("test").topic(i + topicName).subscribe(); consumer.closeAsync(); } for (int j = 0; j < 10000; j ++) { for (int i = 0; i < sendTopicsCount; i++) { Transaction transaction = pulsarClient.newTransaction() .withTransactionTimeout(10, TimeUnit.SECONDS).build().get(); System.out.println("send one transaction messageId" + producers.get(i) .newMessage(transaction).value(i + topicName).send() + " topic name : " + i); transaction.commit(); Thread.sleep(10); } }```
Execute the above code multiple times
Execute ./pulsar-admin namespaces unload public/default
multiple times during execute the above code
4. See error
Expected behavior
can’t throw exception
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
Additional context Not a stable reproduction, requires multiple trials
Issue Analytics
- State:
- Created 2 years ago
- Comments:38 (37 by maintainers)
Top Results From Across the Web
java.lang.IllegalArgumentException: Some fields are missing ...
I had a quick look at the camel bindy component tests and I could not find one that combines @FixedLengthRecord(header,footer ) with @Link....
Read more >Message missing required fields exception when parsing a ...
I have a question regarding required string properties and default values. Consider the following message definition. message StringTestProto {
Read more >Missing field id support in parquet metadata - Apache
Field id is essential for some serialization framework such as protobuf, and they are used to keep schema forward/backward compatibility ...
Read more >java.lang.IllegalStateException: Project type with key ...
1, during snapshot deployment, the following error appears: ? java.util.concurrent.ExecutionException: com.botronsoft.jira.
Read more >Internationalization service errors - IBM
Certain conditions might cause the internationalization service not to start, to issue java.lang.IllegalStateException exceptions while an ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am not sure the problem in 2.0.48.Final. So I will test again. change netty version to 4.1.68.Final and don’t change the netty-tcnative version
@congbobo184 Thank you. Based on this experiment we cannot determine the issue, but since disabling Netty Recycler has an impact, there’s a possibility that recycling instances is causing issues in a way or another.
The next experiment could be to leave the Netty Recycler setting unchanged (enabled) and instead comment out the line
recyclerHandle.recycle(this);
in OpReadEntry: https://github.com/apache/pulsar/blob/9032a9afc15e029d8f205761b5e104f44f9c4be0/man[…]c/main/java/org/apache/bookkeeper/mledger/impl/OpReadEntry.javaThat will disable recycling of OpReadEntry instances. If that makes the problem go away, it’s again more information about the possible problem.
@congbobo184 Would you be able to continue with this experiment?