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

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