Top-Rated Free Essay
Preview

Evil Twins

Good Essays
616 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Evil Twins
EVIL TWINS

Evil twins is a commonly used phrase to describe a situation in which two
Elements, of the same name, are created in two different versions of the same directory element.

Evil twins are often created when two people add the same file to source control at the same time.clearcase allows this to happen because the element is actually referenced internally by its object id(OID) and not its name.

Ex:
DIR1@@/main/1 = => foo.c added
DIR1@@/main/2 = => foo.c rmnamed
DIR1@@/main/3 = => foo.c added

We can use cleartool find command to locate either FILE or DIRECTORY elements that may be evil twins.

1.when two files are found with the same name in two different versions of the directory, we can run the cleartool dump command to see if the files are in fact different elements.

Ex: foo.c ==> DIR1@@/main/1 foo.c ==> DIR1@@/main/3

If we suspect foo.c may have an evil twin, run the cleartool dump command for each file to obtain the object identifier (OID).

It is important to address evil twins in our configuration as soon as possible after discovering them,we have two ways to resolve the problem.

1. Rename one of the elements using the cleartool mv command.
2. Remove one of the elements using the cleartool rmelem command.

The best solution to control the creation of evil twins is to implement a pre-operational trigger during the mkelem/ add to source control operation.

The objective of the trigger would be to search the directory version tree for an element of the same name prior to creation of the new element.

The script used by the trigger will be required to look for two different files, with the same name, in two or more different versions of the same directory.

ECLIPSED FILES

CLEAR CASE ECLIPSE:

A VOB object that is not visible because another object with the same name is currently selected by the view.

The objects that become eclipsed most frequently are elements. An eclipsed element is created when it is obscured by a view-private file.

An eclipsed element is seen only in dynamic views. It’s basically when a view-private file/directory has the same name as an element in that same directory.

This event may occur when the dynamic view is not able to delete the local copy of the file after we have checked it in.

Views always display view-private items first. It often occurs when one or more developers are working in the same area adding new features to them.

An eclipsed file will be listed in a GUI window with a partially shadowed moon icon

The solution for resolving eclipsed objects is to rename or remove the local / view-private copy of the object that is obscuring the VOB copy.

WHAT IS “CHECKED OUT BUT REMOVED”

One of the most common error messages in ClearCase is when an element (file or directory) is "checked out but removed". From some graphical user interfaces (GUIs), the element even appears to be missing from the directory where the element is suppose to be located.

By executing "cleartool ls" from the command line, the element appears to exist yet removed.

For example:

$ clearcasetool ls is the command given and the output maybe

test.txt@@/main/CHECKEDOUT from /main/2[checkedout but removed]

This problem occurs if an element has been checked out and the checked out object is then deleted using Windows or UNIX/Linux commands (such as delete/rm or rmdir,). It is the reverse of the eclipsed file case.

The solution to this problem is to un-checkout the file or directory.

You May Also Find These Documents Helpful

  • Best Essays

    Nt1310 Unit 4 Exercise 1

    • 1486 Words
    • 6 Pages

    Phase 4: Uploading of files to HDFS: Both of the files, local index file and merged file are written to HDFS which avoid overhead involved in keeping the information at NameNode. NameNode keeps the information of merged file and index file only. File correlations are considered when storing the files to improve the access efficiency.…

    • 1486 Words
    • 6 Pages
    Best Essays
  • Satisfactory Essays

    The directory and file structure is not indexed, so searching within a directory with a large amount of files can be time consuming.…

    • 297 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    You can use the which. whereis, and locate utilities to search for files. The VIM…

    • 344 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 1 Study Guide

    • 846 Words
    • 4 Pages

    27. In a command line, what is the purpose of the ? in a filename?…

    • 846 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    NT1430

    • 1192 Words
    • 5 Pages

    The directory and file structure is not indexed, so searching within a directory with a large amount of files can be time consuming.…

    • 1192 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Nt1320 Unit 7

    • 2041 Words
    • 9 Pages

    2) Once the users have validated and approved the data model, it is transformed into a ________.…

    • 2041 Words
    • 9 Pages
    Good Essays
  • Powerful Essays

    11. How does Windows know which application to use to open a file when you double-click the file in Windows Explorer?…

    • 850 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    Ans : This matches any file with 2 characters, first being a lower case letter and the second being a number from 0 to 9…

    • 529 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    it 260 exam 1

    • 419 Words
    • 2 Pages

    It is the File Server element that conserves disk space by eliminating duplicate copies of...…

    • 419 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    An inode is actually an entry in a list of inodes referred to as the inode list. Each inode contains information about a file including (1) its inode number (a unique identification number), (2) the owner and group associated with the file, (3) the file type (for example, whether it is a regular file or a directory), (4) the file’s permission list, (5) the file creation, access and modification times, (6) the size of the file and (7) the disk address (i.e., the location on the disk where the file is physically stored).…

    • 706 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Prg 211 Array Structure

    • 788 Words
    • 4 Pages

    There is a need for revisions to the current Naming Scheme program which uses loops and input fields to develop the correct file name. The new structure uses multiple parallel arrays to gather the required data. Each variable in the array obtains one of five specific attributes of…

    • 788 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Riverpoint Writer

    • 3796 Words
    • 11 Pages

    I have placed a (2) behind the file name so we will know what version it is. If anyone does any other edits please use a version number. Thank you all very much for your contribution to this assignment.…

    • 3796 Words
    • 11 Pages
    Powerful Essays
  • Satisfactory Essays

    lolz

    • 480 Words
    • 4 Pages

    C. It will move the contents of temp1 from directory temp to temp1 of current directory and when finished it will erase the contents of temp1 of temp directory…

    • 480 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    It would be fun to have a twin. If I had a twin we would dress up as creepy dolls and scare people. Scaring people would be fun. Just imagine two creepy life size dolls chasing after you down a street. Creepy, right? Another reason I want a is to tell secrets to her. We look the same so it is like trusting yourself. We would also trick our parents by saying “I’m the other twin”, because then they would be confused. The last reason I would want a twin is so we could see how outfits looked like us. It would be like looking in a real life mirror. Being a twin would be fun. Do you think so?…

    • 128 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Creation

    • 539 Words
    • 3 Pages

    * The Good Mind and The Bad Mind are the two main characters who were twins born by a woman that inhabited the universe…

    • 539 Words
    • 3 Pages
    Satisfactory Essays