public void resetQuotaAndRecoverEnforcement ( ) { for ( Integer nodeId : nodeIds ) { boolean quotaEnforcement = mapNodeToQuotaEnforcingEnabled . get ( nodeId ) ; adminClient . metadataMgmtOps . updateRemoteMetadata ( Arrays . asList ( nodeId ) , MetadataStore . QUOTA_ENFORCEMENT_ENABLED_KEY , Boolean . toString ( quotaEnforcement ) ) ; } for ( String storeName : storeNames ) { adminClient . quotaMgmtOps . rebalanceQuota ( storeName ) ; } }
After cluster management operations i . e . reset quota and recover quota enforcement settings