[352] in Moira

home help back first fref pref prev next nref lref last post

Moira retrieve limits

daemon@ATHENA.MIT.EDU (Mark Rosenstein)
Thu Dec 5 19:22:02 1991

Date: Thu, 5 Dec 91 19:21:11 -0500
From: Mark Rosenstein <mar@MIT.EDU>
To: moiradev@MIT.EDU, accounts@MIT.EDU, ops@MIT.EDU

A long standing bug in moira is that if you attempt a query that
returns too much data, the moira server hangs for a while, then
coredumps.  This hasn't been fixed because fixing it right involves a
re-write of the gdb layer to put the proper flow control in.

I just figured out a very quick workaround: I can limit the number of
tuples that can be returned from a query.  For example, I can set this
limit at 100, and then any query that returns less than 100 items will
work just as expected.  Any query with more than 100 items will return
the first 100 items, then report an error.  To be compatible with the
existing clients in the field, I have to use an already defined error,
so I chose MR_NO_MEM "Server ran out of memory".

Does this limit sound useful?  What value should I give it?  The
number of visible public mailing lists is 348.  I would pick 512 for a
limit.
					-Mark

home help back first fref pref prev next nref lref last post