{"action":"opened","number":2354,"pull_request":{"url":"https://api.github.com/repos/amplab/tachyon/pulls/2354","id":54710082,"html_url":"https://github.com/amplab/tachyon/pull/2354","diff_url":"https://github.com/amplab/tachyon/pull/2354.diff","patch_url":"https://github.com/amplab/tachyon/pull/2354.patch","issue_url":"https://api.github.com/repos/amplab/tachyon/issues/2354","number":2354,"state":"open","locked":false,"title":"[TACHYON-1469] S3UnderStorageCluster integration test fail","user":{"login":"luoli523","id":525390,"avatar_url":"https://avatars.githubusercontent.com/u/525390?v=3","gravatar_id":"","url":"https://api.github.com/users/luoli523","html_url":"https://github.com/luoli523","followers_url":"https://api.github.com/users/luoli523/followers","following_url":"https://api.github.com/users/luoli523/following{/other_user}","gists_url":"https://api.github.com/users/luoli523/gists{/gist_id}","starred_url":"https://api.github.com/users/luoli523/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luoli523/subscriptions","organizations_url":"https://api.github.com/users/luoli523/orgs","repos_url":"https://api.github.com/users/luoli523/repos","events_url":"https://api.github.com/users/luoli523/events{/privacy}","received_events_url":"https://api.github.com/users/luoli523/received_events","type":"User","site_admin":false},"body":"when I run the S3UnderStorageCluster integration test using below command, \r\n\r\n```shell\r\nmvn clean -Dtest=UnderStorageSystemInterfaceIntegrationTest -DfailIfNoTests=false test -Ps3Test\r\n```\r\n\r\nthe test will fail:\r\n\r\n```\r\n-------------------------------------------------------\r\n T E S T S\r\n-------------------------------------------------------\r\nRunning tachyon.underfs.UnderStorageSystemInterfaceIntegrationTest\r\nTests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.594 sec <<< FAILURE!\r\ntachyon.underfs.UnderStorageSystemInterfaceIntegrationTest  Time elapsed: 0.594 sec  <<< ERROR!\r\njava.lang.IllegalArgumentException: All eligible Under File Systems were unable to create an instance for the given path: s3n://luolis3first/d9a94bf2-04c8-4e21-8b78-3e03e1f30d90/journal6997639942459671163\r\njava.lang.RuntimeException: Invalid configuration key fs.s3n.awsAccessKeyId\r\n\r\n\tat tachyon.underfs.UnderFileSystemRegistry.create(UnderFileSystemRegistry.java:132)\r\n\tat tachyon.underfs.UnderFileSystem.get(UnderFileSystem.java:106)\r\n\tat tachyon.underfs.UnderFileSystem.get(UnderFileSystem.java:90)\r\n\tat tachyon.util.UnderFileSystemUtils.mkdirIfNotExists(UnderFileSystemUtils.java:54)\r\n\tat tachyon.master.AbstractLocalTachyonCluster.setupTest(AbstractLocalTachyonCluster.java:251)\r\n\tat tachyon.master.AbstractLocalTachyonCluster.start(AbstractLocalTachyonCluster.java:105)\r\n\tat tachyon.LocalTachyonClusterResource.apply(LocalTachyonClusterResource.java:167)\r\n\tat org.junit.rules.RunRules.applyAll(RunRules.java:26)\r\n\tat org.junit.rules.RunRules.<init>(RunRules.java:15)\r\n```\r\n\r\nLook into the code, I found this is because:\r\n\r\nThe integration TestRule LocalTachyonClusterResource will start a LocalTachyonCluster before every case start, LocalTachyonCluster will setup the test environment, including create some test directory on the S3 bucket, the problem is when create the directory on S3 bucket, the LocalTachyonCluster still don't know the accessKey and accesSecretKey and bucket config in the pom file. the configs in pom are in the System properties and don't know by the tachyonConf instance used by the LocalTachyonCluster.\r\n\r\n# Note\r\n\r\nAfter this fix, the case may still fail because of blow:\r\n\r\n```\r\nTests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 43.54 sec <<< FAILURE!\r\ntachyon.underfs.UnderStorageSystemInterfaceIntegrationTest  Time elapsed: 43.54 sec  <<< ERROR!\r\njava.lang.RuntimeException: Failed to start cluster. Timed out waiting for master to serve web\r\n\tat tachyon.master.AbstractLocalTachyonCluster.waitAndCheckTimeout(AbstractLocalTachyonCluster.java:183)\r\n\tat tachyon.master.AbstractLocalTachyonCluster.waitForMasterReady(AbstractLocalTachyonCluster.java:126)\r\n\tat tachyon.master.AbstractLocalTachyonCluster.start(AbstractLocalTachyonCluster.java:107)\r\n\tat tachyon.LocalTachyonClusterResource.apply(LocalTachyonClusterResource.java:167)\r\n```\r\n\r\nThis is because before every case, the LocalTachyonCluster will start BlockMaster, FileSystemMaster..., these master should write journal to the S3 bucket. I run the case in Chinese, so the network latency will be the case of the timeout. If is still timeout when run in US, maybe should make the `AbstractLocalTachyonCluster.CLUSTER_READY_TIMEOUT_MS` larger.","created_at":"2015-12-29T08:33:54Z","updated_at":"2015-12-29T08:33:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d218fdc433b1d12963cab4b46916622b5f61e1f7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/amplab/tachyon/pulls/2354/commits","review_comments_url":"https://api.github.com/repos/amplab/tachyon/pulls/2354/comments","review_comment_url":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amplab/tachyon/issues/2354/comments","statuses_url":"https://api.github.com/repos/amplab/tachyon/statuses/272c639b5b3a5ddcedd9296a3e58144c9615727b","head":{"label":"luoli523:master","ref":"master","sha":"272c639b5b3a5ddcedd9296a3e58144c9615727b","user":{"login":"luoli523","id":525390,"avatar_url":"https://avatars.githubusercontent.com/u/525390?v=3","gravatar_id":"","url":"https://api.github.com/users/luoli523","html_url":"https://github.com/luoli523","followers_url":"https://api.github.com/users/luoli523/followers","following_url":"https://api.github.com/users/luoli523/following{/other_user}","gists_url":"https://api.github.com/users/luoli523/gists{/gist_id}","starred_url":"https://api.github.com/users/luoli523/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luoli523/subscriptions","organizations_url":"https://api.github.com/users/luoli523/orgs","repos_url":"https://api.github.com/users/luoli523/repos","events_url":"https://api.github.com/users/luoli523/events{/privacy}","received_events_url":"https://api.github.com/users/luoli523/received_events","type":"User","site_admin":false},"repo":{"id":38763997,"name":"tachyon","full_name":"luoli523/tachyon","owner":{"login":"luoli523","id":525390,"avatar_url":"https://avatars.githubusercontent.com/u/525390?v=3","gravatar_id":"","url":"https://api.github.com/users/luoli523","html_url":"https://github.com/luoli523","followers_url":"https://api.github.com/users/luoli523/followers","following_url":"https://api.github.com/users/luoli523/following{/other_user}","gists_url":"https://api.github.com/users/luoli523/gists{/gist_id}","starred_url":"https://api.github.com/users/luoli523/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luoli523/subscriptions","organizations_url":"https://api.github.com/users/luoli523/orgs","repos_url":"https://api.github.com/users/luoli523/repos","events_url":"https://api.github.com/users/luoli523/events{/privacy}","received_events_url":"https://api.github.com/users/luoli523/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/luoli523/tachyon","description":" A Reliable Memory Centric Distributed Storage System","fork":true,"url":"https://api.github.com/repos/luoli523/tachyon","forks_url":"https://api.github.com/repos/luoli523/tachyon/forks","keys_url":"https://api.github.com/repos/luoli523/tachyon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/luoli523/tachyon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/luoli523/tachyon/teams","hooks_url":"https://api.github.com/repos/luoli523/tachyon/hooks","issue_events_url":"https://api.github.com/repos/luoli523/tachyon/issues/events{/number}","events_url":"https://api.github.com/repos/luoli523/tachyon/events","assignees_url":"https://api.github.com/repos/luoli523/tachyon/assignees{/user}","branches_url":"https://api.github.com/repos/luoli523/tachyon/branches{/branch}","tags_url":"https://api.github.com/repos/luoli523/tachyon/tags","blobs_url":"https://api.github.com/repos/luoli523/tachyon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/luoli523/tachyon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/luoli523/tachyon/git/refs{/sha}","trees_url":"https://api.github.com/repos/luoli523/tachyon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/luoli523/tachyon/statuses/{sha}","languages_url":"https://api.github.com/repos/luoli523/tachyon/languages","stargazers_url":"https://api.github.com/repos/luoli523/tachyon/stargazers","contributors_url":"https://api.github.com/repos/luoli523/tachyon/contributors","subscribers_url":"https://api.github.com/repos/luoli523/tachyon/subscribers","subscription_url":"https://api.github.com/repos/luoli523/tachyon/subscription","commits_url":"https://api.github.com/repos/luoli523/tachyon/commits{/sha}","git_commits_url":"https://api.github.com/repos/luoli523/tachyon/git/commits{/sha}","comments_url":"https://api.github.com/repos/luoli523/tachyon/comments{/number}","issue_comment_url":"https://api.github.com/repos/luoli523/tachyon/issues/comments{/number}","contents_url":"https://api.github.com/repos/luoli523/tachyon/contents/{+path}","compare_url":"https://api.github.com/repos/luoli523/tachyon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/luoli523/tachyon/merges","archive_url":"https://api.github.com/repos/luoli523/tachyon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/luoli523/tachyon/downloads","issues_url":"https://api.github.com/repos/luoli523/tachyon/issues{/number}","pulls_url":"https://api.github.com/repos/luoli523/tachyon/pulls{/number}","milestones_url":"https://api.github.com/repos/luoli523/tachyon/milestones{/number}","notifications_url":"https://api.github.com/repos/luoli523/tachyon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/luoli523/tachyon/labels{/name}","releases_url":"https://api.github.com/repos/luoli523/tachyon/releases{/id}","created_at":"2015-07-08T15:51:11Z","updated_at":"2015-07-08T15:51:13Z","pushed_at":"2015-12-29T08:26:55Z","git_url":"git://github.com/luoli523/tachyon.git","ssh_url":"git@github.com:luoli523/tachyon.git","clone_url":"https://github.com/luoli523/tachyon.git","svn_url":"https://github.com/luoli523/tachyon","homepage":"http://tachyon-project.org","size":34141,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"amplab:master","ref":"master","sha":"978de5d3c82824321d80fdd3c313fe2344b03643","user":{"login":"amplab","id":1438454,"avatar_url":"https://avatars.githubusercontent.com/u/1438454?v=3","gravatar_id":"","url":"https://api.github.com/users/amplab","html_url":"https://github.com/amplab","followers_url":"https://api.github.com/users/amplab/followers","following_url":"https://api.github.com/users/amplab/following{/other_user}","gists_url":"https://api.github.com/users/amplab/gists{/gist_id}","starred_url":"https://api.github.com/users/amplab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplab/subscriptions","organizations_url":"https://api.github.com/users/amplab/orgs","repos_url":"https://api.github.com/users/amplab/repos","events_url":"https://api.github.com/users/amplab/events{/privacy}","received_events_url":"https://api.github.com/users/amplab/received_events","type":"Organization","site_admin":false},"repo":{"id":7276954,"name":"tachyon","full_name":"amplab/tachyon","owner":{"login":"amplab","id":1438454,"avatar_url":"https://avatars.githubusercontent.com/u/1438454?v=3","gravatar_id":"","url":"https://api.github.com/users/amplab","html_url":"https://github.com/amplab","followers_url":"https://api.github.com/users/amplab/followers","following_url":"https://api.github.com/users/amplab/following{/other_user}","gists_url":"https://api.github.com/users/amplab/gists{/gist_id}","starred_url":"https://api.github.com/users/amplab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplab/subscriptions","organizations_url":"https://api.github.com/users/amplab/orgs","repos_url":"https://api.github.com/users/amplab/repos","events_url":"https://api.github.com/users/amplab/events{/privacy}","received_events_url":"https://api.github.com/users/amplab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/amplab/tachyon","description":"Memory Centric Reliable Distributed Storage","fork":false,"url":"https://api.github.com/repos/amplab/tachyon","forks_url":"https://api.github.com/repos/amplab/tachyon/forks","keys_url":"https://api.github.com/repos/amplab/tachyon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amplab/tachyon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amplab/tachyon/teams","hooks_url":"https://api.github.com/repos/amplab/tachyon/hooks","issue_events_url":"https://api.github.com/repos/amplab/tachyon/issues/events{/number}","events_url":"https://api.github.com/repos/amplab/tachyon/events","assignees_url":"https://api.github.com/repos/amplab/tachyon/assignees{/user}","branches_url":"https://api.github.com/repos/amplab/tachyon/branches{/branch}","tags_url":"https://api.github.com/repos/amplab/tachyon/tags","blobs_url":"https://api.github.com/repos/amplab/tachyon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amplab/tachyon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amplab/tachyon/git/refs{/sha}","trees_url":"https://api.github.com/repos/amplab/tachyon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amplab/tachyon/statuses/{sha}","languages_url":"https://api.github.com/repos/amplab/tachyon/languages","stargazers_url":"https://api.github.com/repos/amplab/tachyon/stargazers","contributors_url":"https://api.github.com/repos/amplab/tachyon/contributors","subscribers_url":"https://api.github.com/repos/amplab/tachyon/subscribers","subscription_url":"https://api.github.com/repos/amplab/tachyon/subscription","commits_url":"https://api.github.com/repos/amplab/tachyon/commits{/sha}","git_commits_url":"https://api.github.com/repos/amplab/tachyon/git/commits{/sha}","comments_url":"https://api.github.com/repos/amplab/tachyon/comments{/number}","issue_comment_url":"https://api.github.com/repos/amplab/tachyon/issues/comments{/number}","contents_url":"https://api.github.com/repos/amplab/tachyon/contents/{+path}","compare_url":"https://api.github.com/repos/amplab/tachyon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amplab/tachyon/merges","archive_url":"https://api.github.com/repos/amplab/tachyon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amplab/tachyon/downloads","issues_url":"https://api.github.com/repos/amplab/tachyon/issues{/number}","pulls_url":"https://api.github.com/repos/amplab/tachyon/pulls{/number}","milestones_url":"https://api.github.com/repos/amplab/tachyon/milestones{/number}","notifications_url":"https://api.github.com/repos/amplab/tachyon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amplab/tachyon/labels{/name}","releases_url":"https://api.github.com/repos/amplab/tachyon/releases{/id}","created_at":"2012-12-21T17:43:46Z","updated_at":"2015-12-29T08:26:47Z","pushed_at":"2015-12-29T08:33:55Z","git_url":"git://github.com/amplab/tachyon.git","ssh_url":"git@github.com:amplab/tachyon.git","clone_url":"https://github.com/amplab/tachyon.git","svn_url":"https://github.com/amplab/tachyon","homepage":"http://tachyon-project.org","size":42373,"stargazers_count":1828,"watchers_count":1828,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":725,"mirror_url":null,"open_issues_count":27,"forks":725,"open_issues":27,"watchers":1828,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/2354"},"html":{"href":"https://github.com/amplab/tachyon/pull/2354"},"issue":{"href":"https://api.github.com/repos/amplab/tachyon/issues/2354"},"comments":{"href":"https://api.github.com/repos/amplab/tachyon/issues/2354/comments"},"review_comments":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/2354/comments"},"review_comment":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/2354/commits"},"statuses":{"href":"https://api.github.com/repos/amplab/tachyon/statuses/272c639b5b3a5ddcedd9296a3e58144c9615727b"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":9,"changed_files":2}}