@@ -149,10 +149,10 @@ private void performOperation(ClusterConnection connection,
149
149
TransactionCommand op ,
150
150
@ Nullable StreamObserver <TransactionStreamPerformerToDriver > toTest ,
151
151
boolean performanceMode ) {
152
- if (op .getWaitMSecs () != 0 ) {
152
+ if (op .getWaitMsecs () != 0 ) {
153
153
try {
154
- logger .info ("Sleeping for Msecs: " +op .getWaitMSecs ());
155
- Thread .sleep (op .getWaitMSecs ());
154
+ logger .info ("Sleeping for Msecs: " +op .getWaitMsecs ());
155
+ Thread .sleep (op .getWaitMsecs ());
156
156
} catch (InterruptedException e ) {
157
157
throw new InternalPerformerFailure (new RuntimeException (e ));
158
158
}
@@ -318,26 +318,26 @@ private void performOperation(ClusterConnection connection,
318
318
performCommandBatch (request , (parallelOp ) -> Mono .fromRunnable (() -> {
319
319
performOperation (connection , ctx , parallelOp , toTest , performanceMode );
320
320
}).then ()).block ();
321
- } else if (op .hasInsertRegularKV ()) {
322
- final CommandInsertRegularKV request = op .getInsertRegularKV ();
321
+ } else if (op .hasInsertRegularKv ()) {
322
+ final CommandInsertRegularKV request = op .getInsertRegularKv ();
323
323
final Collection collection = connection .collection (request .getDocId ());
324
324
325
325
performOperation ("KV insert " + request .getDocId ().getDocId (), ctx , Collections .singletonList (EXPECT_SUCCESS ), op .getDoNotPropagateError (), performanceMode ,
326
326
() -> {
327
327
JsonObject content = JsonObject .fromJson (request .getContentJson ());
328
328
collection .insert (request .getDocId ().getDocId (), content );
329
329
});
330
- } else if (op .hasReplaceRegularKV ()) {
331
- final CommandReplaceRegularKV request = op .getReplaceRegularKV ();
330
+ } else if (op .hasReplaceRegularKv ()) {
331
+ final CommandReplaceRegularKV request = op .getReplaceRegularKv ();
332
332
final Collection collection = connection .collection (request .getDocId ());
333
333
334
334
performOperation ("KV replace " + request .getDocId ().getDocId (), ctx , Collections .singletonList (EXPECT_SUCCESS ), op .getDoNotPropagateError (), performanceMode ,
335
335
() -> {
336
336
JsonObject content = JsonObject .fromJson (request .getContentJson ());
337
337
collection .replace (request .getDocId ().getDocId (), content );
338
338
});
339
- } else if (op .hasRemoveRegularKV ()) {
340
- final CommandRemoveRegularKV request = op .getRemoveRegularKV ();
339
+ } else if (op .hasRemoveRegularKv ()) {
340
+ final CommandRemoveRegularKV request = op .getRemoveRegularKv ();
341
341
final Collection collection = connection .collection (request .getDocId ());
342
342
343
343
performOperation ("KV remove " + request .getDocId ().getDocId (), ctx , Collections .singletonList (EXPECT_SUCCESS ), op .getDoNotPropagateError (), performanceMode ,
0 commit comments