Update of /cvsroot/monetdb/MonetDB4/tests/BugReports/Tests
In directory 
sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv16691/MonetDB4/tests/BugReports/Tests

Added Files:
        no.073_s00.milS no.073_s01.milS no.089_s00.milS 
        no.089_s01.milS no.147.milS 
Removed Files:
        no.073_s00.milM no.073_s01.milM no.089_s00.milM 
        no.089_s01.milM no.147.milM 
Log Message:

(more) Mtest.py cleaning:
united extensions ".milM" & ".milS" into ".milS"
(they have been treated equally for a long time)


--- NEW FILE: no.073_s01.milS ---
var ab:=bat("ab");
var ba:=bat("ba");
ab.print();
ba.print();
ab.print();
quit();

--- no.073_s00.milM DELETED ---

--- NEW FILE: no.089_s01.milS ---
module(url);
bat("Server").print();
bat("Server2").print();
bat("Clients").print();
bat("Clients2").print();
quit();

--- no.089_s00.milM DELETED ---

--- no.147.milM DELETED ---

--- NEW FILE: no.073_s00.milS ---
# >Number:         73
# >Category:       Mserver
# >Synopsis:       original BAT unknown after renamed reverse BAT
# >Confidential:   no
# >Severity:       serious
# >Priority:       medium
# >Responsible:    boncz
# >State:          closed
# >Class:          sw-bug
# >Submitter-Id:   unknown
# >Arrival-Date:   Wed Nov  5 13:03:07 1997
# >Originator:     windhouw
# >Organization:
# >Release:        971007
# >Environment:
# 
# >Description:
# example:
# - creating a persisten BAT with name ab;
# - naming the reverse to ba;
# - restart the server;
# - trying to access the original ab gives the following error:
#   >!ERROR: GDKload: can not access ab.desc
#   >No such file or directory!ERROR: BATprintf: BAT expected
# - access to the reverse ba succeeds;
# - access to the original ab is now succesfull.
# ======
# OUTPUT
# ======
# ([EMAIL PROTECTED] 33) Mserver
# # Monet Database Server V4.00
# # Copyright (c) 1993-1997, CWI & SION.All rights reserved.
#  
# loaded;
# #-----------------------------------------#
# # module        | owner | usage_count     #
# #-----------------------------------------#
# [ "kernel",       "adm",  1               ]
# [ "arith",        "adm",  1               ]
# [ "bat",          "adm",  1               ]
# [ "algebra",      "adm",  1               ]
# [ "sys",          "adm",  1               ]
#  
# Try: modules;                - for other modules.
#      ls;                     - for persistent bat listing.
#      sigs("<module>")        - for available commands per module.
#      help("<command>")       - for help one-liner for a command.
#  
# #You are system administrator (adm)!
# >ab := new(int,str);
# >ab.rename("ab");
# >ab.persists(true);
# >ab.commit;
# >ba := ab.reverse;
# >ba.rename("ba");
# >ba.persists(true);
# >ba.commit;
# >ab.insert(1,"een");
# >ba.insert("twee",2);
# >ab.print;
# #-----------------#
# # int   | ba      #
# #-----------------#
# [ 1,      "een"   ]
# [ 2,      "twee"  ]
# >ba.print;
# #-----------------#
# # str   | ba      #
# #-----------------#
# [ "een",  1       ]
# [ "twee", 2       ]
# >commit;
# >quit;
# ([EMAIL PROTECTED] 34) Mserver
# # Monet Database Server V4.00
# # Copyright (c) 1993-1997, CWI & SION.All rights reserved.
#  
# loaded;
# #-----------------------------------------#
# # module        | owner | usage_count     #
# #-----------------------------------------#
# [ "kernel",       "adm",  1               ]
# [ "arith",        "adm",  1               ]
# [ "bat",          "adm",  1               ]
# [ "algebra",      "adm",  1               ]
# [ "sys",          "adm",  1               ]
#  
# Try: modules;                - for other modules.
#      ls;                     - for persistent bat listing.
#      sigs("<module>")        - for available commands per module.
#      help("<command>")       - for help one-liner for a command.
#  
# #You are system administrator (adm)!
# >ab.print;
# !ERROR: GDKload: can not access ab.desc
# No such file or directory!ERROR: BATprintf: BAT expected>
# >ba.print;
# #-----------------#
# # str   | ba      #
# #-----------------#
# [ "een",  1       ]
# [ "twee", 2       ]
# >ab.print;
# #-----------------#
# # int   | ba      #
# #-----------------#
# [ 1,      "een"   ]
# [ 2,      "twee"  ]

var ab := new(int,str);
ab.rename("ab");
ab.persists(true);
ab.commit();
var ba := ab.reverse();
ba.rename("ba");
ba.persists(true);
ba.commit();
ab.insert(1,"een");
ba.insert("twee",2);
ab.print();
ba.print();
commit();
quit();

--- NEW FILE: no.147.milS ---
# >Number:         147
# >Category:       Module_sys
# >Synopsis:       view_gdk_thread() crashes
# >Confidential:   no
# >Severity:       serious
# >Priority:       medium
# >Responsible:    mk (Martin Kersten)
# >State:          closed
# >Class:          sw-bug
# >Submitter-Id:   unknown
# >Arrival-Date:   Mon Mar  9 16:10:23 1998
# >Originator:     [EMAIL PROTECTED]
# >Organization:
# >Release:        980101
# >Environment:
# SunOS5.6 (GNU=OFF) & SunOS5.5 (GNU=ON)
# >Description:
# ================
# Test script:
# ----------------
# threads();
# view_gdk_thread().print();
# #1
# threadcnt(1);
# threads();
# view_gdk_thread().print();
# #2
# threadcnt(1);
# threads();
# view_gdk_thread().print();
# #3
# threadcnt(1);
# threads();
# view_gdk_thread().print();
# #4
# threadcnt(1);
# threads();
# view_gdk_thread().print();
# #5
# threadcnt(1);
# threads();
# view_gdk_thread().print();
# quit;
# 
# ================
# output
# ----------------
# [...]#You are system administrator (adm)!
# threads();
# #---------------------------------#
# # int   | thread                  #
# #---------------------------------#
# [ 1,      "Server"                ]
# [ 4,      "Interpreter"           ]
# [ 5,      "InternetServer"        ]
# view_gdk_thread().print();
# #---------------------------------#
# # int   | thread                  #
# #---------------------------------#
# [ 1,      "Server"                ]
# [ 4,      "Interpreter"           ]
# [ 5,      "InternetServer"        ]
# #1
# threadcnt(1);
# threads();
# #---------------------------------#
# # int   | thread                  #
# #---------------------------------#
# [ 1,      "Server"                ]
# [ 4,      "Interpreter"           ]
# [ 5,      "InternetServer"        ]
# view_gdk_thread().print();
# #---------------------------------#
# # int   | thread                  #
# #---------------------------------#
# [ 1,      "Server"                ]
# [ 4,      "Interpreter"           ]
# [ 5,      "InternetServer"        ]
# [ 7,      "Interpreter"           ]
# #2
# threadcnt(1);
# !ERROR: thisRequest: could not find itself
# Segmentation Fault (core dumped)
# 
# ================
# Discription:
# ----------------
# The error does not occur deterministically. Sometimes
# it takes more than 2 'threadcnt(1)` calls, until the
# error occurs. Sometimes the error does not occur at all.
# The error may also occur after a single 'threadcnt(x)`
# call with x>1.
# In general, the error occurs less often on SunS5.5 (GNU=ON)
# than on SunOS5.6 (GNU=OFF).
# 
#       stefan

setoid(oid(2000000));
module(alarm);
printf("#~BeginVariableOutput~#\n");threads();printf("#~EndVariableOutput~#\n");
printf("#~BeginVariableOutput~#\n");view_gdk_thread().print();printf("#~EndVariableOutput~#\n");
#1
threadcnt(1);
sleep(1);
printf("#~BeginVariableOutput~#\n");threads();printf("#~EndVariableOutput~#\n");
printf("#~BeginVariableOutput~#\n");view_gdk_thread().print();printf("#~EndVariableOutput~#\n");
#2
threadcnt(1);
sleep(1);
printf("#~BeginVariableOutput~#\n");threads();printf("#~EndVariableOutput~#\n");
printf("#~BeginVariableOutput~#\n");view_gdk_thread().print();printf("#~EndVariableOutput~#\n");
#3
threadcnt(1);
sleep(1);
printf("#~BeginVariableOutput~#\n");threads();printf("#~EndVariableOutput~#\n");
printf("#~BeginVariableOutput~#\n");view_gdk_thread().print();printf("#~EndVariableOutput~#\n");
#4
threadcnt(1);
sleep(1);
printf("#~BeginVariableOutput~#\n");threads();printf("#~EndVariableOutput~#\n");
printf("#~BeginVariableOutput~#\n");view_gdk_thread().print();printf("#~EndVariableOutput~#\n");
#5
threadcnt(1);
sleep(1);
printf("#~BeginVariableOutput~#\n");threads();printf("#~EndVariableOutput~#\n");
printf("#~BeginVariableOutput~#\n");view_gdk_thread().print();printf("#~EndVariableOutput~#\n");
#6
threadcnt(1);
sleep(1);
printf("#~BeginVariableOutput~#\n");threads();printf("#~EndVariableOutput~#\n");
printf("#~BeginVariableOutput~#\n");view_gdk_thread().print();printf("#~EndVariableOutput~#\n");
#7
threadcnt(1);
sleep(1);
printf("#~BeginVariableOutput~#\n");threads();printf("#~EndVariableOutput~#\n");
printf("#~BeginVariableOutput~#\n");view_gdk_thread().print();printf("#~EndVariableOutput~#\n");
#8
threadcnt(1);
sleep(1);
printf("#~BeginVariableOutput~#\n");threads();printf("#~EndVariableOutput~#\n");
printf("#~BeginVariableOutput~#\n");view_gdk_thread().print();printf("#~EndVariableOutput~#\n");
#9
threadcnt(-1);
sleep(1);
printf("#~BeginVariableOutput~#\n");threads();printf("#~EndVariableOutput~#\n");
printf("#~BeginVariableOutput~#\n");view_gdk_thread().print();printf("#~EndVariableOutput~#\n");
#8
threadcnt(-1);
sleep(1);
printf("#~BeginVariableOutput~#\n");threads();printf("#~EndVariableOutput~#\n");
printf("#~BeginVariableOutput~#\n");view_gdk_thread().print();printf("#~EndVariableOutput~#\n");
#7
threadcnt(-1);
sleep(1);
printf("#~BeginVariableOutput~#\n");threads();printf("#~EndVariableOutput~#\n");
printf("#~BeginVariableOutput~#\n");view_gdk_thread().print();printf("#~EndVariableOutput~#\n");
#6
threadcnt(-1);
sleep(1);
printf("#~BeginVariableOutput~#\n");threads();printf("#~EndVariableOutput~#\n");
printf("#~BeginVariableOutput~#\n");view_gdk_thread().print();printf("#~EndVariableOutput~#\n");
#5
threadcnt(-1);
sleep(1);
printf("#~BeginVariableOutput~#\n");threads();printf("#~EndVariableOutput~#\n");
printf("#~BeginVariableOutput~#\n");view_gdk_thread().print();printf("#~EndVariableOutput~#\n");
#4
threadcnt(-1);
sleep(1);
printf("#~BeginVariableOutput~#\n");threads();printf("#~EndVariableOutput~#\n");
printf("#~BeginVariableOutput~#\n");view_gdk_thread().print();printf("#~EndVariableOutput~#\n");
#3
threadcnt(-1);
sleep(1);
printf("#~BeginVariableOutput~#\n");threads();printf("#~EndVariableOutput~#\n");
printf("#~BeginVariableOutput~#\n");view_gdk_thread().print();printf("#~EndVariableOutput~#\n");
#2
threadcnt(-1);
sleep(1);
printf("#~BeginVariableOutput~#\n");threads();printf("#~EndVariableOutput~#\n");
printf("#~BeginVariableOutput~#\n");view_gdk_thread().print();printf("#~EndVariableOutput~#\n");
quit();

--- NEW FILE: no.089_s00.milS ---
# >Number:         89
# >Category:       Mserver
# >Synopsis:       abort doesn't work right when BATs are unloaded
# >Confidential:   no
# >Severity:       serious
# >Priority:       high
# >Responsible:    boncz
# >State:          open
# >Class:          sw-bug
# >Submitter-Id:   unknown
# >Arrival-Date:   Mon Dec  1 14:49:04 1997
# >Originator:     windhouw
# >Organization:
# UvA
# >Release:        971007
# >Environment:
# 
# >Description:
# The following problem occurs:
# - I'm running a "transaction";
# - I abort the transaction;
# - the updates and inserts seems to be reversed;
# - I quit Mserver and restart it;
# - the updates and inserts are back again.
# 
# It seems to be that BATs that are swapped out of
# memory, don't take part in the abort.
# 
# I replayed this scene by explicitly swapping the BAT
# to disk:
# #You are system administrator (adm)!
# >module(url);
# >Server := new(oid,url);
# >Server.persists(true);
# >Server.rename("Server");
# >Server.insert(oid(1),url("http://www.cwi.nl/";)); 
# >Server.print;
# #---------------------------------#
# # oid   | Server                  #
# #---------------------------------#
# [ [EMAIL PROTECTED],    http://www.cwi.nl/      ]
# >Server.unload;
# >abort;
# >Server.print;
# #-----------------#
# # oid   | Server  #
# #-----------------#
# ... QUIT & RESTART ...
# #You are system administrator (adm)!
# >module(url);
# >Server.print;
# #---------------------------------#
# # oid   | Server                  #
# #---------------------------------#
# [ [EMAIL PROTECTED],    http://www.cwi.nl/      ]
# 
# As this problem frequently occurs while testing my
# application, my database gets inconsistent which
# leads to runtime errors in the odmg packages (like
# oid not found in the extent), while abort should
# give me the possibilty to get back to the previous
# consistent state of the database.

module(url);
var Server:= new(oid,url).persists(true).rename("Server");
var Server2:= new(oid,url).persists(true).rename("Server2");
var Clients:= new(oid,int).persists(true).rename("Clients");
var Clients2:= new(oid,int).persists(true).rename("Clients2");
commit();
Server.insert(oid(1),url("http://www.cwi.nl/";)); 
Server2.insert(oid(1),url("http://www.cwi.nl/";)); 
Clients.insert(oid(1),3); 
Clients2.insert(oid(1),3); 
Server.print();
Server2.print();
Clients.print();
Clients2.print();
dir("Server");
dir("Clients");
unload("Server");
unload("Clients");
dir("Server");
dir("Clients");
abort();
dir("Server");
dir("Clients");
Server.print();
Server2.print();
Clients.print();
Clients2.print();
quit();

--- no.089_s01.milM DELETED ---

--- no.073_s01.milM DELETED ---


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to