source: trunk/FACT++/dim/README_v19.txt@ 11177

Last change on this file since 11177 was 11121, checked in by tbretz, 14 years ago
Updated from v19r21 to v19r22
File size: 23.4 KB
Line 
1
2 DIM version 19.22 Release Notes
3
4Notes 1 and 2 for Unix Users only
5NOTE 1: In order to "make" DIM two environment variables should be set:
6 OS = one of {HP-UX, AIX, OSF1, Solaris, SunOS, LynxOS, Linux, Darwin}
7 DIMDIR = the path name of DIM's top level directory
8 The user should then go to DIM's top level directory and do:
9 > source .setup
10 > gmake all
11 Or, if there is no support for C++ on the machine:
12 > gmake CPP=no all
13
14NOTE 2: The Name Server (Dns), DID, servers and clients (if running in
15 background) should be started whith the output redirected to a
16 logfile ex:
17 Dns </dev/null >& dns.log &
18
19NOTE 3: The Version Number service provided by servers is now set to 1922.
20
2121/06/2011
22Changes for version 19.22:
23 - DIM servers would hang when tring to exit due to "Services already declared", if the user
24 exitHandler() didn't directly call exit (instead tried to exit later in the main program).
25 Fixed.
26 - Servers accept now also 'B' or 'V' as format, they are both equivalent to 'C'.
27 - In Linux when a server printed "Write timeout, disconecting from XXX", it didn't always
28 disconnect properly, so the client would not always reconnect afterwards. Fixed.
29
30
3131/05/2011
32Changes for version 19.21:
33 - Fixed a bug in DimRpcInfo: the timer for the timeout was started too late and sometimes the
34 RPC data was received in the meantime, so the timer was never stopped.
35
36
3704/05/2011
38Changes for version 19.20:
39 - Fixed a bug added in v19r18: The <server_name>/SERVICE_LIST was no longer reporting correctly
40 the disappearence of services (by a "-<service_name>" ). Fixed.
41
42
4327/04/2011
44Changes for version 19.19:
45 - Fixed a very very old (horrible) bug in dis.c and dns.c: there was a hardwired malloc(8),
46 which was only ok for 32 bit machines. It's amazing this didn't bring more trouble...
47
48
4907/04/2011
50Changes for version 19.18:
51 - The standard server service <server_name>/SERVICE_LIST had problems reporting the correct
52 information when used by several clients in paralel - fixed.
53
54
5511/03/2011
56Changes for version 19.17:
57 - The TCPIP "listen" backlog for a server was increased for all servers (including the DNS)
58 from 16 to the constant SOMAXCONN (128 on Linux at the moment, 200 on Windows ?)
59 - After a "fork" the DIM initialization sequence guided by semaphores was not correctly
60 handled, this made the forked children hang and not respond to DIM anymore - fixed.
61
62
6323/02/2011
64Changes for version 19.16:
65 - DimServer::stop() did not correctly clear the ServerName - fixed.
66 - The Linux DID now prints the DNS it is connected to in the title bar.
67
68
6920/12/2010
70Changes for version 19.15:
71 - Still fixing dis_stop_serving():
72 - The DNS sometimes gets a remove service message from a server, after the server has
73 closed the connection, this was not handled properly - fixed.
74 - Fixed yet another detail (variable not cleared) in the thread handling at dis_stop_serving().
75 - dtq.c now clears all timer_queues at dis_stop_serving()
76 - Added some protections in case of closed connections.
77
78
7910/12/2010
80Changes for version 19.14:
81 - Still fixing dis_stop_serving():
82 - Adedd pthread_join in linux to wait for threads to die
83 - the following dis_start_serving() would not reconnect to the DNS if the DNS connection
84 was pending (i.e. the DNS was stopped or restarted)
85
86
8706/12/2010
88Changes for version 19.13:
89 - Fixed a few compiler warnings in dis.c
90 - Added #ifndef PXI around some Windows setPriority calls
91 - dis_stop_serving() did not completely clean-up DIM so that another dis_start_serving()
92 could be done properly after for example a "fork()". Fixed.
93
94
9520/09/2010
96Changes for version 19.12:
97 - Fixed a bug added when removing warnings in v19r10 (dis.c and dns.c).
98
99
10007/06/2010
101Changes for version 19.11:
102 - Added some protections in update_service() in order to try to solve a DIP issue.
103 (related to very frequent updates of the same service in different threads)
104 - Added the possibility of defining timeouts for:
105 - DimBrowser::getServices
106 - DimBrowser::getServers
107 - DimBrowser::getServerServices
108 - DimBrowser::getServerClients
109 - Added the possibility of retrieving the time a command arrived:
110 - int dis_get_timestamp(int service_id, int *secs, int *millisecs) in C
111 - int DimCommand::getTimestamp() and int DimCommand::getTimestampMillisecs() in C++
112 - Added a "const" keyword to the "char *format" parameter in the constructors of
113 - DimService and DimCommand
114 - Added a call DimCommand::hasNext(), can be used when commands are queued.
115 - Fixed a memory leak when using DimService::setData and then dynamically deleting the
116 DimService
117
118
11917/02/2010
120Changes for version 19.10:
121 - Fixed a bug in the DNS related to the latest change (browsing for a single service name)
122 The DNS could crash when killing a server.
123 - Removed some compilation warnings
124
125
12604/01/2010
127Changes for version 19.09:
128 - Created two new functions: dis_set_debug_on() and dis_set_debug_off(), these
129 enable or disable printing a message per service update
130 - Tried to protect against:
131 - a service being deleted from the server while it is being updated
132 - a client unsubscribing from a service while it is being updated.
133 - Optimized the DNS when browsing for a service search pattern without wildcards
134 (i.e. browsing for a single service name)
135
136
13713/11/2009
138Changes for version 19.08:
139 - Since version v18r4 where dim_wait() was modified, dim_wait could hang in windows if
140 the wake_up event was triggered before dim_wait was called. Could affect smi++.
141 Fixed.
142 - Fixed a compilation bug in dis.c that affected some platforms.
143
144
14530/10/2009
146Changes for version 19.07:
147 - Some more bugs related to being able to publish to more that one DNS fixed.
148
149
15028/10/2009
151Changes for version 19.06:
152 - When opening DNS connections, when the DNS is not there, from a process that is at the
153 same time a client and a server only one pending connection was used now two separate
154 ones are created.
155 - Tried to fix a few more problems related to dis_stop_serving...
156
157
15826/10/2009
159Changes for version 19.05:
160 - dis_stop_serving had stopped working in version 19.4. So all servers that undeclared
161 all services and then tried to re-declare new ones would fail (corrupted server name).
162 Affected in particular the DimBridge
163
164
16527/08/2009
166Changes for version 19.04:
167 - Added the following functions:
168 Server part:
169 C - dis_get_n_clients(int service_id)
170 C++ - int DimService::getNClients()
171 Client part (C++ only):
172 DimClient::setNoDataCopy()
173 This will prevent any data copy in the client and the user should make
174 sure that the data received from DIM is not used outside the callback
175 in order to benefir from this feature.
176 - Fixed the Java DIM Jar file, it was wrong in the previous version.
177
178
17931/07/2009
180Changes for version 19.03:
181 - Removed some more compilation warnings.
182 - Fixed a bug in the DNS. The mechanism for retrieving the "SERVER_LIST" when
183 some server names were longer that 35 characters was very slow.
184
185
18606/07/2009
187Changes for version 19.02:
188 - Fixed a bug in the server part handling of RPCs, it created a memory leak.
189 It was using a separate thread to handle timeouts and there is no safe way to
190 kill a thread from outside. Fixed.
191 - the function dim_stop_thread() is now obsolete.
192 - Added the possibility to change the send and receive buffer sizes:
193 - int dim_set_write_buffer_size(int size)
194 - int dim_get_write_buffer_size()
195 - int dim_set_read_buffer_size(int size)
196 - int dim_get_read_buffer_size()
197 The default (and minimum) is 16384 bytes.
198 These calls should be done before any other DIM calls.
199 - Fixed a bug in the Java DimBrowser class (the format was not returned correctly)
200
20104/05/2009
202Changes for version 19.01:
203 - A server can now publish to more than one DNS.
204 To use an extra DNS:
205 - in "C":
206 long dnsid;
207 char extra_dns[128];
208 ...
209 dim_get_env_var("EXTRA_DNS_NODE", extra_dns, sizeof(extra_dns));
210 dnsid = dis_add_dns(extra_dns,0);
211 sprintf(name1,"NewService%d",i);
212 dis_add_service_dns(dnsid, name1, "I", &NewData, sizeof(NewData),
213 (void *)0, 0 );
214 dis_start_serving_dns(dnsid, "xx_new");
215
216 - in C++:
217 DimServerDns *newDns;
218 char *extraDns = 0;
219 DimService *new_servint;
220 ...
221 extraDns = DimUtil::getEnvVar("EXTRA_DNS_NODE");
222 if(extraDns)
223 newDns = new DimServerDns(extraDns, 0, "new_TEST");
224 ...
225 if(extraDns)
226 new_servint = new DimService(newDns, "new_TEST/INTVAL",ival);
227
228 - Removed all warnings from DIM sources so that it can be compiled with -Wall -Wextra on Linux
229 - Changed the makefiles so that the default on Linux is now 64 bits.
230 - The flag 32BITS=yes can be added in order to generate 32 bit code
231
232
23326/02/2009
234Changes for version 18.05:
235 - Made the callback for "DIS_DNS/SERVER_LIST" uninterruptible, so that two clients subscribing
236 would not get mixed up answers.
237 - The same for "<server>/SERVICE_LIST"
238 - Tryied to fix a DNS crash, introduced in v18r4 by releasing the connection when "informing clients".
239 - removed some "//" comments in "C"
240
241
24220/02/2009
243Changes for version 18.04:
244 - Changed the dim_wait() mechanism, so that it works for several threads in parallel:
245 - On Linux it was based on POSIX semaphores now it is based on POSIX "condition
246 variables"
247 - On Windows it was based on "Auto Reset Events" now it uses "Manual Resel "Events"
248 - The DNS should now correctly update the "DIS_DNS/SERVER_LIST" service. It used to report
249 a new server, even when the services already existed and the server was killed by the DNS.
250 (And never report it killed). It also didn't report correctly when a server went out of "ERROR"
251 (this is reported as a "+" as for a new server).
252
253
25405/02/2009
255Changes for version 18.03:
256 - The list of registered services in a server could get corrupted in some rare cases
257 making the server crash - fixed.
258 - If the DNS couldn't talk to a client it could sometimes hang - fixed.
259 - Java client modifications:
260 - DimUpdatedInfo was not working correctly - fixed in dim_jni.c.
261 - Implemented DimRpcInfo
262 - Changed the DimBroser class to use DimRpcInfo.
263 - Added a jdim.jar file in the jdim/classes directory of the DIM distribution
264
265
26615/01/2009
267Changes for version 18.02:
268 - Added the following functions:
269 - C++ Client
270 - int DimClient.getServerPid()
271 - Java Client
272 - int DimClient.getServerPid()
273 - String[] DimBrowser.getServers()
274 - String DimBrowser.getServerNode(String server)
275 - int DimBrowser.getServerPid(String server)
276
277
27809/01/2009
279Changes for version 18.01:
280 - Added in the distribution the Visual Studio 8 dlls and manifest. Otherwise
281 it would not work on most PCs.
282
283
28403/12/2008
285Changes for version 18.00:
286 - The Windows execulables and libraries are now built using Visual Studio 8
287 - Some changes added by GSI mainly in the Java Native Interface
288
289
29006/11/2008
291Changes for version 17.12:
292 - Client functionality:
293 - Added a new function dic_stop(), to close anything related to DIM
294 for a client
295 - Added the function dic_get_server_pid(). Similar to dic_get_server().
296 Can be executed in a callback to retrieve the pid of the current server
297 - DimBrowser Class:
298 - DimBrowser::getServices() used to create and destroy the DimRpc connection
299 to the Dns every time it was called. This was heavy if called in a loop.
300 Now the connection is maintained until the DimBrowser itself is destroyed.
301 - A new method DimBrowser::getNextServer(char *&server, char *&node, int *pid)
302 has been created. similar to the previous one but returns also the server pid.
303 - DNS
304 - The DNS was still doing some blocking write calls to servers or clients.
305 Now all write calls have a timeout and can not block forever.
306 - Linux DID
307 - The "Subscribe" button was subscribing to services with update rate of 10 seconds.
308 This was misleading, the users could think the server was calling update_service
309 when it wasn't.
310 Now there are two Subscribe buttons ("on change" or "Update rate of 10 seconds").
311 - DimDridge
312 - Accepts an extra flag "-copy" which provokes an internal copy of the data.
313
314
31508/09/2008
316Changes for version 17.11:
317 - Some DIM Processes, servers or clients could enter a loop taking 100 % CPU
318 time in some rare occasions, fixed.
319 - Added some protections when removing services in the DimBridge.
320
321
32230/08/2008
323Changes for version 17.10:
324 - Some DIM Processes, servers or clients would not reconnect when the DNS was
325 restarted. Fixed two cause:
326 - Some processes in Linux were stuck reading from the DNS socket
327 - Some others "forgot" to set a timer under very special conditions
328 - Changed some of the DNS debug messages to be more explicit.
329
330
33121/07/2008
332Changes for version 17.09:
333 - DIM error messages were not being flushed when the output was redirected
334 to a logfile, fixed.
335
336
33718/07/2008
338Changes for version 17.08:
339 - Sometimes a server or a client could do a read on a sockect that had just
340 been closed which left them hanging forever - fixed.
341
342
34301/07/2008
344Changes for version 17.07:
345 - The DimTimer was sometimes not started when the constructor was called
346 with a time argument.
347 - Clients could not connect to more than 1024 servers - fixed.
348 (if the machine allows more than 1024 connections)
349
350
35130/06/2008
352Changes for version 17.06:
353 - Corrected the makefile for Darwin, now the number of accepted connections is
354 increased to 8192 only for Linux.
355 - Fixed a bug in the DimTimer, it used to accept to be re-started, but then crashed
356 at destruction time if not stopped the same number of times. Now it can not be
357 re-started.
358 - The Dns used to ask servers to re-register at regular intervals when they were not
359 sending their watchdog messages (i.e. they were in "ERROR", red in DID). Now the
360 DNS only asks once (unless they answer). This could cause the DNS to hang if
361 servers were in ERROR for a long time.
362 - The Dns now accepts a command line parameter: -d to print debug messages.
363 - The clients were not handling properly the case when they could contact the DNS
364 but then they could not contact the server that the DNS gave them (either because
365 of a firewall or because the server run on an inaccessible network). In this case
366 the clients would timeout trying to contact the server for each service and kept
367 asking the DNS the server coordinates over and over again. Now the clients keep
368 a list on unreacheable servers, so they don't try to contact the server for each
369 service and only ask the DNS again with an increasing interval that goes from 10
370 seconds to 2 minutes maximum.
371 - The server now issues an error message if the format string is too long.
372 - Linux DID
373 - Removed the command "Kill ALL Servers", it was too dangerous
374 - Now the list of nodes in "View Servers by Node" is in alphabetical order and
375 in lowercase.
376
377
37830/04/2008
379Changes for version 17.05:
380 - In Linux in some cases a SIGPIPE was generated. Normally the DIM library sets
381 the behaviour of SIGPIPE to ignored, but if another library or main program
382 changes the SIGPIPE behaviour, then the application could exit when the SIGPIPE
383 was generated. Fixed - on Linux now the function send with flag MSG_NOSIGNAL
384 is used in oder to avoid generating SIGPIPE.
385
386
387
3884/04/2008
389Changes for version 17.04:
390 - Sometimes processes (servers or clients) would hang when the DNS was restarted.
391 This was due to a strange (Windows?) feature, by which a connect could succeed
392 after a connection was closed (and reported) on the other side. Fixed.
393
394
395
39627/03/2008
397Changes for version 17.03:
398 - Can now make DID for 64 bits by making DIM using:
399 gmake X64=yes all
400 - Increased the size of the Hash tables for the servers and the DNS.
401
402
403
40420/02/2008
405Changes for version 17.02:
406 - Fixed the Java DimTimer - stop() didn't work
407 Required changing dim_jni.c as well as the java part
408 - Fixed DIM for Darwin - had stopped working
409
410
411
41220/01/2008
413Changes for version 17.01:
414 - The Java API now works on 64 bit machines, Thanks to Joern Adamczewski.
415 Please use:
416 gmake JDIM=yes all
417 - Linux executables are now compiled/linked on slc4 (32 bits).
418 - Big changes in the DimRpcs both client and server part. Tere were bugs
419 related to the handling of timeouts.
420 Unfortunatelly all applications using RPCs need to be re-linked.
421
422
423
424-----------------------------------------------------------------------------------------
425Previous version history:
426
42707/12/2007
428Changes for version 16.14:
429 - Now by default All DIM processes are ready to accept up to 8192 connections, both
430 in Linux and Windows. Although in Linux for this to be effective the machine system
431 limits must allow more than 1024 descriptors/open files per process.
432 - Fixed a little memory leak in tokenstring.cxx
433 - And a little compilation bug for some platforms in tcpip.c
434
435
43615/05/2007
437Changes for version 16.13:
438 - If DIM_HOST_NODE is defined when starting up a server, a DIM client will now try
439 two network interfaces in order to talk to that server and only give up if they both
440 fail. First it will try the ip name or ip address specified by the server using
441 DIM_HOST_NODE, if that fails it will try the ip address of the default interface
442 retrieved by the server using gethostname (and gethostbyname).
443 The changes basically affect the case in which the DIM_HOST_NODE given to the servers
444 is specified as IP address instad of an IP name. Otherwise this mechanism was already
445 working.
446
447
4483/05/2007
449Changes for version 16.12:
450 - The Java version did not exit properly when main() terminated - fixed.
451
452
45325/04/2007
454Changes for version 16.11:
455 - On Linux the timeout to detect a lost connections (unplugged ethernet cable
456 or machine reboot) was too long, around 15 minutes - Fixed.
457 On Linux the KEEPALIVE feature is now used instead of a regular socket write,
458 all other platforms should work as before.
459
460
46121/02/2007
462Changes for version 16.10:
463 - Found a bug in dis_stop_serving: one socket connection was not closed - fixed.
464 - Implemented a new environment variable for the DNS: DIM_DNS_ACCEPTED_NODES
465 Can receive a list on nodes or domains separated by commas.
466 If the DNS receives a connection from a node not in this list, it will
467 reject it and kill the server or client requesting it.
468 - Fixed some C++ warnings.
469
470
47119/01/2007
472Changes for version 16.9:
473 - The modifications done in version 16.8 have introduced a bug:
474 - DIM servers would not behave properly (exit) when receiving a kill command
475 from the DNS (for duplicated services, not allowed host names or manual "kill")
476 This is now fixed.
477
478
47930/10/2006
480Changes for version 16.8:
481 - Modified dis_stop_serving() and DimServer::stop() to completely stop DIM:
482 - Stop also the DIM threads.
483 - Release all allocated memory
484 - Allow a different port number when re-starting.
485
486
48711/07/2006
488Changes for version 16.7:
489 - Prepared for increasing the number of open connections per process
490 (On Linux still requires changing some parameters and recompiling the Dns)
491 - Fixed one error and several warnings for gcc 4.
492
493
49411/05/2006
495Changes for version 16.6:
496 - Sometimes a server or client would crash while exiting if the DNS was not running.
497 Fixed.
498 - Fixed the reporting of some ERROR messages on Windows (used to report error "0")
499 - Allowed dim_send_command to receive instead of -dns <node_name>
500 -dns <node_name>[:<port_number>]
501
502
50301/05/2006
504Changes for version 16.5:
505 - Big Spring Cleanup. Removed most warnings. Can now be compiled on
506 Windows with Warning Level 3 and on Linux with -Wall
507 (still not working for -ansi -pedantic...)
508 - When trying to access a server in a different network (i.e. not reacheable)
509 a client (for example DID) would take very very long to timeout - fixed.
510 - Added two new sets of functions that allow setting the DIM_DNS_NODE separately
511 for a server and a client in the same process:
512 - int dis_set_dns_node(char *node)
513 - int dis_get_dns_node(char *node)
514 - int dis_set_dns_port(int port)
515 - int dis_get_dns_port()
516
517 - int dic_set_dns_node(char *node)
518 - int dic_get_dns_node(char *node)
519 - int dic_set_dns_port(int port)
520 - int dic_get_dns_port()
521 These routines should be used instead of the equivalent ones starting with "dim_"
522 since these set the same DIM_DNS_NODE/port for both Server and client parts of a
523 process.
524 - Adapted the C++ equivalents (DimClient::setDnsNode, etc. and DimServer::setDnsNode,
525 etc.) to use the new routines, so they are now independent.
526 Adapted also the Java equivalents.
527 - Fixed DimBridge to use the new routines.
528 - Fixed a bug in DID that made it crash sometimes at startup (and also when the DNS
529 restarted)!
530 - Found some very interesting features of DIM:
531 - In a node with two ethernet interfaces (so connected to two networks):
532 - The DNS will answer to servers and client on both networks, only its server
533 part - DIS_DNS (the one that answers to DID and DimBrowser requests) would
534 in principle answer only to one of the networks (in principle the default
535 interface* but can be changed by setting the environment variable "DIM_HOST_NODE").
536 - But, in fact, if the DNS or any server is started with the environment variable
537 DIM_HOST_NODE set to the interface that is not the default* one. Than both the
538 DNS (including the server part) and the DIM servers will be accessible from both
539 networks. For example DID will work fine on both networks.
540 * The command "hostname" will return the name of the default network interface.
541
542 Note: As a result of inserting new functions the DIM shared library entry points have
543 changed, so all DIM Servers/Clients should be relinked (in particular in Linux).
544
545
54620/04/2006
547Changes for version 16.4:
548 - Optimized the DNS for providing the list or running servers dynamically
549 by subscribing to the service "DIS_DNS/SERVER_LIST"
550
551
55207/04/2006
553Changes for version 16.3:
554 - Upgraded to work on LynxOS Version 4.
555 - Updated makefile for INTEL platform
556 - Updated some ifdefs based on the existence of __Lynx__
557
558
55910/03/2006
560Changes for version 16.2:
561 - Increased the listen queue. To avoid "Connection Refused" messages from servers
562 or from the DNS.
563
564
56528/02/2006
566Changes for version 16.1:
567 - Fixed the NO_THREADS option for LINUX, it had stopped working.
568 - DimInfo::getData() could return an invalid pointer if called before connecting
569 to the server (or discovering the server did not exist). Fixed
570 (it now returns 0 in this case).
571
572
57309/11/2005
574Changes for version 16.0:
575 - Consolidated the new timer handling mechanism, should be much more precise.
576 - Fixed the RPC handling. Used to be based on timming assumptions.
577 Now uses a safe protocol to make sure the server is connected before sending
578 an RPC request.
579 - Included in the distribution some performance measurements and a benchmark
580 server and client. Sources in src/benchmark executables in /bin for windows
581 and /linux for linux.
582 Usage:
583 benchServer <message_size_in_bytes> <number_of_services>
584 benchClient
585 benchClient will run for a while and print the measurement results.
586
587Please check the Manual for more information at:
588 http://www.cern.ch/dim
Note: See TracBrowser for help on using the repository browser.