{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/12307","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12307/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12307/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12307/events","html_url":"https://github.com/elastic/elasticsearch/pull/12307","id":95582531,"number":12307,"title":"Remove broken `exec` build target, replace with something better.","user":{"login":"rmuir","id":504194,"avatar_url":"https://avatars.githubusercontent.com/u/504194?v=3","gravatar_id":"","url":"https://api.github.com/users/rmuir","html_url":"https://github.com/rmuir","followers_url":"https://api.github.com/users/rmuir/followers","following_url":"https://api.github.com/users/rmuir/following{/other_user}","gists_url":"https://api.github.com/users/rmuir/gists{/gist_id}","starred_url":"https://api.github.com/users/rmuir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmuir/subscriptions","organizations_url":"https://api.github.com/users/rmuir/orgs","repos_url":"https://api.github.com/users/rmuir/repos","events_url":"https://api.github.com/users/rmuir/events{/privacy}","received_events_url":"https://api.github.com/users/rmuir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/build","name":"build","color":"5319e7"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v2.0.0","name":"v2.0.0","color":"dddddd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-17T04:21:00Z","updated_at":"2015-07-17T15:00:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/12307","html_url":"https://github.com/elastic/elasticsearch/pull/12307","diff_url":"https://github.com/elastic/elasticsearch/pull/12307.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/12307.patch"},"body":"Currently this target is \"yet another way\" to run elasticsearch, which we can't maintain since its an untested configuration. Besides the fact that even if we fixed it, it would break all the time since its untested, It also has the problem that it doesnt ensure its running on the latest source code, doesn't configure any scratch space properly, won't work with securitymanager, list goes on.\r\n\r\nInstead, `mvn package -Drun -DskipTests` will run packaging, and then startup bin/elasticsearch(.bat) .. like integration tests, but in foreground).\r\n\r\nIt also enables debugger socket on port 8000, for people that like IDE debuggers and not system.out.println.\r\n\r\nIts a little slower to execute because of all the shading/RPM/DEB building going on in `package` but that is just what it is right now until that stuff is moved out.\r\n\r\nLogic is kind of in a wierd place, but thats also the point: its using our integration test logic that is in jenkins, so it is less likely to break.\r\n\r\nLooks like this:\r\n\r\n    ...\r\n    [INFO] Attaching created debian package /home/rmuir/workspace/elasticsearch/core/target/releases/elasticsearch-2.0.0-beta1-SNAPSHOT.deb\r\n    [INFO] \r\n    [INFO] --- maven-antrun-plugin:1.8:run (execute) @ elasticsearch ---\r\n    [INFO] Executing tasks\r\n    main:\r\n    stop-external-cluster:\r\n    start-foreground:\r\n       [delete] Deleting directory /home/rmuir/workspace/elasticsearch/core/target/integ-tests\r\n        [unzip] Expanding: /home/rmuir/workspace/elasticsearch/core/target/releases/elasticsearch-2.0.0-beta1-SNAPSHOT.zip into /home/rmuir/workspace/elasticsearch/core/target/integ-tests\r\n         [exec] Listening for transport dt_socket at address: 8000\r\n         [exec] [2015-07-17 00:16:12,421][INFO ][node                     ] [smoke_tester] version[2.0.0-beta1-SNAPSHOT], pid[22803], build[48bc49c/2015-07-17T04:15:40Z]\r\n         [exec] [2015-07-17 00:16:12,421][INFO ][node                     ] [smoke_tester] initializing ...\r\n         [exec] [2015-07-17 00:16:12,423][INFO ][plugins                  ] [smoke_tester] loaded [], sites []\r\n         [exec] [2015-07-17 00:16:12,493][INFO ][env                      ] [smoke_tester] using [1] data paths, mounts [[/ (/dev/disk/by-uuid/1b3a9e9c-3d5f-412e-be52-a7e64433e25d)]], net usable_space [205.5gb], net total_space [229.1gb], spins? [no], types [ext4]\r\n         [exec] [2015-07-17 00:16:13,631][INFO ][node                     ] [smoke_tester] initialized\r\n         [exec] [2015-07-17 00:16:13,631][INFO ][node                     ] [smoke_tester] starting ...\r\n         [exec] [2015-07-17 00:16:13,710][INFO ][transport                ] [smoke_tester] bound_address {inet[/127.0.0.1:9300]}, publish_address {inet[/127.0.0.1:9300]}\r\n         [exec] [2015-07-17 00:16:13,716][INFO ][discovery                ] [smoke_tester] prepare_release/yEiAMd9WTMmUMYBn1EUFtQ\r\n         [exec] [2015-07-17 00:16:16,736][INFO ][cluster.service          ] [smoke_tester] new_master [smoke_tester][yEiAMd9WTMmUMYBn1EUFtQ][beast][inet[/127.0.0.1:9300]], reason: zen-disco-join(elected_as_master, [0] joins received)\r\n         [exec] [2015-07-17 00:16:16,771][INFO ][http                     ] [smoke_tester] bound_address {inet[/127.0.0.1:9200]}, publish_address {inet[/127.0.0.1:9200]}\r\n         [exec] [2015-07-17 00:16:16,772][INFO ][node                     ] [smoke_tester] started\r\n         [exec] [2015-07-17 00:16:16,795][INFO ][gateway                  ] [smoke_tester] recovered [0] indices into cluster_state\r\n         ...."},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/122302866","html_url":"https://github.com/elastic/elasticsearch/pull/12307#issuecomment-122302866","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12307","id":122302866,"user":{"login":"dakrone","id":19060,"avatar_url":"https://avatars.githubusercontent.com/u/19060?v=3","gravatar_id":"","url":"https://api.github.com/users/dakrone","html_url":"https://github.com/dakrone","followers_url":"https://api.github.com/users/dakrone/followers","following_url":"https://api.github.com/users/dakrone/following{/other_user}","gists_url":"https://api.github.com/users/dakrone/gists{/gist_id}","starred_url":"https://api.github.com/users/dakrone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dakrone/subscriptions","organizations_url":"https://api.github.com/users/dakrone/orgs","repos_url":"https://api.github.com/users/dakrone/repos","events_url":"https://api.github.com/users/dakrone/events{/privacy}","received_events_url":"https://api.github.com/users/dakrone/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T15:00:56Z","updated_at":"2015-07-17T15:00:56Z","body":"That sounds very reasonable, thanks for the explanation!"}}