Regarding XFS interface errors

58 views
Skip to first unread message

SATWIKA ADUSUMILLI

unread,
Aug 28, 2023, 12:50:12 PM8/28/23
to NITCbase Users
The created relations are not shown in the XFS interface while running schema. It's showing relation doesn't exist even if it is already cretaed. I am not able to create or drop any table. Can anyone please check the mistake with it??
xfs interface.pdf

Amal Prakash

unread,
Aug 28, 2023, 1:35:42 PM8/28/23
to NITCbase Users
You should first create the Relation before using the schema command on it.

If the issue still persists, it might be because of a corrupt disk.

Try running fdisk command in xfs interface then exit, and then re-running the create table command followed by the schema command in xfs interface.

Murali Krishnan

unread,
Aug 29, 2023, 1:14:11 AM8/29/23
to nitcbas...@googlegroups.com
Just one point.  When you run the disk simulator with your code,  a run copy of the actual disk is created and all actions of your code are done on the run copy.
Only when you exit your run time environment, the data you have written to the disk actually gets committed to the actual disk from the run copy.  This is done by the finalizer (destructor) of the class disk.cpp during exit (~disk() function). 
However, xfs-interface always works with the actual disk and doesn't look at the run copy.     
Hence, if your program creates a relation, it is created only on the run copy.    If you concurrently run xfs-interface,  you won't see the disk update.  as the run copy is still alive and not committed to the actual disk.
(The converse also holds true;  while you are running your dbms run-time system, any update done using xfs-interface won't show up in the run copy.)   
Finally, if your program does not terminate gracefully (using the EXIT command of the front-end interface), the finalizer ~disk() may not run,  thus the run copy may not get committed back to the actual disk, and all your updates could be lost. 

--
You received this message because you are subscribed to the Google Groups "NITCbase Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nitcbase-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/nitcbase-users/1d3c8b1c-7e7d-47c2-a2df-257c688b42ean%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

SATWIKA ADUSUMILLI

unread,
Aug 29, 2023, 10:03:39 AM8/29/23
to Murali Krishnan, nitcbas...@googlegroups.com
Sir thank you so much for the help. I am able to get the answer now.

You received this message because you are subscribed to a topic in the Google Groups "NITCbase Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nitcbase-users/LiUOaEw3VrM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nitcbase-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/nitcbase-users/CAEp%2Bu%2ByaFGzSMzaNwFQ7oMMicxVjKE5m9oqQWY01hsHB9H9_%3Dg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages