Can't serialize message of type "pulsar.proto.MessageMetadata" because it is missing required fields: (cannot determine missing fields for lite message)

Open
#225 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp, javascript, nodejs

Research direction

Start by reproducing the producer restart with Node.js 16, pulsar-client 1.6.2, and a Pulsar 2.7 cluster, then trace native serialization of pulsar.proto.MessageMetadata around the reported libprotobuf failure. Done means identifying why required fields are missing and confirming that producer restart no longer terminates with the fatal exception.

Written by the indexing model from the issue text.

Description

nodejs 16
sdk version:nodejs pulsar-client 1.6.2
cluster version 2.7

When I restart the producer, I get the following error:

2022-07-12 12:54:07.697 INFO [140305944786688] HTTPLookupService:295 | parsePartitionData = { LookupDataResult [brokerUrl_ = ] [brokerUrlTls_ = ] [partitions = 2] [authoritative = 0] [redirect = 0] proxyThroughServiceUrl = 0] }

[libprotobuf FATAL google/protobuf/message_lite.cc:327] CHECK failed: IsInitialized(): Can't serialize message of type "pulsar.proto.MessageMetadata" because it is missing required fields: (cannot determine missing fields for lite message)

terminate called after throwing an instance of 'google::protobuf::FatalException'

what(): CHECK failed: IsInitialized(): Can't serialize message of type "pulsar.proto.MessageMetadata" because it is missing required fields: (cannot determine missing fields for lite message)

Why is there such an error, is it a bug?

Dominant language
C++
Stars
164
Forks
99
Avg merge
5d 18h
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/pulsar-client-node

All issues in apache/pulsar-client-node

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.