@Override public final void upgradeCurrentRowLocationLockToWrite() throws StandardException { if (this.currentRowLocation != null && this.currentDataRegion != null) { final RegionEntry entry = this.currentRowLocation .getUnderlyingRegionEntry(); final TXStateProxy txProxy = this.localTXState.getProxy(); if (this.observer != null) { this.observer.lockingRowForTX(txProxy, this.baseContainer, entry, true); } try { // upgrade the lock since the entry has been qualified txProxy.lockEntry(entry, entry.getKey(), GemFireXDUtils .getRoutingObject(this.currentRowLocation.getBucketID()), this.baseContainer.getRegion(), this.currentDataRegion, true, TXEntryState.getLockForUpdateOp()); } finally { // now release the SH lock after the atomic lock upgrade, or as // cleanup in case of lock upgrade failure GemFireXDUtils.releaseLockForReadOnPreviousEntry(entry, this.localTXState, this.txId, this.lockPolicy, this.readLockMode, this.baseContainer, this.currentDataRegion, this.lockContext); } this.currentDataRegion = null; } }
@Override public final void upgradeCurrentRowLocationLockToWrite() throws StandardException { if (this.currentRowLocation != null && this.currentDataRegion != null) { final RegionEntry entry = this.currentRowLocation .getUnderlyingRegionEntry(); final TXStateProxy txProxy = this.localTXState.getProxy(); if (this.observer != null) { this.observer.lockingRowForTX(txProxy, this.baseContainer, entry, true); } try { // upgrade the lock since the entry has been qualified txProxy.lockEntry(entry, entry.getKey(), GemFireXDUtils .getRoutingObject(this.currentRowLocation.getBucketID()), this.baseContainer.getRegion(), this.currentDataRegion, true, TXEntryState.getLockForUpdateOp()); } finally { // now release the SH lock after the atomic lock upgrade, or as // cleanup in case of lock upgrade failure GemFireXDUtils.releaseLockForReadOnPreviousEntry(entry, this.localTXState, this.txId, this.lockPolicy, this.readLockMode, this.baseContainer, this.currentDataRegion, this.lockContext); } this.currentDataRegion = null; } }
@Override public final void upgradeCurrentRowLocationLockToWrite() throws StandardException { if (this.currentRowLocation != null && this.currentDataRegion != null) { final RegionEntry entry = this.currentRowLocation .getUnderlyingRegionEntry(); final TXStateProxy txProxy = this.localTXState.getProxy(); if (this.observer != null) { this.observer.lockingRowForTX(txProxy, this.baseContainer, entry, true); } try { // upgrade the lock since the entry has been qualified txProxy.lockEntry(entry, entry.getKey(), GemFireXDUtils .getRoutingObject(this.currentRowLocation.getBucketID()), this.baseContainer.getRegion(), this.currentDataRegion, true, TXEntryState.getLockForUpdateOp()); } finally { // now release the SH lock after the atomic lock upgrade, or as // cleanup in case of lock upgrade failure GemFireXDUtils.releaseLockForReadOnPreviousEntry(entry, this.localTXState, this.txId, this.lockPolicy, this.readLockMode, this.baseContainer, this.currentDataRegion, this.lockContext); } this.currentDataRegion = null; } }
@Override public final void upgradeCurrentRowLocationLockToWrite() throws StandardException { if (this.currentRowLocation != null && this.currentDataRegion != null) { final RegionEntry entry = this.currentRowLocation .getUnderlyingRegionEntry(); final TXStateProxy txProxy = this.localTXState.getProxy(); if (this.observer != null) { this.observer.lockingRowForTX(txProxy, this.gfContainer, entry, true); } try { // upgrade the lock since the entry has been qualified txProxy.lockEntry(entry, entry.getKey(), GemFireXDUtils .getRoutingObject(this.currentRowLocation.getBucketID()), this.gfContainer.getRegion(), this.currentDataRegion, true, TXEntryState.getLockForUpdateOp()); } finally { // now release the SH lock after the atomic lock upgrade, or as // cleanup in case of lock upgrade failure GemFireXDUtils.releaseLockForReadOnPreviousEntry(entry, this.localTXState, this.txId, this.lockPolicy, this.readLockMode, this.gfContainer, this.currentDataRegion, this.lockContext); } this.currentDataRegion = null; } }
@Override public final void upgradeCurrentRowLocationLockToWrite() throws StandardException { if (this.currentRowLocation != null && this.currentDataRegion != null) { final RegionEntry entry = this.currentRowLocation .getUnderlyingRegionEntry(); final TXStateProxy txProxy = this.localTXState.getProxy(); if (this.observer != null) { this.observer.lockingRowForTX(txProxy, this.gfContainer, entry, true); } try { // upgrade the lock since the entry has been qualified txProxy.lockEntry(entry, entry.getKey(), GemFireXDUtils .getRoutingObject(this.currentRowLocation.getBucketID()), this.gfContainer.getRegion(), this.currentDataRegion, true, TXEntryState.getLockForUpdateOp()); } finally { // now release the SH lock after the atomic lock upgrade, or as // cleanup in case of lock upgrade failure GemFireXDUtils.releaseLockForReadOnPreviousEntry(entry, this.localTXState, this.txId, this.lockPolicy, this.readLockMode, this.gfContainer, this.currentDataRegion, this.lockContext); } this.currentDataRegion = null; } }
@Override public final void upgradeCurrentRowLocationLockToWrite() throws StandardException { if (this.currentRowLocation != null && this.currentDataRegion != null) { final RegionEntry entry = this.currentRowLocation .getUnderlyingRegionEntry(); final TXStateProxy txProxy = this.localTXState.getProxy(); if (this.observer != null) { this.observer.lockingRowForTX(txProxy, this.gfContainer, entry, true); } try { // upgrade the lock since the entry has been qualified txProxy.lockEntry(entry, entry.getKey(), GemFireXDUtils .getRoutingObject(this.currentRowLocation.getBucketID()), this.gfContainer.getRegion(), this.currentDataRegion, true, TXEntryState.getLockForUpdateOp()); } finally { // now release the SH lock after the atomic lock upgrade, or as // cleanup in case of lock upgrade failure GemFireXDUtils.releaseLockForReadOnPreviousEntry(entry, this.localTXState, this.txId, this.lockPolicy, this.readLockMode, this.gfContainer, this.currentDataRegion, this.lockContext); } this.currentDataRegion = null; } }
try { txes = tx.lockEntry(null, key, callbackArg, region, dataRegion, true, queryHDFS, TXEntryState.getLockForUpdateOp(), TXState.LOCK_ENTRY_NOT_FOUND); } catch (EntryNotFoundException enfe) {
try { txes = tx.lockEntry(null, key, callbackArg, region, dataRegion, true, queryHDFS, TXEntryState.getLockForUpdateOp(), TXState.LOCK_ENTRY_NOT_FOUND); } catch (EntryNotFoundException enfe) {
try { txes = tx.lockEntry(null, key, callbackArg, region, dataRegion, true, queryHDFS, TXEntryState.getLockForUpdateOp(), TXState.LOCK_ENTRY_NOT_FOUND); } catch (EntryNotFoundException enfe) {
GemFireXDUtils.getRoutingObject(rl.getBucketID()), region, dataRegion, true, TXEntryState.getLockForUpdateOp()); } finally {
GemFireXDUtils.getRoutingObject(rl.getBucketID()), region, dataRegion, true, TXEntryState.getLockForUpdateOp()); } finally {
GemFireXDUtils.getRoutingObject(rl.getBucketID()), region, dataRegion, true, TXEntryState.getLockForUpdateOp()); } finally {