『The ShardingSphere Global Echo』Vol.1|来自海外最新的 ShardingSphere 声音

『The ShardingSphere Global Echo』是由 Apache ShardingSphere 社区出品,每周更新来自海外最新的 ShardingSphere 声音。今日是第一期,之后将在每周五持续更新。

作为一款国人主导的开源项目,Apache ShardingSphere 社区的视野并不局限于国内。通过践行全球化战略,Apache ShardingSphere 正在以行动展示“『开源』连接世界”的未来愿景。

前沿发声

01

Big News!

ShardingSphere 技术文章历时三月登陆 InfoQ 海外首页

f941b59723a1d40630862b69a23c1c7e.png

1 月 12 日,由 Apache ShardingSphere PMC 潘娟撰写、InfoQ 资深编辑共同 review 完成的技术解读文章 “The Next Evolution of the Database Sharding Architecture”,历时三个多月登陆 InfoQ 海外首页,向海外读者展示 ShardingSphere 下一代架构演进历程。

*链接:https://www.infoq.com/articles/next-evolution-of-database-sharding-architecture/

02

DZone 收录 ShardingSphere 5.0.0 解读系列

0be69d57a7798222ab6f9d51e4f06800.png

DZone.com 是世界上最大的在线社区之一,为软件开发人员提供囊括数据库、AI、DevOps、大数据、云计算等 14 个领域的知识资源,每天有数万名开发者来到 DZone.com,阅读最新的技术趋势,并通过分享知识了解新技术、方法和最佳实践。ShardingSphere 5.0.0 解读系列 “How to Develop Your Distributed SQL Statement in Apache ShardingSphere”(如何在 ShardingSphere 中开发自己的 DistSQL)历时两周被 DZone 官方收录。同时另外一家海外游戏技术网站 GetUpdated 也转发了此文。

*链接 :

1、https://dzone.com/articles/develop-distributed-sql-statement-in-apache

2、https://getupdated.me/shardingsphere-develop-distributed-sql-statement/

03

 ShardingSphere 5.0.0 解读系列发布在 DEV 平台

1588b0b6847278e3b1420511ed69bd27.png

DEV 是一个由软件开发人员组成的社区,DEV 建立在一个旨在增强社区能力的开源软件 —— Forem 上,任何人都可以检查代码细节或者加入进来。ShardingSphere 5.0.0 解读系列 “Apache ShardingSphere 5.0.0: Upgraded Federation Execution Engine”(Apache ShardingSphere 5.0.0 内核优化及升级指南)发布在 DEV 平台。

海外动态

01

『Test Automation Weekly』网站

发布 ShardingSphere 文章

『Test Automation Weekly』是一个每周更新的免费 newsletter 项目,致力于收录并传播互联网上对读者有用、具有技术参考意义的技术文章、播客、视频等。第 27 期收录 ShardingSphere 文章 “Full Link Online Stress Testing for Production Database: Apache ShardingSphere Shadow Database Feature Upgrade”。

*链接:https://blog.devgenius.io/full-link-online-stress-testing-for-production-database-apache-shardingsphere-shadow-database-84f7cba56f99

02

Medium 一 Blogger 发文提及

Apache ShardingSphere

Medium 上一 Blogger 发文提及 Apache ShardingSphere 及其他三个在大数据领域表现出色/值得关注的 Apache 基金会项目。

26cc43945b9439b9e53d54a81068ca46.png

*链接:https://medium.com/cloud-believers/four-great-apache-systems-for-big-data-and-data-lake-apache-shardingsphere-apache-iceberg-238485129944

News

01

知名编程开发类 Youtubor 转文提及 ShardingSphere

218e808ce23a492bc2a52a9cf49bb19a.png

1 月 13 日,知名编程开发类 Youtubor: Polylot Engineer 在 Twitter 上转发 ShardingSphere 相关文章并提及 ShardingSphere。

e19b6c3864650a91c9aec8d7fb3feed4.gif

欢迎关注 Apache ShardingSphere 海外!

ShardingSphere Twitter:https://twitter.com/ShardingSphere

该错误信息 `Uncaught TypeError: (window.__global.getActiveAppWindow || window.getInstanceWindow || window.__global.getInstanceWindow) is not a function` 表明 JavaScript 在尝试调用一个期望为函数的表达式时,发现其实际上并不是一个函数。这种错误通常出现在试图调用一个未定义或非函数类型的变量或对象属性。 ### 错误分析 此错误信息中涉及的表达式为: ```javascript (window.__global.getActiveAppWindow || window.getInstanceWindow || window.__global.getInstanceWindow) ``` 它尝试从多个可能的路径中获取一个函数,然后执行它。如果所有这些路径都未定义或不是函数,最终结果将是一个非函数值。当尝试调用这个非函数值时,就会抛出 `TypeError`。 ### 常见原因 1. **变量未正确初始化**:`window.__global` 或 `window.getInstanceWindow` 等变量可能未在全局作用域中定义或未正确初始化。 2. **脚本加载顺序问题**:用于定义这些函数的脚本可能未正确加载或加载顺序错误,导致在调用时函数尚未定义。 3. **拼写错误或作用域问题**:可能存在拼写错误,例如 `getActiveAppWindow` 被错误地定义为 `getActiveAppWindow` 以外的名称,或者函数未暴露在全局作用域中。 4. **模块化问题**:如果这些函数是通过模块或其他封装方式定义的,可能未正确导出或绑定到 `window` 对象上。 ### 解决方案 1. **检查变量定义**: 确保 `window.__global`、`window.getInstanceWindow` 等变量已正确定义,并且它们的属性(如 `getActiveAppWindow`)确实是函数。 ```javascript // 示例:确保 __global 已定义 if (typeof window.__global !== 'undefined' && typeof window.__global.getActiveAppWindow === 'function') { window.__global.getActiveAppWindow(); } else { console.error('getActiveAppWindow is not available'); } ``` 2. **验证脚本加载顺序**: 确保定义这些函数的脚本在调用它们之前已经加载并执行完毕。可以使用 `DOMContentLoaded` 事件或 `defer` 属性来确保脚本按预期加载。 ```html <script src="path/to/your/script.js" defer></script> ``` 3. **调试全局对象**: 在控制台中打印相关对象,检查它们的结构和可用性。 ```javascript console.log(window.__global); console.log(window.getInstanceWindow); ``` 4. **检查拼写和作用域**: 确认函数名拼写正确,并且函数确实暴露在全局作用域中。例如: ```javascript window.__global = { getActiveAppWindow: function() { // 函数逻辑 } }; ``` 5. **模块化代码处理**: 如果使用了模块化开发(如 ES6 模块),确保函数已正确导出并绑定到 `window` 对象上。 ```javascript // myModule.js export function getActiveAppWindow() { // 函数逻辑 } // main.js import { getActiveAppWindow } from './myModule.js'; window.__global = { getActiveAppWindow }; ``` ### 总结 该错误的核心问题是尝试调用一个非函数值。通过检查变量定义、脚本加载顺序、拼写错误以及模块化代码的处理,可以有效解决这一问题。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值