RATATOSK
← リリース一覧

NATSv2.12.3

セキュリティ 4破壊的変更 6重大な修正 27機能・改善 13依存関係の更新 8その他の変更 11

NATSの通知を受け取る

週次メールは確認すべき変更がある週だけ、深刻度がcriticalのセキュリティアドバイザリは即時に届きます。

アップグレード前の確認事項

アップグレードガイド1
2.11.x を利用するユーザー向け 2.12 アップグレードガイド
リンク先ドキュメントからの項目2件
  • GOMEMLIMIT による GC 閾値の制御システムで利用可能なメモリ量、または Kubernetes ではメモリ予約量に応じて、GOMEMLIMIT を調整するとよい場合があると説明されています。
  • ダウングレード後のストリーム状態ファイル再構築v2.12 から v2.11 にダウングレードした後の最初の再起動時に、すべてのストリームメッセージブロックが再スキャンされます。そのため、CPU 使用量が増加し、再起動したノードが正常と報告するまでに時間がかかることがあります。データ損失は発生しません。
元のリリースノート
Refer to the [2.12 Upgrade Guide](https://docs.nats.io/release-notes/whats_new/whats_new_212) for backwards compatibility notes with 2.11.x.
github.com/nats-io/nats-server/releases/tag/v2.12.3

セキュリティ4medium1

WebSocket の圧縮爆弾によるメモリ消費の修正

medium

2026-02-23 リリース後にセキュリティアドバイザリGHSA-qrvq-68c2-7grwが公開

影響対象圧縮フレームを受信する WebSocket 接続

以前は、圧縮率の高いフレームを展開すると、最大ペイロードサイズを超えたとしてサーバーが拒否する前に非常に大きなバッファーが生成されることがあり、過剰なメモリ消費やサーバーの停止につながるおそれがありました。現在は、設定された最大ペイロードサイズ(未指定の場合はデフォルトの最大値)に達した時点で展開を停止し、ErrMaxPayload を返します。

原文を表示
- WebSocket connections will now correctly limit the buffer size during decompression (#7625, thanks to Pavel Kokout at Aisle Research)
github.com/nats-io/nats-server/releases/tag/v2.12.3
セキュリティアドバイザリ
This was fixed in the v2.11 series with v2.11.12 and in the v2.12 series with v2.12.3.
github.com/nats-io/nats-server/security/advisories/GHSA-qrvq-68c2-7grw

$MQTT. サブジェクトに対する MQTT クライアントおよび非クライアント接続の暗黙の権限

影響対象MQTT クライアントおよびルート接続、リーフ接続を含む非クライアント接続

従来、設定済みのサブスクライブ権限では、JetStream コンシューマーのサブスクリプションで使われる $MQTT_sub. プレフィックスを明示的に許可する必要がありました。現在は、これらの接続では $MQTT. で始まるサブジェクトへの publish と subscribe が許可エントリーなしで可能ですが、deny ACL は引き続き適用されます。通常の NATS Core クライアントには暗黙の許可は与えられません。

原文を表示
- Permissions to `$MQTT.` subscriptions are now handled implicitly, with the exception of `deny` ACLs which still permit restriction (#7637)
github.com/nats-io/nats-server/releases/tag/v2.12.3

TLS 暗号スイート選択の更新

影響対象安全でない、または新たに利用可能になった暗号スイートに依存する TLS 接続(推定)

crypto/tls の新しい暗号スイートが自動的に追加されます。一方、安全でない暗号スイートは、allow_insecure_cipher_suites が有効になっていない限り、デフォルトで無効になります。

原文を表示
Use cipher suites from crypto/tls : New cipher suites are now automatically added. Additionally, insecure cipher suites are disabled by default, but can be allowed when enabling allow_insecure_cipher_suites .
docs.nats.io/release-notes/whats_new/whats_new_212

接続ログに識別情報を追加

影響対象クライアント接続関連のログおよび接続終了ログ(推定)

クライアント接続関連のログにはアカウント名とユーザーが含まれ、接続終了ログにはリモートサーバー名が含まれます。

原文を表示
Account name and user logging: Any logging related to a client connection, for example when reaching maximum connections or for authentication errors, will now include the account name and user of that client connection. Connection closed logging now includes the remote server name.
docs.nats.io/release-notes/whats_new/whats_new_212

破壊的変更6

JetStream メタ層、ピア削除要求への応答前にクォーラムを待機

影響対象JetStream メタ層が処理するピア削除要求を発行する構成(推定)

従来は、ピアの削除がクォーラムに達する前にメタリーダーが成功を報告することがありました。その結果、クラスターの構成は変わらないまま、ユーザーや自動化プロセスがクラスターの規模が縮小したと思い込むおそれがありました。

原文を表示
- The meta layer will now only respond to peer remove requests after quorum has been reached (#7581)
github.com/nats-io/nats-server/releases/tag/v2.12.3

ディスク操作に合わせたフィルストアの削除会計

影響対象フィルストアでのメッセージ削除(推定)

以前は、トゥームストーンの書き込みに失敗しても表面化しないことがありました。また、安全な消去に失敗すると、ディスク上の状態よりも会計上の値が先行することがありました。トゥームストーンの書き込みに失敗した場合は、エラーとして通知されるようになりました。

原文を表示
- The filestore now will process message removal on disk before updating accounting, which improves error handling (#7595, #7601)
github.com/nats-io/nats-server/releases/tag/v2.12.3

Filestore と consumer の操作でのメッセージブロック読み込みエラーの伝播

影響対象キャッシュされていないメッセージブロックを読み込む Filestore および consumer の操作(推定)

キャッシュされていないメッセージブロックの読み込みに失敗した場合、該当する操作は処理を続行せず、エラーを返すか伝播するようになりました。

原文を表示
- Improved error handling within the loading of message blocks if not already cached (#7631)
github.com/nats-io/nats-server/releases/tag/v2.12.3

MQTT の最大ペイロード制限の適用

影響対象最大ペイロードサイズを設定した MQTT クライアント(推定)

以前は、NATS メッセージ全体のサイズが最大ペイロードサイズを超える MQTT publish が、接続チェックで失敗せずに黙って受け入れられることがありました。現在は、このような publish はチェックで失敗します。

原文を表示
- The maximum payload size is now correctly enforced for MQTT clients (#7555, thanks to @yixianOu)
github.com/nats-io/nats-server/releases/tag/v2.12.3

Raft による同時メンバーシップ変更のブロック

影響対象JetStream のピア削除操作を含む、Raft のメンバーシップ変更を行う環境

以前は、別のメンバーシップ変更が進行中でも新たな変更を提案できました。現在は、リーダーが同時に行われた変更を破棄します。また、JetStream のピア削除では、メンバー変更の進行中を示すエラーが返されることがあります。

根拠“A simple approach based to avoid concurrent membership changes. The leader simply drops a membership change if there is another membership change in progress. A membership is in progress if it has been proposed, but not committed yet.” nats-io/nats-server/pull/7565 ↗
原文を表示
- Raft will no longer allow multiple membership changes to take place concurrently (#7565, #7609)
github.com/nats-io/nats-server/releases/tag/v2.12.3

レプリケートされたインメモリストリームの復旧の信頼性向上

影響対象レプリケートされたインメモリストリーム

サーバーが1台を除いてすべて再起動された後も、ストリームのデータが確実に追いつくようになりました。この復旧中は、クォーラムだけでなく、ストリームを複製しているすべてのサーバーが利用可能である必要があります。

原文を表示
-
Stream/consumer scaleup and reset disk/state protection: The server now has better protections against leader elections based on empty state. This also improves reliability of replicated in-memory streams. Usually a quorum of servers needs to be online and contain data. Now all but one server can be restarted and the in-memory stream's data can reliably be caught back up. However, during such a scenario all servers involved with replication of that stream will need to be available, not just what's needed for quorum. This lets the servers decide the best course of action to preserve all data.
docs.nats.io/release-notes/whats_new/whats_new_212

重大な修正27

  • 不正なサブジェクトフィルターの誤マッチを修正
    影響対象末尾以外にフルワイルドカードを含む不正なサブジェクトフィルター

    不正なフィルター foo.>.bar は、マッチ件数が0件になるはずが、予期せず bar にマッチすることがありました。現在は bar にマッチしません。

    - Invalid subject filters containing non-terminating full wildcard no longer produce unexpected matches (#7585)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • Filestoreでのメッセージブロック全体の削除時におけるsubjectとスケジュールの追跡情報の更新
    影響対象メッセージブロック全体を削除する Filestore

    上限を適用する場合を含め、メッセージブロック全体を削除すると、subject ごとの状態が更新されず、スケジュール済みメッセージのメタデータが残ることがありました。

    - When purging whole message blocks, the subject tracking and scheduled messages are now updated correctly (#7593)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • 削除済みピアからの応答をRaftのクォーラム計算から除外
    影響対象ピアメンバーシップを持つRaftグループ

    Raft がピアメンバーシップから削除されたノードから append-entry 応答を受信した場合、エラーのない応答が誤ってクォーラムに数えられることがありました。

    - Raft will no longer count responses from peer-removed nodes towards quorum (#7589)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • ファイルストアでの保留中書き込みの消失を修正
    影響対象AsyncFlush を設定したファイルストア

    sync_interval における syncBlocks の実行と十分に長いプロセスの一時停止が重なると、保留中の書き込みが失われることがありました。syncBlocks は保留中の書き込みをフラッシュし、書き込みが保留中の間はブロックファイルのファイルディスクリプターを閉じないようになり、書き込みの消失を防ぎます。

    - The filestore will no longer unexpectedly lose writes when `AsyncFlush` is enabled after a process pause (#7594)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • 暗黙の確認応答のクォーラム計算でリーダーのメンバーシップを確認
    影響対象リーダーがメンバー外にいる Raft グループ(推定)

    以前は、リーダーがメンバーでなくなった後も、クォーラムの計算でリーダーの暗黙の確認応答を数えることがありました。

    - Raft quorum counting has been refactored so the implicit leader ack is now only counted if still a part of the membership (#7600)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • Raft ピア削除時の状態の即時永続化
    影響対象ProposePeerRemove による Raft ピアの削除

    以前は、リーダーが ProposePeerRemove でピアを削除した後に再起動すると、古いピア情報やクォーラム情報が読み込まれ、コミット済みのメンバーシップ変更が失われる可能性がありました。

    - Raft now writes the peer state immediately when handling a peer-remove to ensure the removed peers cannot unexpectedly reappear after a restart (#7602)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • 複製ストリームの破棄ポリシーによる不整合を修正
    影響対象DiscardNewPerSubject と MaxMsgsPerSubject を設定した複製ストリーム

    スナップショットの追いつき処理中に、スナップショット取得後にメッセージが削除され、その破棄ポリシーによって発行がブロックされているサブジェクトにクライアントが繰り返しメッセージを発行すると、追いつき中のフォロワーが同じシーケンス番号に別のメッセージを保存し、ほかのサーバーと不整合になることがありました。リーダーは、破棄ポリシーに適合しないメッセージをフォロワーに提案する前に拒否するようになり、不整合が起きる可能性が低くなりました。

    - The `DiscardNewPerSubject` retention policy is now enforced by the leader before proposing rather than by individual replicas, reducing the potential for stream desync (#7607)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • Raftによる最後のピア削除の拒否
    影響対象最後に残ったピアを対象とするRaftのピア削除操作

    従来は削除が受け入れられ、クラスターが無効な状態になる可能性がありました。現在は、そのピアはメンバーシップに残ります。

    - Raft will no longer allow peer-removing the one remaining peer (#7610)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • 大規模なコンパクション中の Filestore メッセージ損失の修正
    影響対象コンパクション中の Filestore ブロック

    コンパクションによってファイルのストレージの半分を超える量が回収された場合、切り詰め後、コンパクション済みのデータがすべて書き込まれる前に強制終了すると、メッセージが失われる可能性がありました。現在は、コンパクション済みのデータを別のファイルに書き込んでから、元のファイルとアトミックに置き換えます。

    - Compactions that reclaim over half of the available space now use an atomic write to avoid losing messages if killed (#7627)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • Raft のピアセットで削除済みリーダーを再登録しない修正
    影響対象ピアの削除とリーダーシップ移譲が進行中の Raft グループ

    ピアの削除がコミットされた後、リーダーシップの移譲が処理される前にハートビートが発生すると、フォロワーがピアセット内に削除済みリーダーを再作成することがありました。この順序で発生しても、再作成されなくなりました。

    - Raft groups should no longer readmit a previously removed peer if a heartbeat occurs between the peer removal and the leadership transfer (#7649)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • レプリケートされたファイルベースのストリームのスナップショット同期ずれの修正
    影響対象レプリケートされたファイルベースのストリーム

    ストリームのスナップショット中にメッセージを削除すると、ストリームの同期がずれる可能性がありました。また、スナップショット処理中の削除は拒否されていました。

    - Potential stream desyncs that could happen during stream snapshotting have been fixed (#7655)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • 破損した MQTT 保持メッセージのキャッシュ本文を修正
    影響対象保持メッセージのキャッシュを使用するクラスター構成の MQTT デプロイメント

    一致する MQTT サブスクリプションの開始後に S-2 が保持メッセージをキャッシュしていた場合、同じ subject に対する新しい保持メッセージが S-1 から届くと、キャッシュされた本文に余分な \r\n やランダムなデータが残ることがありました。新しい本文をキャッシュにコピーし、末尾の \r\n を削除するようになりました。

    - A bug which could corrupt retained messages in clustered deployments has been fixed (#7622)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • 再起動後の MQTT QoS2 メッセージ配信の修正
    影響対象MQTT QoS2 サブスクリプション

    サーバーの再起動後にサブスクリプションを再起動すると、オフライン中に永続化されたメッセージも、新たに届くメッセージも受信できませんでした。現在は、永続化されたメッセージを取得し、新しいメッセージも受信できます。

    - A bug where QoS2 messages could not be retrieved after a server restart has been fixed (#7643)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • サブジェクト変換を伴うアカウント間 MQTT 保持メッセージの修正
    影響対象別アカウントをソースとする、サブジェクト変換付きの MQTT 保持メッセージストリーム

    復旧時には、ストリームメッセージのサブジェクトからプレフィックスを取り除いて、トピックとサブジェクトが再作成されます。

    - Retained messages will now work correctly even when sourced from a different account and has a subject transform (#7636)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • JetStream の確認応答における @<subject> サフィックス重複の修正
    影響対象ゲートウェイとルートまたはリーフを経由する通信があり、ローカルサブスクリプションにキャプチャされたストリームインポートを使う JetStream 構成

    確認応答の返信がゲートウェイを越え、ローカルサブスクリプションにキャプチャされたストリームインポートが使われ、その返信がさらにルートまたはリーフを経由した場合、サフィックスの重複によってプロトコルエラーが発生していました。

    - A protocol error caused by an invalid transform of acknowledgement reply subjects when originating from a gateway connection has been fixed (#7579)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • JetStream スナップショット処理での割り当て・ノード欠落時の panic 解消
    影響対象割り当てまたはノードが欠落しているストリームの JetStream スナップショット処理

    panic する代わりに errCatchupStreamStopped を返します。

    - A panic when processing snapshots with missing nodes or assignments has been fixed (#7588)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • ほぼ空の Filestore ストリームにおけるシーケンス復旧の修正
    影響対象シーケンス 2 まで compaction または purge された、ほぼ空の Filestore ストリーム

    サーバーが compaction または purge の後、tombstone を書き込む前に強制終了された場合、シーケンスを復旧できませんでした。この状況で復旧できるよう、tombstone が書き込まれるようになりました。

    - Tombstones are now correctly written for recovering the sequences after compacting or purging an almost-empty stream to seq 2 (#7627)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • Filestore の空ブロック上書きの修正
    影響対象filestore ストリーム

    SkipMsg(seq)、Compact(seq)、SkipMsg(seq+1) の後、空ブロックに対してもう一度 SkipMsg(seq+1) を実行すると、ファイル先頭のデータが上書きされ、ディスク上のファイルが破損したように見えるとともに、indexCacheBuf corrupt record state がログに記録されることがありました。この一連の操作を行っても、誤ったオフセットでブロックが上書きされたり、破損エラーが発生したりしなくなりました。

    - Combining skip sequences and compactions will no longer overwrite the block at the wrong offset, correcting a `corrupt record state` error (#7627)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • Raft ピア追加時に互いに重ならない過半数が生じる問題の修正
    影響対象ネットワーク分断中にピアを追加する Raft グループ

    ネットワーク分断中にピアを追加すると、Raft グループ内に互いに重ならない過半数が残ることがありました。

    - Add peer operations to Raft can no longer result in disjoint majorities (#7632)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • Filestore の圧縮で古いシーケンスと削除マップ項目を修正
    影響対象圧縮中の Filestore メッセージブロック

    圧縮時に最後のシーケンスが小さくなった後も mb.last.seq が高い値のままになり、削除済みの末尾エントリーが mb.dmap に残ることがありました。その結果、インデックスが不整合になり、「no idx present」エラーが発生してリロードが必要になる場合がありました。現在は、必要に応じて最後のシーケンスを更新し、末尾の削除エントリーを整理します。

    - Filestore compaction now correctly adjusts the high and low sequences for a message block, as well as cleaning up the deletion map accordingly (#7634)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • スナップショット中の syncBlocks スケジューリングの修正
    影響対象syncBlocks を使用するファイルストア

    スナップショット中に syncBlocks が実行されると、サーバーを再起動するまで再度実行されませんでした。

    - Potential stream desyncs that could happen during stream snapshotting have been fixed (#7655)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • 保持メッセージの権限チェックで発生するパニックの修正
    影響対象MQTT の保持メッセージに対する権限チェック(推定)

    アカウントまたはユーザーを更新する設定の再読み込み中、保存済みの保持メッセージへのアクセスに必要な権限をユーザーが持っていない場合、権限が一切定義されていない場合も含め、チェック時にパニックが発生することがありました。

    - Fixed a panic that could occur when reloading config if the user did not have permission to access retained messages (#7596)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • 非 JetStream リーフアカウント経由の MQTT JetStream API マッピング修正
    影響対象JetStream を利用できないリーフアカウントから、JetStream を有効にしたハブアカウントへマッピングされた MQTT アカウント

    JetStream を利用できないリーフアカウントで JS.API.> を JetStream を有効にしたハブ上の JS.HUB.API.> にマッピングしている場合、以前はリクエストにマッピングが適用されないまま送信され、MQTT クライアントが接続できませんでした。現在はマッピングを適用した状態でサーバーを経由するため、クライアントが接続できます。

    - Fixed account mapping for JetStream API requests when traversing non-JetStream-enabled servers (#7598)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • QoS0 MQTT トピックのアカウント間サブジェクトマッピングへの対応
    影響対象アカウント間のインポート/エクスポートでサブジェクトマッピングを使用する QoS0 MQTT パブリッシャーおよびコンシューマー

    以前は、アカウント A から foo/x にパブリッシュすると、アカウント B にはマッピング後の bar/x ではなく foo/x として届いていました。現在、コンシューマーには bar/x のような、マッピング後のサブジェクトに対応するトピックが届きます。

    - QoS0 messages are now mapped correctly across account imports/exports with subject mappings (#7605)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • MQTT の保持メッセージ復元時におけるメッセージ数の確認
    影響対象MQTT の保持メッセージ復元(推定)

    再起動後、シーケンス番号に欠落があると、保持メッセージがすべて復元されていても、復元完了チェックがタイムアウトすることがありました。

    - Loading retained messages no longer fails after restarting due to last sequence checks (#7616)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • ファイルベースのストリームキャッシュ向けの可変ポインター
    影響対象ファイルベースのストリーム

    ガベージコレクション中やメモリに負荷がかかっているとき、サーバーは filestore キャッシュを早期に破棄できるため、メモリを OS に返却し、メモリ不足の回避に役立ちます。アセット数やパブリッシュ/アクセスのパターンによって、報告される RSS は低くなる場合も高くなる場合もあります。

    -
    Elastic pointers in the filestore: File-based streams now use elastic pointers for its write-through caches. This allows the server to better respond during garbage collection, these caches can be evicted early to avoid out-of-memory conditions (see upgrade considerations below).
    -
    With the new elastic pointers in the filestore, it is expected that a NATS Server running 2.12 may show a different memory usage pattern to before. In some systems this may result in lower resident set size (RSS) reported, in others it may result in higher, depending on the number of assets and publish/access patterns.
    docs.nats.io/release-notes/whats_new/whats_new_212
  • メモリ逼迫時の filestore キャッシュ解放
    影響対象filestore キャッシュを使用する NATS Server の構成

    必要に応じてキャッシュを解放することで、利用率の急上昇によってメモリ不足の強制終了が発生する可能性を低減できます。リソースに余裕がある場合は、読み取りアクセスを高速化するため、キャッシュをより積極的に保持できます。

    For the first time, the server will be able to respond to memory pressure by freeing filestore caches on demand and returning the memory to the operating system. This reduces the chance that sudden spikes in utilisation will result in an out-of-memory (OOM) kill. However, this means that the server can more optimistically retain caches in memory when available resources allow in order to facilitate improved read access times.
    docs.nats.io/release-notes/whats_new/whats_new_212

機能・改善13

  • WebSocket ping 間隔の設定

    利用条件 websocket ブロックのゼロ以外の ping_interval

    ### Added
    General
    - Added WebSocket-specific ping interval configuration with `ping_internal` in the `websocket` block (#7614)
    github.com/nats-io/nats-server/releases/tag/v2.12.3
  • ストリームのアトミックなバッチ発行

    利用条件 ストリーム設定オプション AllowAtomicPublish

    -
    Atomic batch publish: The AllowAtomicPublish stream configuration option allows to atomically publish N messages into a stream. This includes support for replicated and non-replicated streams, as well as doing per-message consistency checks prior to committing the batch. See Advanced publishing and ADR-50 .
    docs.nats.io/release-notes/whats_new/whats_new_212
  • ストリームのカウンター加算・減算の仕様

    利用条件 AllowMsgCounter ストリーム設定オプション

    -
    Distributed Counter CRDT: The AllowMsgCounter stream configuration option allows increment/decrement counter semantics on a stream. These counter streams can also be mirrored or aggregated through stream mirroring and sourcing. More information is available in ADR-49 .
    docs.nats.io/release-notes/whats_new/whats_new_212
  • ストリームメッセージのスケジューリング

    利用条件 AllowMsgSchedules ストリーム設定オプション

    -
    Delayed Message Scheduling: The AllowMsgSchedules stream configuration option allows the scheduling of messages. Users can use this feature for delayed publishing/scheduling of messages. More information is available in ADR-51 .
    docs.nats.io/release-notes/whats_new/whats_new_212
  • プルコンシューマー向け優先順位付きポリシー
    - Prioritized pull consumer policy: In addition to the consumer policies like overflow or client pinning, a new prioritized policy has been added. In contrast with the overflow policy, this allows a consumer to receive messages sooner instead of delaying failover, but at the cost of potentially flip-flopping work between clients. See Priority groups and ADR-42 .
    docs.nats.io/release-notes/whats_new/whats_new_212
  • server_metadata マップの追加
    -
    Server metadata: Similar to server_tags which contains a set of tags describing the server, server_metadata is a map containing string keys and values describing metadata of the server.
    docs.nats.io/release-notes/whats_new/whats_new_212
  • ミラーリングストリームのプライマリへの昇格
    -
    Promoting mirrors: A stream that's mirroring can now be promoted to be the primary, enabling new disaster recovery methodology. The current primary stream should be deleted or have its configured subjects removed prior to promoting mirrors, before configuring the promoted mirrors to start listening on those subjects. See Disaster recovery .
    docs.nats.io/release-notes/whats_new/whats_new_212
  • クラスタールートとゲートウェイの再接続における指数バックオフ

    利用条件 クラスタールートまたはゲートウェイで connect_backoff を true に設定

    -
    Exponential backoff on route and gateway connections: Cluster routes and gateways can now use exponential backoff on reconnection attempts by setting connect_backoff . If true , will start exponential backoff at 1 second up to 30 seconds. This can slow down the speed of reconnection but significantly reduces the amount of DNS queries and general connection attempts during server restarts or outages.
    docs.nats.io/release-notes/whats_new/whats_new_212
  • グローバルアカウントからのシステムイベント
    System events for the $G account: The global account ( $G ) will now also produce system events, such as connect and disconnect events.
    docs.nats.io/release-notes/whats_new/whats_new_212
  • NATS サーバー統計情報への GOMAXPROCS と GOMEMLIMIT の追加
    GOMAXPROCS and GOMEMLIMIT in server stats: The server stats already contained the CPU and memory usage of the server but now also contains the effective Go limits.
    docs.nats.io/release-notes/whats_new/whats_new_212
  • サブジェクト全体を使う partition(n) と random(n) の変換関数
    New subject transforms: partition(n) and random(n) : In addition to partition(n, …) which allows to determine a partition number based on tokens at specified indices, partition(n) and random(n) are convenience functions to create a partition or random number up to n based on the whole subject.
    docs.nats.io/release-notes/whats_new/whats_new_212
  • isolate_leafnode_interest によるリーフノードの interest 分離
    Isolated leaf node property: In a large deployment with lots of leaf nodes, propagating east-west interest can result in a lot of traffic, which is wasted if leaf nodes don't need to be able to publish/subscribe to each other directly. Instead of the workaround of setting the cluster name of those leaf nodes to be the same, the isolate_leafnode_interest property can now be used.
    docs.nats.io/release-notes/whats_new/whats_new_212
  • 設定再読み込みによるリモートリーフノードの無効化

    利用条件 設定再読み込みで disabled: true を設定すること

    Disable leaf node connection through config reload: This allows disabling a remote leaf node using configuration reload, when using disabled: true . If changed from false to true, a solicited leaf node will be disconnected and will not reconnect. If changed from true to false, the leafnode will be solicited again.
    docs.nats.io/release-notes/whats_new/whats_new_212

依存関係の更新8

    ほか8件(いずれもセキュリティへの言及なし)
    • - 1.25.5 (#7604)
    • - github.com/google/go-tpm v0.9.7 (#7578)
    • - github.com/nats-io/nkeys v0.4.12 (#7578)
    • - golang.org/x/crypto v0.45.0 (#7578)
    • - github.com/klauspost/compress v1.18.2 (#7604)
    • - github.com/antithesishq/antithesis-sdk-go v0.5.0-default-no-op (#7604)
    • - golang.org/x/crypto v0.46.0 (#7648)
    • - golang.org/x/sys v0.39.0 (#7648)
    その他の変更11
    • サブジェクトでフィルタリングされたソースのシーケンススキャン高速化
      - The scan for the last sourced message sequence when setting up a subject-filtered source is now considerably faster (#7553)
      github.com/nats-io/nats-server/releases/tag/v2.12.3
    • JetStream メタレイヤーでの復旧操作のステージングと重複排除
      - The metalayer will now stage and deduplicate recovery operations at startup, instead of rapidly applying and then undoing conflicting assignments (#7540)
      github.com/nats-io/nats-server/releases/tag/v2.12.3
    • JetStream コンシューマーの interest チェックの高速化
      - Consumer interest checks on interest-based streams are now significantly faster when there are large gaps in interest (#7656)
      github.com/nats-io/nats-server/releases/tag/v2.12.3
    • クラスターモードでのストリーム作成時のデータ競合を修正
      - A data race when creating a stream in clustered mode has been fixed (#7586)
      github.com/nats-io/nats-server/releases/tag/v2.12.3
    • Filestore のセキュア消去におけるサブジェクト追跡の維持
      - The filestore now will process message removal on disk before updating accounting, which improves error handling (#7595, #7601)
      github.com/nats-io/nats-server/releases/tag/v2.12.3
    • ストリームヘルスチェックにおけるレプリカ読み取りの読み取りロックによる保護
      - A data race has been fixed in the stream health check (#7619)
      github.com/nats-io/nats-server/releases/tag/v2.12.3
    • Filestore キャッシュの errNoCache 発生時の期限切れ
      - Filestore message lookups will now expire the cache if a cache error is encountered (#7630)
      github.com/nats-io/nats-server/releases/tag/v2.12.3
    • シーケンス不一致時の Filestore インデックス再構築と読み込み再試行
      - Filestore compaction should no longer result in `no idx present` cache errors (#7634)
      github.com/nats-io/nats-server/releases/tag/v2.12.3
    • v2.12 の機能を使用するストリームとコンシューマーのダウングレード時の非対応扱い
      -
      Offline assets: When downgrading to an older version, the server can now recognize new features were used and puts the stream and/or consumer into an unsupported/offline mode. For more information, read also the downgrade considerations. More information is available in ADR-44 .
      docs.nats.io/release-notes/whats_new/whats_new_212
    • レプリケートストリームのデータの非同期ディスク書き込み
      -
      Async stream flushing: Replicated streams will now asynchronously flush data to the underlying store on disk, resulting in a significant improvement in performance. Writes to a replicated stream are still persisted synchronously in the Raft log prior to committing them, so the improved performance has no downsides with respect to consistency.
      docs.nats.io/release-notes/whats_new/whats_new_212
    • JetStream の strict mode のデフォルト有効化
      Strict JetStream API ​
      Starting from version v2.11, the server would start logging the following statement if an invalid JetStream request was received:
      [WRN] Invalid JetStream request '$G > $JS.API.STREAM.CREATE.test-stream': json: unknown field "unknown"
      Starting from version v2.12, the server will not only log, but also return an error to the client as "strict mode" is now enabled by default. This means invalid JetStream requests will be rejected by default.
      If the above log message is observed, please make sure that the application or client is sending correct requests to the server and that NATS client libraries are up-to-date. Strict mode can be temporarily disabled in the server configuration, allowing you more time to fix the issue:
      jetstream {
      strict: false
      }
      docs.nats.io/release-notes/whats_new/whats_new_212

    整理した内容は AI が作成するため誤っている可能性があり、無保証で提供されます。