Logging Apache Geode PartitionedRegion Primary and Secondary Bucket Locations

Introduction

Implementation

  • gets the PartitionedRegion for the input region name
  • gets the member’s redundancy zone
  • gets the configured number of buckets for the PartitionedRegion
  • gets the list of local bucket ids for the PartitionedRegion
  • gets the list of local primary bucket ids for the PartitionedRegion
  • creates and returns a ServerBucketIds object containing these values
  • all bucket ids per server
  • primary bucket ids per server
  • all bucket ids per redundancy zone
  • primary bucket ids per redundancy zone
  • total number of bucket ids
  • total number of primary bucket ids
  • missing bucket ids per redundancy zone
  • extra bucket ids per redundancy zone

Execute the GetBucketIdsFunction

Process the ServerBucketIds Result

  • sorts each server’s bucket ids and primary bucket ids
  • updates all bucket ids per server and primary bucket ids per server
  • increments the total number of bucket and primary ids
  • gets the server’s redundancy zone
  • adds the server’s bucket ids to the redundancy zone bucket ids
  • adds the server’s primary bucket ids to the redundancy zone primary bucket ids
  • sorts the redundancy zone bucket ids and primary bucket ids

Display the Results

Client Logging Output

Future

--

--

Software Engineer at VMware.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store