Closed zzl0 closed 7 years ago
type whisper 时 rehash 报错 StringIO instance has no attribute 'startswith‘
还在确认到底是哪里抛的这个异常
@camper42 在 whisper_read_header 那里,异常时这个函数里面抛出来的,我明天测试下 whisper2kenshin 的逻辑,好久没有使用 whisper 的数据,这里我用错了。
@camper42 感谢 review,我今天做了下面两件微小的事情,请重新 review。另外,你有时间的话也可以按照 README 中的步骤走一遍,看看有什么描述不清楚,或者遗漏的地方。
也期待你给 kenshin-rehash.py 加进度条的改进。
一个是之前提到的 setup.py 中 code.dapps 的 URL 需要改一下 另一个想问一下删除 kenshin-add-metric 的原因是?
一个是之前提到的 setup.py 中 code.dapps 的 URL 需要改一下
thx
另一个想问一下删除 kenshin-add-metric 的原因是?
和 kenshin-send-sero-metric.py 类似,而且这个只特定于 whisper ,所以删掉。
从 whisper rehash 出现 [merge error] /data/kenshin/storage/data/11/default/275.hs: list index out of range
whisper 是我临时跑的,whisper 如果不是预先创建所有 archives 的话,会出现 archives 数量不同,导致这个报错?
rehash 实际上只支持通过 http 服务器获取数据?help 有些误导
从 whisper rehash 出现 [merge error] /data/kenshin/storage/data/11/default/275.hs: list index out of range whisper 是我临时跑的,whisper 如果不是预先创建所有 archives 的话,会出现 archives 数量不同,导致这个报错?
这个是预期的,rehash 的时候需要保证 archive schema 一致。
rehash 实际上只支持通过 http 服务器获取数据?help 有些误导
这个可以删掉
那没别的问题了,可以考虑后续让报错更友好一些,现在看这个报错还得分析一下才知道为什么
那没别的问题了,可以考虑后续让报错更友好一些,现在看这个报错还得分析一下才知道为什么
已更新。也可以,之前的 whisper2kenshin 脚本是有比较细的检查,后来做 kenshin-rehash 简化去掉了,因为我觉得用处不大。你觉得有必要的话,也可以加一些类似的检查回来。
@camper42 @lianwenbo please review