mirror of
https://gitee.com/he3db/he3pg.git
synced 2024-12-02 04:07:34 +08:00
auto vacuum stop failed
Code Source From: Self Code Description: 【Optional】 Jira: #【Optional】 市场项目编号(名称):【Optional】
This commit is contained in:
parent
b1f7353e14
commit
371bca48a7
@ -14742,11 +14742,15 @@ producerXLogParallelBatchRead(XLogReaderState *xlogreader, XLogRecPtr startPtr,
|
|||||||
maxFlushedUpto = readedUpto + 8 * 16 * 1024;
|
maxFlushedUpto = readedUpto + 8 * 16 * 1024;
|
||||||
} else {
|
} else {
|
||||||
//reConnect to master
|
//reConnect to master
|
||||||
if (consumerFailedNum >= 8 && ring_buffer_is_empty(gRingBufferManger)) {
|
if (consumerFailedNum >= 8) {
|
||||||
if (!XLogRecPtrIsInvalid(reStartPtr)) {
|
if (ring_buffer_is_empty(gRingBufferManger)) {
|
||||||
readedUpto = reStartPtr;
|
if (!XLogRecPtrIsInvalid(reStartPtr)) {
|
||||||
consumerFailedNum = 0;
|
readedUpto = reStartPtr;
|
||||||
ReConnectPrimaryDB();
|
maxFlushedUpto = reStartPtr;
|
||||||
|
consumerFailedNum = 0;
|
||||||
|
failedCount = 0;
|
||||||
|
ReConnectPrimaryDB();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (readedUpto < flushedUpto) {
|
if (readedUpto < flushedUpto) {
|
||||||
|
@ -802,7 +802,8 @@ smgrtruncatelsn(SMgrRelation reln, ForkNumber *forknum, int nforks, BlockNumber
|
|||||||
do {
|
do {
|
||||||
sleep(1);
|
sleep(1);
|
||||||
minApplyLsn = He3DBQueryMinLsnFromAllStanby();
|
minApplyLsn = He3DBQueryMinLsnFromAllStanby();
|
||||||
printf("====pushlsn=%lx==lsn==%lx==\n",minApplyLsn,lsn);
|
elog(LOG,"====pushlsn=%lx==lsn==%lx==\n",minApplyLsn,lsn);
|
||||||
|
CHECK_FOR_INTERRUPTS();
|
||||||
} while(minApplyLsn<lsn);
|
} while(minApplyLsn<lsn);
|
||||||
flag = true;
|
flag = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user