Accumulo
  1. Accumulo
  2. ACCUMULO-2392

SimpleMacIT should document which MAC it is using

    Details

    • Type: Test Test
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:
      None

      Description

      Tests that extend SimpleMacIT could be using the same instance. However, it's hard to tell, especially after multiple runs, which test directory corresponds to a particular execution. SimpleMacIT should output to the maven execution enough information about which instance it is running on to debug it. If it's a MAC instance (which it always is, currently), it can log the directory name.

        Activity

        Hide
        Christopher Tubbs added a comment -

        The current way to find this is to check the test output file for client debugging information to find the zookeeper port or something like that, and cross reference to the zoo.cfg in the MAC directory:

        find target/mini-tests/*SimpleMacIT/ -name '*.cfg' | xargs grep <port>
        
        Show
        Christopher Tubbs added a comment - The current way to find this is to check the test output file for client debugging information to find the zookeeper port or something like that, and cross reference to the zoo.cfg in the MAC directory: find target/mini-tests/*SimpleMacIT/ -name '*.cfg' | xargs grep <port>
        Hide
        ASF subversion and git services added a comment -

        Commit dda2fb06ba6452d5af6bda3809684ec2f3413022 in accumulo's branch refs/heads/1.6.0-SNAPSHOT from Christopher Tubbs
        [ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=dda2fb0 ]

        ACCUMULO-2392 Log the MAC directory used by a test

        Add a log message to SimpleMacIT to inform which MiniAccumuloCluster instance is
        in use for each SimpleMacIT test, to make it easier to debug a failed test.

        Additionally, renamed a trivial helper method to more accurately reflect its
        purpose.

        Show
        ASF subversion and git services added a comment - Commit dda2fb06ba6452d5af6bda3809684ec2f3413022 in accumulo's branch refs/heads/1.6.0-SNAPSHOT from Christopher Tubbs [ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=dda2fb0 ] ACCUMULO-2392 Log the MAC directory used by a test Add a log message to SimpleMacIT to inform which MiniAccumuloCluster instance is in use for each SimpleMacIT test, to make it easier to debug a failed test. Additionally, renamed a trivial helper method to more accurately reflect its purpose.
        Hide
        ASF subversion and git services added a comment -

        Commit dda2fb06ba6452d5af6bda3809684ec2f3413022 in accumulo's branch refs/heads/master from Christopher Tubbs
        [ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=dda2fb0 ]

        ACCUMULO-2392 Log the MAC directory used by a test

        Add a log message to SimpleMacIT to inform which MiniAccumuloCluster instance is
        in use for each SimpleMacIT test, to make it easier to debug a failed test.

        Additionally, renamed a trivial helper method to more accurately reflect its
        purpose.

        Show
        ASF subversion and git services added a comment - Commit dda2fb06ba6452d5af6bda3809684ec2f3413022 in accumulo's branch refs/heads/master from Christopher Tubbs [ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=dda2fb0 ] ACCUMULO-2392 Log the MAC directory used by a test Add a log message to SimpleMacIT to inform which MiniAccumuloCluster instance is in use for each SimpleMacIT test, to make it easier to debug a failed test. Additionally, renamed a trivial helper method to more accurately reflect its purpose.

          People

          • Assignee:
            Christopher Tubbs
            Reporter:
            Christopher Tubbs
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development