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

公司做百度网站要多少钱做苗木网站哪家好

公司做百度网站要多少钱,做苗木网站哪家好,吉林seo网络推广,html网页制作模板图片背景 在flink中可以通过使用事务性数据汇实现精准一次的保证#xff0c;本文基于Kakfa的事务处理来看一下在Flink 内部如何实现基于两阶段提交协议的事务性数据汇. flink kafka事务性数据汇的实现 1。首先在开始进行快照的时候也就是收到checkpoint通知的时候#xff0c;在…背景 在flink中可以通过使用事务性数据汇实现精准一次的保证本文基于Kakfa的事务处理来看一下在Flink 内部如何实现基于两阶段提交协议的事务性数据汇. flink kafka事务性数据汇的实现 1。首先在开始进行快照的时候也就是收到checkpoint通知的时候在snapshot方法中会开启一个新的事务代码如下 public void snapshotState(FunctionSnapshotContext context) throws Exception {// this is like the pre-commit of a 2-phase-commit transaction// we are ready to commit and remember the transactioncheckState(currentTransactionHolder ! null,bug: no transaction object when performing state snapshot);long checkpointId context.getCheckpointId();LOG.debug({} - checkpoint {} triggered, flushing transaction {},name(),context.getCheckpointId(),currentTransactionHolder);preCommit(currentTransactionHolder.handle);// 调用kafkaProducer.flush();清理上一个事务的状态(注意不是提交),只是确保前一个事务的所有资源清理完毕pendingCommitTransactions.put(checkpointId, currentTransactionHolder);LOG.debug({} - stored pending transactions {}, name(), pendingCommitTransactions); // 调用producer.beginTransaction();方法开启一个新的kafka事务currentTransactionHolder beginTransactionInternal();LOG.debug({} - started new transaction {}, name(), currentTransactionHolder);state.clear();state.add(new State(this.currentTransactionHolder,new ArrayList(pendingCommitTransactions.values()),userContext));}2.其次在JobManager通知检查点完成的通知方法,也就是notifyCheckpointComplete方法中提交事务 IteratorMap.EntryLong, TransactionHolderTXN pendingTransactionIterator pendingCommitTransactions.entrySet().iterator();Throwable firstError null;while (pendingTransactionIterator.hasNext()) {Map.EntryLong, TransactionHolderTXN entry pendingTransactionIterator.next();Long pendingTransactionCheckpointId entry.getKey();TransactionHolderTXN pendingTransaction entry.getValue();if (pendingTransactionCheckpointId checkpointId) {continue;}LOG.info({} - checkpoint {} complete, committing transaction {} from checkpoint {},name(),checkpointId,pendingTransaction,pendingTransactionCheckpointId);logWarningIfTimeoutAlmostReached(pendingTransaction);try {//调用producer.commitTransaction()方法提交事务commit(pendingTransaction.handle);} catch (Throwable t) {if (firstError null) {firstError t;}}LOG.debug({} - committed checkpoint transaction {}, name(), pendingTransaction);pendingTransactionIterator.remove();}if (firstError ! null) {throw new FlinkRuntimeException(Committing one of transactions failed, logging first encountered failure,firstError);}至此一个两阶段提交的flink事务性数据汇完成了这个事务性数据汇可以构成端到端一致性的一部分
http://www.dnsts.com.cn/news/111357.html

相关文章:

  • 校园网二级网站的建设岳阳网站设计
  • 网站改版不换域名怎么做网站联盟是什么
  • 深圳网站开发公司有哪些seo优化培训
  • 国外最火的网站合肥网站建设5k5
  • 做网站跟推广哪家公司好看空间
  • 做网站销售电销好做吗用台式机做网站服务器
  • 聊城市住房和城乡建设局网站首页打开浏览器直接进入网站
  • php语言做购物网站打鱼网站怎么做
  • 仙居制作网站免费linux网站空间
  • 颍上做网站做彩票网站网址
  • 厦门思总建设有限公司网站深圳有哪些软件外包公司
  • 如何用网站首页做404如何推广店铺呢
  • 仿网站开发必要是什么网站
  • 目前网站开发有什么缺点网站建设需求确认表
  • 做视频自媒体要投稿几个网站wordpress支持视频播放器插件
  • 网站商城建设基本流程广州引流推广公司
  • 页面设计模板网站wordpress 5.2.2
  • dede页码的调用 网站集团形象设计公司
  • 网站建设1000字百度用户服务中心
  • 免费网站建设浩森宇特中信建设有限责任公司中标项目
  • 响应式网站自助建设如何创建网站
  • 电子商务网站开发实例论文商城网站里可以再放cms吗
  • 解放碑电子商务网站建设用户中心网站设计
  • 网站定制公司蒙特苏州网站的建设
  • 上海网站开发与设计广西桂林旅游团报价
  • 网站开发机构南宁手机企业网站定制
  • 成品网站代理wordpress screen
  • 照明灯具类企业网站宁波哪里有网站建设高端的
  • 帮企业做网站赚钱互联网营销公司经营范围
  • 做网站推广需要多少钱营销型网站策划方案