当前位置:网站首页>【事件中心 Azure Event Hub】Event Hub日誌種發現的錯誤資訊解讀
【事件中心 Azure Event Hub】Event Hub日誌種發現的錯誤資訊解讀
2020-11-06 01:17:00 【itread01】
問題描述
使用Event Hub消費事件時,出現的各種客戶端錯誤的解讀。(再後期遇見新的錯誤資訊,會持續新增進此說明)
一:再Linux中執行Event Hub消費端程式,出現Too many open files
解讀:該資訊是指java程式開啟作業系統檔案控制代碼數超出了作業系統的限制,排查作業系統的檔案控制代碼的限制是不是預設的1024,如果是,請改為無限制。
使用ulimit -a 或者 ulimit -n 檢視控制代碼數 open files (-n) 1024
配置檔案/etc/security/limits.conf
在該配置檔案中新增
* soft nofile 65535 * hard nofile 65535
二:New receiver 'nil' with higher epoch of '197' is created hence current receiver 'nil' with epoch '196' is getting disconnected
| 錯誤訊息: java.util.concurrent.CompletionException: com.microsoft.azure.eventhubs.ReceiverDisconnectedException: New receiver 'nil' with higher epoch of '197' is created hence current receiver 'nil' with epoch '196' is getting disconnected. If you are recreating the receiver, make sure a higher epoch is used. TrackingId:xxxxxxxxxxxxxxx, SystemTracker:xxxxxxx:eventhub:xxxxxxx|$default, Timestamp:2020-10-20T15:50:16, errorContext[NS: xxxxxxxxx.servicebus.chinacloudapi.cn, PATH: xxxxxxxxx/ConsumerGroups/$Default/Partitions/3, REFERENCE_ID: xxxxxxxxxx, PREFETCH_COUNT: 300, LINK_CREDIT: 300, PREFETCH_Q_LEN: 0] java.util.concurrent.ExecutionException: com.microsoft.azure.eventprocessorhost.ExceptionWithAction: java.lang.RuntimeException: Lease lost while updating checkpoint |
解讀:消費者程式會為每個訊息分割槽建立單獨的消費執行緒,消費執行緒跟分割槽是一對一的關係,當有額外的消費程式去消費同樣的eventhub時,並存儲checkpoint到同一個位置時,就會發生partition的再分配,或者,當其中一個消費執行緒出現問題時,客戶端程式會嘗試恢復並接手失敗執行緒所有的分割槽。通常情況下該錯誤可以忽略。
三:com.microsoft.azure.eventprocessorhost.ExceptionWithAction:The client could not finish the operation within specified maximum execution timeout.
解讀:客戶端程式在消費後,將消費offset存入Storage時,發生網路超時,建議您排查下客戶端網路情況。
四:com.microsoft.azure.eventhubs.EventHubException: The specified partition is invalid for an EventHub partition sender or receiver. It should be between 0 and 1.
解讀:客戶端程式在消費eventhub資料時,指定了錯誤的分割槽資訊。
五:com.microsoft.azure.eventhubs.EventHubException: The supplied offset '0' is invalid. The last offset in the system is '-1'
解讀:客戶端在消費eventhub資料時,提交了錯誤的offset值,不能設定初始為0。
&n
版权声明
本文为[itread01]所创,转载请带上原文链接,感谢
https://www.itread01.com/content/1604499373.html
边栏推荐
- 企业数据库的选择通常由系统架构师主导决策 - thenewstack
- 连肝三个通宵,JVM77道高频面试题详细分析,就这?
- windows10 tensorflow(二)原理实战之回归分析,深度学习框架(梯度下降法求解回归参数)
- 接口压力测试:Siege压测安装、使用和说明
- JetCache埋点的骚操作,不服不行啊
- Clean架构能够解决哪些问题? - jbogard
- 如何使用ES6中的参数
- 高级 Vue 组件模式 (3)
- python 保存list数据
- Menu permission control configuration of hub plug-in for azure Devops extension
猜你喜欢
随机推荐
Polkadot series (2) -- detailed explanation of mixed consensus
如何对Pandas DataFrame进行自定义排序
写一个通用的幂等组件,我觉得很有必要
Flink on paasta: yelp's new stream processing platform running on kubernetes
6.9.2 session flashmapmanager redirection management
01 . Go语言的SSH远程终端及WebSocket
Query意图识别分析
python jieba分词(结巴分词)、提取词,加载词,修改词频,定义词库
【C/C++ 2】Clion配置与运行C语言
Jmeter——ForEach Controller&Loop Controller
drf JWT認證模組與自定製
业内首发车道级导航背后——详解高精定位技术演进与场景应用
[C#] (原創)一步一步教你自定義控制元件——04,ProgressBar(進度條)
2018个人年度工作总结与2019工作计划(互联网)
被产品经理怼了,线上出Bug为啥你不知道
3分钟读懂Wi-Fi 6于Wi-Fi 5的优势
nlp模型-bert从入门到精通(一)
TensorFlow2.0 问世,Pytorch还能否撼动老大哥地位?
向北京集结!OpenI/O 2020启智开发者大会进入倒计时
Gradient understanding decline







