思源版本 2.2.3
粘贴以下内容,删除 ~~~
后撤销,出现状态异常;
我们也可以通过自定义分区规则和分区个数,来控制数据按业务规则聚集。具体操作实现如下:
- 自定义类继承Partitioner,重写getPartition()方法
~~~java
public class MyPartitioner extends Partitioner<K, V> {
@Override
public int getPartition(K key, V value, int numPartitions) {
int partition = 0;
//分区的编号规则为从0开始的自然数流水序列
return partition;
}
}
~~~
操作过程:
- 直接 ctrl+v 粘贴
- 删除
~~~java
前的~
直到删除换行 - ctrl+z 撤销
错误日志
I 2022/10/05 17:16:03 database.go:93: reinitialized database [E:\Study\Siyuan\temp\siyuan.db]
I 2022/10/05 17:16:04 index.go:185: rebuilt database for notebook [20210821105258-irgl53w] in [0.90s], tree [count=167, size=2.2 MB]
I 2022/10/05 17:16:06 index.go:185: rebuilt database for notebook [20211021230016-e77eecy] in [1.05s], tree [count=125, size=2.2 MB]
I 2022/10/05 17:16:06 index.go:185: rebuilt database for notebook [20210821105258-gxyqc9t] in [0.29s], tree [count=53, size=897 kB]
I 2022/10/05 17:16:06 index.go:185: rebuilt database for notebook [20210821105258-lwak085] in [0.04s], tree [count=19, size=58 kB]
I 2022/10/05 17:16:06 index.go:323: resolved refs [307] in [122ms]
I 2022/10/05 17:17:13 repository.go:545: synced data repo [ufc=3, dfc=0, ucc=3, dcc=0, ub=245 kB, db=344 kB] in [5.68s]
E 2022/10/05 17:17:19 transaction.go:859: update data is nil
I 2022/10/05 17:17:27 database.go:93: reinitialized database [E:\Study\Siyuan\temp\siyuan.db]
I 2022/10/05 17:17:28 index.go:185: rebuilt database for notebook [20210821105258-irgl53w] in [0.94s], tree [count=167, size=2.2 MB]
I 2022/10/05 17:17:30 index.go:185: rebuilt database for notebook [20211021230016-e77eecy] in [1.12s], tree [count=125, size=2.2 MB]
I 2022/10/05 17:17:30 index.go:185: rebuilt database for notebook [20210821105258-gxyqc9t] in [0.30s], tree [count=53, size=897 kB]
I 2022/10/05 17:17:30 index.go:185: rebuilt database for notebook [20210821105258-lwak085] in [0.03s], tree [count=19, size=58 kB]
I 2022/10/05 17:17:30 index.go:323: resolved refs [307] in [136ms]
I 2022/10/05 17:18:18 repository.go:545: synced data repo [ufc=2, dfc=0, ucc=2, dcc=0, ub=242 kB, db=344 kB] in [5.46s]
E 2022/10/05 17:18:49 transaction.go:859: update data is nil
I 2022/10/05 17:18:54 database.go:93: reinitialized database [E:\Study\Siyuan\temp\siyuan.db]
I 2022/10/05 17:18:55 index.go:185: rebuilt database for notebook [20210821105258-irgl53w] in [0.90s], tree [count=167, size=2.2 MB]
I 2022/10/05 17:18:57 index.go:185: rebuilt database for notebook [20211021230016-e77eecy] in [1.06s], tree [count=125, size=2.2 MB]
I 2022/10/05 17:18:57 index.go:185: rebuilt database for notebook [20210821105258-gxyqc9t] in [0.28s], tree [count=53, size=897 kB]
I 2022/10/05 17:18:57 index.go:185: rebuilt database for notebook [20210821105258-lwak085] in [0.05s], tree [count=19, size=58 kB]
I 2022/10/05 17:18:57 index.go:323: resolved refs [307] in [150ms]
另外,
粘贴为纯文本、转义文本,删除 ~~~
也有问题,在 v2.3.0-alpha1 也能复现
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于