public class ConflictCheck extends Object
| Modifier and Type | Field and Description |
|---|---|
static ConflictCheck |
testInstance |
| Constructor and Description |
|---|
ConflictCheck() |
| Modifier and Type | Method and Description |
|---|---|
static void |
HydraTask_initialize() |
static void |
HydraTask_txOnlyConflictCheck() |
protected void |
initialize() |
protected void |
txOnlyConflictCheck()
In round 1, one thread (thread one) begins transaction and getKey and it
waits until round 3 to do a commit;
all other threads try to get the same key in their own transactions;
In round 2, all threads try to commit -- only one can commit successfully
In round 3, thread one tries to commit and it should detect the write opertation
by another thread and cause commit to fail.
|
public static ConflictCheck testInstance
public static void HydraTask_initialize()
protected void initialize()
public static void HydraTask_txOnlyConflictCheck()
protected void txOnlyConflictCheck()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.