Skip to content

Commit e2d51c8

Browse files
committed
chore(cachestore): Rockstore - track operation for RWLoop slow span
1 parent 81995e0 commit e2d51c8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

rust/cubestore/cubestore/src/metastore/rocks_store.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ mod tests {
15401540
// read operation
15411541
{
15421542
let r = rocks_store
1543-
.read_operation(|_| -> Result<(), CubeError> {
1543+
.read_operation("unnamed", |_| -> Result<(), CubeError> {
15441544
panic!("panic - task 1");
15451545
})
15461546
.await;
@@ -1550,7 +1550,7 @@ mod tests {
15501550
);
15511551

15521552
let r = rocks_store
1553-
.read_operation(|_| -> Result<(), CubeError> {
1553+
.read_operation("unnamed", |_| -> Result<(), CubeError> {
15541554
Err(CubeError::user("error - task 3".to_string()))
15551555
})
15561556
.await;
@@ -1563,7 +1563,7 @@ mod tests {
15631563
// write operation
15641564
{
15651565
let r = rocks_store
1566-
.write_operation(|_, _| -> Result<(), CubeError> {
1566+
.write_operation("unnamed", |_, _| -> Result<(), CubeError> {
15671567
panic!("panic - task 1");
15681568
})
15691569
.await;
@@ -1573,7 +1573,7 @@ mod tests {
15731573
);
15741574

15751575
let r = rocks_store
1576-
.write_operation(|_, _| -> Result<(), CubeError> {
1576+
.write_operation("unnamed", |_, _| -> Result<(), CubeError> {
15771577
panic!("panic - task 2");
15781578
})
15791579
.await;
@@ -1583,7 +1583,7 @@ mod tests {
15831583
);
15841584

15851585
let r = rocks_store
1586-
.write_operation(|_, _| -> Result<(), CubeError> {
1586+
.write_operation("unnamed", |_, _| -> Result<(), CubeError> {
15871587
Err(CubeError::user("error - task 3".to_string()))
15881588
})
15891589
.await;
@@ -1601,7 +1601,7 @@ mod tests {
16011601

16021602
async fn write_test_data(rocks_store: &Arc<RocksStore>, name: String) {
16031603
rocks_store
1604-
.write_operation(move |db_ref, batch_pipe| {
1604+
.write_operation("write_test_data", move |db_ref, batch_pipe| {
16051605
let table = SchemaRocksTable::new(db_ref.clone());
16061606
let schema = Schema { name };
16071607
Ok(table.insert(schema, batch_pipe)?)

0 commit comments

Comments
 (0)