From: Pavan D. <pav...@gm...> - 2013-07-11 09:44:27
|
Hello All, I noticed that a few newly added functions in tablecmds.c are named in a slightly wrong way: static void AtExecDistributeBy(Relation rel, DistributeBy *options); static void AtExecSubCluster(Relation rel, PGXCSubCluster *options); static void AtExecAddNode(Relation rel, List *options); static void AtExecDeleteNode(Relation rel, List *options); All of these functions should start with AT (instead of At). AT stands for Alter Table. Please see other functions in the same file and how they are named. Thanks, Pavan -- Pavan Deolasee http://www.linkedin.com/in/pavandeolasee |
From: Himpich, S. <Ste...@se...> - 2013-07-11 14:32:49
|
Hi there, while testing 1.1-beta, I ran into a lot of gtm crashes, "too many open files". I tracked it down to a missing fclose in gtm_backup.c, see diff / patch below. Greetings, Stefan Himpich ------------------------------------------------------------------------------------- --- postgres-xc/src/gtm/main/gtm_backup.c.orig 2013-07-11 16:16:24.751750009 +0200 +++ postgres-xc/src/gtm/main/gtm_backup.c 2013-07-11 16:11:48.707056211 +0200 @@ -27,6 +27,7 @@ if (!gtm_need_bkup) { GTM_RWLockRelease(>m_bkup_lock); + fclose(f); return; } gtm_need_bkup = FALSE; |
From: Koichi S. <koi...@gm...> - 2013-07-11 14:59:37
|
Thanks for pointing out. This will be committed both in REL1_1_STABLE and master. ---------- Koichi Suzuki 2013/7/11 Himpich, Stefan <Ste...@se...> > Hi there, > > while testing 1.1-beta, I ran into a lot of gtm crashes, "too many open > files". > > I tracked it down to a missing fclose in gtm_backup.c, see diff / patch > below. > > Greetings, > Stefan Himpich > > > > ------------------------------------------------------------------------------------- > --- postgres-xc/src/gtm/main/gtm_backup.c.orig 2013-07-11 > 16:16:24.751750009 +0200 > +++ postgres-xc/src/gtm/main/gtm_backup.c 2013-07-11 > 16:11:48.707056211 +0200 > @@ -27,6 +27,7 @@ > if (!gtm_need_bkup) > { > GTM_RWLockRelease(>m_bkup_lock); > + fclose(f); > return; > } > gtm_need_bkup = FALSE; > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Postgres-xc-developers mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers > |
From: Koichi S. <koi...@gm...> - 2013-07-11 15:09:41
|
I reviewed the patch and found it is not sufficient. The problem is it opened the file with "w" mode even when it doesn't write. In this case, the control file will remain empty. Instead, we should have opened the file only when it writes. Will change the code with this regard. Regards; ---------- Koichi Suzuki 2013/7/11 Koichi Suzuki <koi...@gm...> > Thanks for pointing out. This will be committed both in REL1_1_STABLE > and master. > > > ---------- > Koichi Suzuki > > > 2013/7/11 Himpich, Stefan <Ste...@se...> > > Hi there, >> >> while testing 1.1-beta, I ran into a lot of gtm crashes, "too many open >> files". >> >> I tracked it down to a missing fclose in gtm_backup.c, see diff / patch >> below. >> >> Greetings, >> Stefan Himpich >> >> >> >> ------------------------------------------------------------------------------------- >> --- postgres-xc/src/gtm/main/gtm_backup.c.orig 2013-07-11 >> 16:16:24.751750009 +0200 >> +++ postgres-xc/src/gtm/main/gtm_backup.c 2013-07-11 >> 16:11:48.707056211 +0200 >> @@ -27,6 +27,7 @@ >> if (!gtm_need_bkup) >> { >> GTM_RWLockRelease(>m_bkup_lock); >> + fclose(f); >> return; >> } >> gtm_need_bkup = FALSE; >> >> >> ------------------------------------------------------------------------------ >> See everything from the browser to the database with AppDynamics >> Get end-to-end visibility with application monitoring from AppDynamics >> Isolate bottlenecks and diagnose root cause in seconds. >> Start your free trial of AppDynamics Pro today! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Postgres-xc-developers mailing list >> Pos...@li... >> https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers >> > > |