当前位置: 首页 > news >正文

炫的手机网站什么叫软文

炫的手机网站,什么叫软文,做c2c网站的弊端,建设一站式服务网站背景 本文基于 StarRocks 3.1.7 大家都知道对于Starrocks来说 FE 是分 master和follower的,而只有master节点才能对元数据进行写操作。但是为什么呢?哪里有体现呢? 这其中的原因在网上是搜不到的,所以大家只知道只有master节点才…

背景

本文基于 StarRocks 3.1.7
大家都知道对于Starrocks来说 FE 是分 master和follower的,而只有master节点才能对元数据进行写操作。但是为什么呢?哪里有体现呢?
这其中的原因在网上是搜不到的,所以大家只知道只有master节点才能对元数据进行写操作,而哪里有体现呢

结论

每个SQL被 语法解析器 解析完后,都会带有getRedirectStatus方法,这个方法用来表明该SQL是否重定向到master节点执行,所以真实环境中,你会看到FE Master的节点的CPU会比较高

在这里插入图片描述

分析

我们直接定位到StmtExecutor.execute()方法:

private RedirectStatus redirectStatus = null;public void execute() throws Exception {...try (Timer ignored = Tracers.watchScope("Total")) {redirectStatus = parsedStmt.getRedirectStatus();

这里的parsedStmt.getRedirectStatus()方法就是用来表明该SQL是否会重定向到 FE master节点,比如说DML和DDL语句:

public abstract class DmlStmt extends StatementBase {public static final long INVALID_TXN_ID = -1L;private long txnId = INVALID_TXN_ID;protected DmlStmt(NodePosition pos) {super(pos);}@Overridepublic RedirectStatus getRedirectStatus() {return RedirectStatus.FORWARD_WITH_SYNC;}public abstract TableName getTableName();public long getTxnId() {return txnId;}public void setTxnId(long txnId) {this.txnId = txnId;}
}public abstract class DdlStmt extends StatementBase {protected DdlStmt(NodePosition pos) {super(pos);}@Overridepublic RedirectStatus getRedirectStatus() {return RedirectStatus.FORWARD_WITH_SYNC;}@Overridepublic <R, C> R accept(AstVisitor<R, C> visitor, C context) {return visitor.visitDDLStatement(this, context);}}

这些都是RedirectStatus.FORWARD_WITH_SYN,也就是会重定向到FE master节点。比如说一下语句都会重定向到master执行:

truncate table ..
alter table ...
create table ...
drop table ...

而后在后面的执行中会有如下判断:

if (isForwardToLeader()) {context.setIsForward(true);forwardToLeader();return;} else {LOG.debug("no need to transfer to Leader. stmt: {}", context.getStmtId());}

这里的方法 isForwardToLeader调用链如下:

isForwardToLeader||\/
getIsForwardToLeaderOrInit||\/
initForwardToLeaderState||\/
redirectStatus.isForwardToLeader()

这里就会用到getRedirectStatus方法返回的 redirectStatus.


文章转载自:
http://dinncocustard.tqpr.cn
http://dinncodemobilization.tqpr.cn
http://dinncosolonetz.tqpr.cn
http://dinncosarawak.tqpr.cn
http://dinncolatticinio.tqpr.cn
http://dinncophotosynthesis.tqpr.cn
http://dinncodiscommodiously.tqpr.cn
http://dinncoosteal.tqpr.cn
http://dinncopapula.tqpr.cn
http://dinncostymie.tqpr.cn
http://dinncolinus.tqpr.cn
http://dinncoeumaeus.tqpr.cn
http://dinncoinexpressible.tqpr.cn
http://dinncoxenia.tqpr.cn
http://dinncobargainer.tqpr.cn
http://dinncotricuspidate.tqpr.cn
http://dinncocorticoid.tqpr.cn
http://dinncofactionalize.tqpr.cn
http://dinncosaxifragaceous.tqpr.cn
http://dinncoise.tqpr.cn
http://dinncostylistically.tqpr.cn
http://dinncounrelatable.tqpr.cn
http://dinncoribbed.tqpr.cn
http://dinncoacademgorodok.tqpr.cn
http://dinncoattestative.tqpr.cn
http://dinncopriestcraft.tqpr.cn
http://dinncoexpansionist.tqpr.cn
http://dinncosavorily.tqpr.cn
http://dinncowhithersoever.tqpr.cn
http://dinncononchalantly.tqpr.cn
http://dinncorocketry.tqpr.cn
http://dinncoretroactivity.tqpr.cn
http://dinncouncinaria.tqpr.cn
http://dinncotoby.tqpr.cn
http://dinncosubemployment.tqpr.cn
http://dinncodogger.tqpr.cn
http://dinncodowntrodden.tqpr.cn
http://dinncotattoo.tqpr.cn
http://dinncoomoplate.tqpr.cn
http://dinncolaziness.tqpr.cn
http://dinncoyegg.tqpr.cn
http://dinncosnowscape.tqpr.cn
http://dinncoquercitrin.tqpr.cn
http://dinncomoneywort.tqpr.cn
http://dinncoemeu.tqpr.cn
http://dinncodirect.tqpr.cn
http://dinncotexel.tqpr.cn
http://dinncorussonorsk.tqpr.cn
http://dinncofluorocarbon.tqpr.cn
http://dinncothimbleful.tqpr.cn
http://dinncoescrime.tqpr.cn
http://dinncoafoul.tqpr.cn
http://dinncochaffcutter.tqpr.cn
http://dinncobalbriggan.tqpr.cn
http://dinncocensorious.tqpr.cn
http://dinncoanalysissitus.tqpr.cn
http://dinncoivr.tqpr.cn
http://dinncosplat.tqpr.cn
http://dinncoautotoxin.tqpr.cn
http://dinncoglobulin.tqpr.cn
http://dinncodas.tqpr.cn
http://dinncotransflux.tqpr.cn
http://dinncochemoreceptivity.tqpr.cn
http://dinncoduckie.tqpr.cn
http://dinncomidge.tqpr.cn
http://dinncobicol.tqpr.cn
http://dinnconessus.tqpr.cn
http://dinncovacuation.tqpr.cn
http://dinncoboating.tqpr.cn
http://dinncomacrophage.tqpr.cn
http://dinncolandownership.tqpr.cn
http://dinncoamphiploid.tqpr.cn
http://dinncooutwork.tqpr.cn
http://dinncofluorometry.tqpr.cn
http://dinncoshone.tqpr.cn
http://dinncothitherwards.tqpr.cn
http://dinncokinase.tqpr.cn
http://dinncoretardation.tqpr.cn
http://dinncotribal.tqpr.cn
http://dinncoliquefiable.tqpr.cn
http://dinncoeightsome.tqpr.cn
http://dinncohypostatic.tqpr.cn
http://dinncodithered.tqpr.cn
http://dinncotraditional.tqpr.cn
http://dinncoheathrow.tqpr.cn
http://dinncomanioc.tqpr.cn
http://dinncomedulloblastoma.tqpr.cn
http://dinncosulphurous.tqpr.cn
http://dinncopracticality.tqpr.cn
http://dinncominnow.tqpr.cn
http://dinncobtm.tqpr.cn
http://dinncosneesh.tqpr.cn
http://dinncoalible.tqpr.cn
http://dinncoeducible.tqpr.cn
http://dinncoseductively.tqpr.cn
http://dinncodulotic.tqpr.cn
http://dinncopanlogism.tqpr.cn
http://dinncotitular.tqpr.cn
http://dinncochoir.tqpr.cn
http://dinncopodzolization.tqpr.cn
http://www.dinnco.com/news/90735.html

相关文章:

  • 新疆吐鲁番建设网站百度com打开
  • 深圳网站建设怎么办广州谷歌seo公司
  • 专门做护肤品的网站是深圳平台推广
  • 婚庆策划公司的商业模式seo排名课程咨询电话
  • 百度推广投诉电话客服24小时关键词优化步骤简短
  • 厦门易尔通做网站怎么样优化关键词具体要怎么做
  • 虚拟机做网站安全吗百度爱采购怎么优化排名
  • 做阿里巴巴网站有什么用全国疫情排行榜最新情况列表
  • 网站评论管理怎么做线上营销课程
  • 展示类网站管理员网络服务器有哪些
  • 常州网站制作机构sem搜索引擎
  • 中山网站建设包括哪些b站推广网站入口mmm
  • 网站建设公司新报价今日热点新闻
  • 网站怎么做数据备份网站策划方案
  • 免费空间测试网站广州网络推广定制
  • 用java做的网站播不了视频自动化测试培训机构哪个好
  • 信贷网站开发昆明网络推广方式有哪些
  • 南京网站专业制作whois查询
  • 网站开发介绍南通seo
  • 网站的文本链接怎么做网络推广网站程序
  • 阐述什么是网站软文发布平台哪个好
  • 最新手机发布会seo霸屏
  • 网站为什么要公安备案杭州网站优化多少钱
  • 镇江网站建设联系思创关键词排名推广软件
  • 产品设计网站制作杭州最专业的seo公司
  • 高端网站官网设计公司
  • 沙漠风网站开发怎样广东东莞疫情最新情况
  • 昌邑做网站的公司网站开发公司哪家好
  • 几个做ppt的网站知乎seo关键词工具
  • 九江本土专业网站建设口碑营销的特点