提交 76c45fe4 authored 作者: Thomas Mueller's avatar Thomas Mueller

With the MVStore option, when using multiple threads that concurrently create…

With the MVStore option, when using multiple threads that concurrently create indexes or tables, it was relatively easy to get a lock timeout on the "SYS" table.
上级 57863eee
......@@ -208,7 +208,7 @@ public class MVSecondaryIndex extends BaseIndex implements MVIndex {
try {
map.put(array, ValueNull.INSTANCE);
} catch (IllegalStateException e) {
throw DbException.get(ErrorCode.CONCURRENT_UPDATE_1,
throw DbException.get(ErrorCode.CONCURRENT_UPDATE_1,
e, table.getName());
}
if (indexType.isUnique()) {
......@@ -246,7 +246,7 @@ public class MVSecondaryIndex extends BaseIndex implements MVIndex {
getSQL() + ": " + row.getKey());
}
} catch (IllegalStateException e) {
throw DbException.get(ErrorCode.CONCURRENT_UPDATE_1,
throw DbException.get(ErrorCode.CONCURRENT_UPDATE_1,
e, table.getName());
}
}
......
......@@ -137,7 +137,7 @@ public class MVSpatialIndex extends BaseIndex implements SpatialIndex, MVIndex {
try {
map.put(key, ValueLong.get(0));
} catch (IllegalStateException e) {
throw DbException.get(ErrorCode.CONCURRENT_UPDATE_1,
throw DbException.get(ErrorCode.CONCURRENT_UPDATE_1,
e, table.getName());
}
if (indexType.isUnique()) {
......@@ -184,7 +184,7 @@ public class MVSpatialIndex extends BaseIndex implements SpatialIndex, MVIndex {
getSQL() + ": " + row.getKey());
}
} catch (IllegalStateException e) {
throw DbException.get(ErrorCode.CONCURRENT_UPDATE_1,
throw DbException.get(ErrorCode.CONCURRENT_UPDATE_1,
e, table.getName());
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论