Re: logical replication worker accesses catalogs in error context callback
От
Bharath Rupireddy
Тема
Re: logical replication worker accesses catalogs in error context callback
Дата
Msg-id
CALj2ACV0i7NqzYdrh8CZv3RGd3EyAkwtg404FLZrWBi0DhjG7A@mail.gmail.com
Ответ на
Список
Дерево обсуждения
logical replication worker accesses catalogs in error context callback Andres Freund <andres@anarazel.de>
Re: logical replication worker accesses catalogs in error context callback Masahiko Sawada <sawada.mshk@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Masahiko Sawada <sawada.mshk@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Masahiko Sawada <sawada.mshk@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Masahiko Sawada <sawada.mshk@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Masahiko Sawada <sawada.mshk@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Zhihong Yu <zyu@yugabyte.com>
Re: logical replication worker accesses catalogs in error context callback Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Tom Lane <tgl@sss.pgh.pa.us>
Re: logical replication worker accesses catalogs in error context callback Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Tom Lane <tgl@sss.pgh.pa.us>
Re: logical replication worker accesses catalogs in error context callback Tom Lane <tgl@sss.pgh.pa.us>
Re: logical replication worker accesses catalogs in error context callback Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Tom Lane <tgl@sss.pgh.pa.us>
Re: logical replication worker accesses catalogs in error context callback Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Tom Lane <tgl@sss.pgh.pa.us>
Re: logical replication worker accesses catalogs in error context callback Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Tom Lane <tgl@sss.pgh.pa.us>
Re: logical replication worker accesses catalogs in error context callback Amit Kapila <amit.kapila16@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Andres Freund <andres@anarazel.de>
Re: logical replication worker accesses catalogs in error context callback Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Andres Freund <andres@anarazel.de>
Re: logical replication worker accesses catalogs in error context callback Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Andres Freund <andres@anarazel.de>
Re: logical replication worker accesses catalogs in error context callback Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Amit Kapila <amit.kapila16@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Amit Kapila <amit.kapila16@gmail.com>
Re: logical replication worker accesses catalogs in error context callback Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
On Thu, Jan 28, 2021 at 11:14 AM Amit Kapila wrote: > > On Wed, Jan 27, 2021 at 9:38 AM Bharath Rupireddy > wrote: > > > > On Wed, Jan 27, 2021 at 7:48 AM Zhihong Yu wrote: > > > > Thanks for pointing to the changes in the commit message. I corrected > > them. Attaching v4 patch set, consider it for further review. > > > > About 0001, have we tried to reproduce the actual bug here which means > when the error_callback is called we should face some problem? I feel > with the correct testcase we should hit the Assert > (Assert(IsTransactionState());) in SearchCatCacheInternal because > there we expect the transaction to be in a valid state. I understand > that the transaction is in a broken state at that time but having a > testcase to hit the actual bug makes it easy to test the fix. I have not tried hitting the Assert(IsTransactionState() in SearchCatCacheInternal. To do that, I need to figure out hitting "incorrect binary data format in logical replication column" error in either slot_modify_data or slot_store_data so that we will enter the error callback slot_store_error_callback and then IsTransactionState() should return false i.e. txn shouldn't be in TRANS_INPROGRESS. I'm not sure how to do these things. I also looked at the commits 42c80c696e9 and ddfc9cb05 that added Assert(IsTransactionState()); in SearchCatCacheInternal and RelationIdGetRelation for any relevant tests or discussions, but I couldn't find anything. Any further ideas in reproducing the issue? With Regards, Bharath Rupireddy. EnterpriseDB: http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления
От: Fujii Masao
Дата:
От: Bharath Rupireddy
Дата: