Skip to content

Commit

Permalink
Merge branch 'main' into merlimat-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
BewareMyPower committed Mar 19, 2024
2 parents 995ba36 + 48be179 commit ceb2a63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pulsar/schema/schema_avro.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def decode_message(self, msg: _pulsar.Message):
writer_schema = self._get_writer_schema(topic, version)
return self._decode_bytes(msg.data(), writer_schema)
except Exception as e:
self._logger.error(f'Failed to get schema info of {topic} version {version}: {e}')
msg_id = msg.message_id()
self._logger.warn(f'Failed to decode {msg_id} with schema {topic} version {version}: {e}')
return self._decode_bytes(msg.data(), self._schema)

def _get_writer_schema(self, topic: str, version: int) -> 'dict':
Expand Down
5 changes: 5 additions & 0 deletions tests/test-conf/standalone-ssl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -310,3 +310,8 @@ maxMessageSize=1024000

# Disable consistent hashing to fix flaky `KeySharedConsumerTest#testMultiTopics`.
subscriptionKeySharedUseConsistentHashing=false

# It's true by default since 2.11. After https://github.com/apache/pulsar/pull/21445, we must configure
# brokerClientAuthenticationPlugin and brokerClientAuthenticationParameters correctly when enabling topic
# level policies. Otherwise, no topic could be loaded.
topicLevelPoliciesEnabled=false

0 comments on commit ceb2a63

Please sign in to comment.