このコンテンツは選択した言語では利用できません。

1.4. Upgrading from JBoss Data Grid 6.3.x to 6.4


The following information is useful for users upgrading from Red Hat JBoss Data Grid 6.3.x to 6.4.
Hot Rod Protocol

The Hot Rod size() method in JBoss Data Grid 6.3 is used to obtain the size by looking at the numberOfEntries statistic on the server. This required statistics to be enabled and the ADMIN permission if security was in use (instead of the more appropriate BULK_READ). It also only returned the number of entries in the node that responded to the request. This included potentially expired entries and did not take stores/loaders into account. In JBoss Data Grid 6.4, the size method's behavior can be modified to include the size of the entire cluster (not just the local node). If the infinispan.accurate.bulk.ops system property is set to true then the size method will use the new behavior by utilizing the entry iterator to count all entries.

Changes to the size() Method

The size() method no longer returns the value of the currentNumberOfEntries statistic. Instead it will retrieve all the keys using keySet() and will then return the number of entries in this set.

The previous implementation was less costly but it did not return accurate information when the cache contained expired entries.
keySet() is a costly operation and because of this size() is now a costly operation as well. Distributed caches it will retrieve all the keys from all the nodes in the cluster.
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2026 Red Hat
トップに戻る