The second issue of Open Source Weekly (20230616)

The second issue of Open Source Weekly (20230616)

This article is divided into three parts product application, industry application and basic knowledge

From finished to perfect, don't think too much, just do it.

There is no content in this issue, I still sent it out, just for the restart, explained in the previous stage. Now start the next stage.

1. The Industry From the Stone Age to the Golden Age 1. The Basics: From Bronze to Silver Experience Questions

1. Standing on the shoulders of giants

2. From the Stone Age to the Golden Age

1. Public class [information]

- Reading books: leveldb mastery

https://github.com/watchpoints/leveldb https://leveldb-handbook.readthedocs.io/zh/latest/basic.html Progress: 1

  • Go Open Course: MIT Classic Course "Distributed Systems"

https://learnku.com/go/wikis/41239

  • MIT 6.84: Distributed Systems

Official address: https://pdos.csail.mit.edu/6.824/ Progress: 0

2. TIdb

:::warning Why do I need to read tidb? I am worried. Countless people are doing it before me, so I am too late to do it myself? Then wait for 3 years and 5 years and nothing will happen? Then watch mobile phone movies, in order to correct this attitude, from a news attitude to a positive attitude, there are countless documents in a community, and countless participations show that it is valuable. What do you think is the right industry, what do you think is the right community, what do you think is right, why do you act? Is this the biggest problem? Don't do what is correct and valuable, instead do useless things. Breaking the ice :::

How to become a TiFlash Contributor?

https://asktug.com/t/topic/693824

资料 作者 地址
「High Performance TiDB 课程学习计划」 官方 https://docs.qq.com/sheet/DY3RueHVEd1JQV1Vi?tab=BB08J2
「TiFlash 往期源码解读」 官方 https://asktug.com/t/topic/903372
「Talent Plan 2021 KV」 「社区」 https://learn.pingcap.com/learner/course/510001
https://github.com/tikv/tikv
### TiDB 社区技术月刊
七大模板 https://tidb.net/book/tidb-monthly/
T「iKV 源码阅读三部曲」 社区 https://mp.weixin.qq.com/s/HgflwnZZMHXaIsFV3PdGAg
### issue
https://github.com/pingcap/tidb/issues/7623
https://github.com/tikv/tikv/issues/8650
【源码类学习资源大放送】TiDB、TiKV、TiFlash、Chaos Mesh 等源码解读补给站

| | https://asktug.com/t/topic/693645/1 | | 最近学习数据库源码 遇到的疑惑,希望过来人帮忙解答 | | https://asktug.com/t/topic/1000469?_gl=1fkkx3_gaMjI2MTMzMTkyLjE2NzM5MjYyNDI._ga_5FQSB5GH7F*MTY3NzE1NzkzOS4yMi4wLjE2NzcxNTc5MzkuMC4wLjA. |

挑战:TiKV raft engine日志丢失Tikv恢复失败

https://asktug.com/t/topic/1006099

第一步: 盯着问题根本无法解决,凭空想想不出来的问题变为tikv如何加载recover日志的。

挑战2:

Incorrect data conversion · Issue #44219 · pingcap/tidb

CREATE TABLE t1 (c1 INT UNSIGNED NOT NULL);
INSERT INTO t1 VALUES (0);
SELECT c1 > - '7' FROM t1;

开发进展:

提问3: tidb 如何禁止开启启动 分类:运维部署 回答:

提问4:我的SQL走tiflash TIFLASH sql优化问题

分类:架构设计 回答:

三 ob社区

标签 问题 是否解决
启动 observer无法启动
文章 【SOP 系列 19】OceanBase 生态组件重启方式
ysbench 压测ob时, write only 场景 qps 波动大 https://ask.oceanbase.com/t/topic/35603208/24

问:内存配置没有到触发条件,为啥会触发MINI_MERGE转储

提问2: 今天所有业务暂停了,突然cpu占用99%,租户无法登录,无法导出数据恢复 分类:系统架构 回答:https://zhuanlan.zhihu.com/p/466337239

提问3:log_disk_size和datafile_size设置后不生效 https://ask.oceanbase.com/t/topic/35603715 分类:系统架构 回答:

  • log_disk_size在4.1版本是支持缩小的,语法没错,建议升级试试,clog会自动清理空间大小,通过log_disk_utilization_threshold控制,默认80%,可以适当调小。

  • datafile_size不支持缩小,虽然alter system set 设置没有报错,但可以查看__all_virtual_disk_stat 查看实际大小,预期是不会有变化

提问3: 函数ST_ExteriorRing已经新增了,ST_ExteriorRing函数都是boost geometry 不需要自己实现把? https://dev.mysql.com/doc/refman/5.7/en/gis-polygon-property-functions.html#function_st-exteriorring 分类:sql引引擎 答: 所有的函数的都是调用boost库的,我看MySQL也是这么做的,当时MySQL还写了一个文章为什么要用

四 TDengine

序号 模块 提问 回答
1 技能 通过招聘看要求 必须掌握英语。
2

:::success Hi 大神们 遇到个问题 taos 用了32g的 内存 被系统杀掉了 我要怎么限制taos的内存使用 如何限制taos 最大内存 配置taos的内存回收策略 :::


「Q2: yum config-manager --set-enabled powertools 执行失败」 https://github.com/taosdata/TDengine/issues/15593 A2: dnf install epel-release dnf install 'dnf-command(config-manager)' dnf config-manager --set-enabled PowerTools


三. 开发者手册:从青铜到白银经

C++最重要就是三座大山:面向对象技术,内存管理,模板(泛型编程)

  1. std::unique_ptr 默认不允许拷贝构造,拷贝赋值,为什么函数可以返回unique_ptr ? 而不是&unique_ptr
 https://en.cppreference.com/w/cpp/memory/unique_ptr/make_unique 

template<class T, class... Args>
std::enable_if_t<!std::is_array<T>::value, std::unique_ptr<T>>
make_unique(Args&&... args)
{
    return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
}

2 template<typename... _Args>

:::warning https://zhuanlan.zhihu.com/p/394184676 :::

template<typename... _Args>
void emplace_front(_Args&&... __args)
;

猴子都能懂的GIT入门〜掌握版本管理〜

合并代码用cherry-pick

image.png :::success 使用BeyondCompare合并代码, 结果发现提交上去代码 根本编译不通过,耗时 2天。都是语法错误 这是处理方式不对。合并代码,

这时分两种情况。一种情况是,你需要另一个分支的所有代码变动,那么就采用合并(git merge)。另一种情况是,你只需要部分代码变动(某几个提交),这时可以采用 Cherry pick

如果操作过程中发生代码冲突,Cherry pick 会停下来,让用户决定如何继续操作。 git cherry-pick --continue ::: image.png

git rebase --continue

解决冲突CONFLICT 在rebase的过程中,也许会出现冲突(conflict)。在这种情况,Git会停止rebase并会让你去解决冲突;在解决完冲突后,用git add命令去更新这些内容的索引(index),然后,你无需执行 git commit,只要执行:

bash
git rebase --continue
https://juejin.cn/post/6844903600976576519

作者:麦田里的糖醋鱼 链接:https://juejin.cn/post/6969101234338791432 来源:稀土掘金 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

git pull 提示需要 merge 或 git stash 的解决

  • 别人提交的pr先合并了xxx2,导致你提交pr xx01代码不是最新代码,需要合并。但是git pull合并不了
  • git reset --hard xxxx2, 回推到 别人pr提交之前,然后 pull
  • git pick up 我自己的xxxx.

3.3 跑吧 Linux内核(入门篇)

  • 文件系统
dd if=/dev/zero of=output_file bs=1G count=1

:::warning 总结不易,如果对您有帮助,请一键三连, 鼓励发表更优秀的文章 :::

本文由 mdnice 多平台发布

Guess you like

Origin blog.csdn.net/oWangChuanYi/article/details/131269218