Gemfire: Identify bad entries causing index corrupt errors
search cancel

Gemfire: Identify bad entries causing index corrupt errors

book

Article ID: 400277

calendar_today

Updated On:

Products

VMware Tanzu Gemfire

Issue/Introduction

When index corruption is caused by data with missing fields, one of these methods can help detect  the "bad" entry.

Resolution

1.) Add  debug level logging to print out the region key along with the NotAuthorizedException when the problem occurs.  

2.) Write a function to scan the entries, keep values in serialized form and scan the pdx instance to see if it has the missing field. The entry that is missing the field is the one that is causing the issue.

3.) Change the method authorizer to JavaBeanAccessorMethodAuthorizer, and write a query to check where the <missing field>==null