My Oracle Support Banner

Parallel replicat failed - terminate called after throwing an instance of 'std::bad_alloc' (Doc ID 2817999.1)

Last updated on JULY 18, 2023

Applies to:

Oracle GoldenGate - Version 21.3.0.0.0 and later
Information in this document applies to any platform.

Symptoms

Doing an initial load to SQLServer using OGG v21.3 parallel replicat and it fails with the following error

--

2021-09-29 15:52:11 INFO OGG-02232 Switching to next trail file <path>/xxx at 2021-09-29 15:50:58.088135 due to EOF. with current RBA xxx,xxx,xxx.
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc

Source Context :
--

--
SourceMethod : [OnDisconnect]
SourceLine : [1019]
ThreadBacktrace : [14] elements
: [<ogg_ma_home>/bin/../lib/libgglog.so(CMessageContext::AddThreadContext())]
: [<ogg_ma_home>/bin/../lib/libgglog.so(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...))]
: [/ogg/ma/bin/../lib/libgglog.so(_MSG_String(CSourceContext*, int, char const*, CMessageFactory::MessageDisposition))]
: [<ogg_ma_home>/bin/replicat(ggs::Coord::MasterWithWorkerList<ggs::Coord::SchedulerApplyThread>::OnDisconnect(int))]
: [<ogg_ma_home>/bin/replicat(ggs::Coord::CoordinatorMessageHandler::HandleIPCError(int, ipc_err_info_def const&))]
: [<ogg_ma_home>/bin/replicat(ggs::Coord::CoordinatorMessageHandler::ReceiveMessage(int))]
: [<ogg_ma_home>/bin/replicat(ggs::Coord::CoordinatorMessageHandler::CheckMessages(int))]
: [<ogg_ma_home>/bin/replicat(ggs::Coord::MasterWithWorkerList<ggs::Coord::SchedulerApplyThread>::CheckMessages())]
: [<ogg_ma_home>/bin/replicat(ggs::Coord::GroupController::MainLoop())]
: [<ogg_ma_home>/bin/replicat(ggs::Coord::GroupController::Run())]
: [<ogg_ma_home>/bin/replicat(ggs::Coord::Scheduler::Main(void*))]
: [<ogg_ma_home>/bin/replicat(ggs::gglib::MultiThreading::Thread::RunThread(ggs::gglib::MultiThreading::Thread::ThreadArgs*))]
: [/lib64/libpthread.so.0()]
: [/lib64/libc.so.6(clone)]

2021-09-29 15:55:31 ERROR OGG-30102 Parallel Replicat thread <repnam>02 exited unexpectedly. Please check the report file of <repname>02 for more details.

Enabled Xml tracing that showed

<Repname> | 2021-09/29 15:55:31.686 <Repname> |DEBUG| 1274 coord/Scheduler.cpp |Can't process data from queue because graph is full
<Repname> | 2021-09/29 15:55:31.686 <Repname> |DEBUG| 1504 coord/Scheduler.cpp | Scheduler status:
Queue Size: 15
Total Appliers: 4
Idle Appliers: 0
Stopping Appliers: 0
Initialized Appilers: 4
Inactive Appliers: 0
<Repname> | 2021-09/29 15:55:31.686 <Repname> |DEBUG| 178 coord/CoordinatorMessage | Listen on socket: 15
<Repname> | 2021-09/29 15:55:31.686 <Repname> |DEBUG| 179 coord/CoordinatorMessage | Listen on port: 0
<Repname> | 2021-09/29 15:55:31.686 <Repname> |DEBUG| 274 coord/CoordinatorMessage | Receiving message from server 2
<Repname> | 2021-09/29 15:55:31.686 <Repname> |DEBUG| 1385 ggnet/ipc.c | entering socket_disconnected
<Repname> | 2021-09/29 15:55:31.686 <Repname> |INFO | 591 ggnet/ipc.c | closing sock 18
<Repname>| 2021-09/29 15:55:31.686 <Repname> |INFO | 1458 ggnet/ipc.c | Error: Sender disconnected
<Repname>| 2021-09/29 15:55:31.693 <Repname> |DEBUG| 320 coord/CoordinatorMessage | Error receiving message
<Repname> | 2021-09/29 15:55:31.693 <Repname> |DEBUG| 626 ggrepo/ggrepo.cpp | Deferring GGFatal message OGG-30102: Parallel Replicat thread <Repname>02 exited unexpectedly. Please check the report file of <Repname>02 for more details.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.