Admin APIを使用してタイプ「JSON」の Pulsar スキーマを更新しようとしています。
単一のスキーマ バージョンを持つ pulsar 名前空間 "lol" とトピック "sdf" を持っています トピック スキーマ バージョンのリスト
別の JSON スキーマを投稿してこのスキーマを更新しようとしましたが、500 エラーが発生しました。 Post リクエストとレスポンス
Pulsar ログファイルが空です。Pulsar スタック トレースには有益な情報はありません。
09:41:36.930 [BookKeeperClientWorker-OrderedExecutor-0-0] INFO org.eclipse.jetty.server.RequestLog - 127.0.0.1 - - [20/Jul/2021:09:41:36 +0300] "POST /admin/v2/schemas/public/lol/sdf/schema HTTP/1.1" 500 565 "-" "PostmanRuntime/7.26.8" 159
タイプ「AVRO」のスキーマを同じように更新してみると、すべて正常に動作し、スキーマのバージョンが上がります。
そのような奇妙な行動の原因を見つけるのを手伝ってくれる人はいますか?
リクエストボディはこちら
{"type": "JSON", "schema": "{ \"$id\": \"https://example.com/person.schema.json\", \"$schema\": \"https://json-schema.org/draft/2020-12/schema\", \"title\": \"Person\", \"type\": \"object\", \"properties\": { \"firstName\": { \"type\": \"string\", \"description\": \"The person's first name.\" }, \"lastName\": { \"type\": \"string\", \"description\": \"The person's last name.\" }, \"age\": { \"description\": \"Age in years which must be equal to or greater than zero.\", \"type\": \"integer\", \"minimum\": 0 } }}", "properties": {} }
これが現在のスキーマ定義「GET /admin/v2/schemas/public/lol/sdf/schema」です。
{
"version": 0,
"type": "JSON",
"timestamp": 0,
"data": "{ \"$id\": \"https://example.com/person.schema.json\", \"$schema\": \"https://json-schema.org/draft/2020-12/schema\", \"title\": \"Person\", \"type\": \"object\", \"properties\": { \"firstName\": { \"type\": \"string\", \"description\": \"The person's first name.\" }, \"surname\": { \"type\": \"string\", \"description\": \"The person's last name.\" }, \"age\": { \"description\": \"Age in years which must be equal to or greater than zero.\", \"type\": \"integer\", \"minimum\": 0 } }}",
"properties": {}