hazelcast / hazelcast-simulator

A tool for stress testing Hazelcast
Apache License 2.0
87 stars 74 forks source link

ugly error handling when unknown hz version #2196

Open pveentjer opened 10 months ago

pveentjer commented 10 months ago

I gave the HZ version 5.4-SNAPSHOT instead of 5.4.0-SNAPSHOT. And it gives the following very ugly stack trace.


INFO  11:05:25 [INFO] Scanning for projects...
INFO  11:05:25 [INFO] 
INFO  11:05:25 [INFO] ------------------< org.apache.maven:standalone-pom >-------------------
INFO  11:05:25 
INFO  11:05:25 [INFO] Building Maven Stub Project (No POM) 1
INFO  11:05:25 
INFO  11:05:25 [INFO] --------------------------------[ pom ]---------------------------------
INFO  11:05:25 
INFO  11:05:25 [INFO] 
INFO  11:05:25 [INFO] --- maven-dependency-plugin:3.2.0:get (default-cli) @ standalone-pom ---
INFO  11:05:25 
INFO  11:05:25 [INFO] Resolving com.hazelcast:hazelcast:jar:5.4-SNAPSHOT with transitive dependencies
INFO  11:05:25 Downloading from temp: https://oss.sonatype.org/content/repositories/snapshots/com/hazelcast/hazelcast/5.4-SNAPSHOT/maven-metadata.xml
INFO  11:05:26 Downloading from temp: https://oss.sonatype.org/content/repositories/snapshots/com/hazelcast/hazelcast/5.4-SNAPSHOT/hazelcast-5.4-SNAPSHOT.pom
INFO  11:05:26 [WARNING] The POM for com.hazelcast:hazelcast:jar:5.4-SNAPSHOT is missing, no dependency information available
INFO  11:05:26 
INFO  11:05:26 Downloading from temp: https://oss.sonatype.org/content/repositories/snapshots/com/hazelcast/hazelcast/5.4-SNAPSHOT/hazelcast-5.4-SNAPSHOT.jar
INFO  11:05:26 
INFO  11:05:27 [INFO] ------------------------------------------------------------------------
INFO  11:05:27 [INFO] BUILD FAILURE
INFO  11:05:27 
INFO  11:05:27 [INFO] ------------------------------------------------------------------------
INFO  11:05:27 
INFO  11:05:27 [INFO] Total time:  2.036 s
INFO  11:05:27 
INFO  11:05:27 [INFO] Finished at: 2024-02-02T11:05:27+02:00
INFO  11:05:27 [INFO] ------------------------------------------------------------------------
INFO  11:05:27 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.2.0:get (default-cli) on project standalone-pom: Couldn't download artifact: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact com.hazelcast:hazelcast:jar:5.4-SNAPSHOT in temp (https://oss.sonatype.org/content/repositories/snapshots) -> [Help 1]
INFO  11:05:27 [ERROR] 
INFO  11:05:27 
INFO  11:05:27 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
INFO  11:05:27 
INFO  11:05:27 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
INFO  11:05:27 
INFO  11:05:27 [ERROR] 
INFO  11:05:27 
INFO  11:05:27 [ERROR] For more information about the errors and possible solutions, please read the following articles:
INFO  11:05:27 
INFO  11:05:27 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
INFO  11:05:27 
[ERROR] Failed to download artifact com.hazelcast:hazelcast:5.4-SNAPSHOT
Traceback (most recent call last):
  File "/mnt/home/eng/Hazelcast/hazelcast-simulator/src/upload_hazelcast_jars.py", line 150, in <module>
    download(artifact_id, version, remote_repo)
  File "/mnt/home/eng/Hazelcast/hazelcast-simulator/src/upload_hazelcast_jars.py", line 58, in download
    raise Exception(f"Failed to download artifact {artifact}")
Exception: Failed to download artifact com.hazelcast:hazelcast:5.4-SNAPSHOT

FATAL 11:05:27 Failed to run Coordinator
com.hazelcast.simulator.utils.ScriptException: Failed to execute [/mnt/home/eng/Hazelcast/hazelcast-simulator/src/upload_hazelcast_jars.py "- {public_ip: 3.71.112.131, agent_index: '1', agent_port: '9000', ssh_options: -i
    key -o StrictHostKeyChecking=no -o ConnectTimeout=60, private_ip: 10.0.26.47,
  ssh_user: ubuntu}
- {public_ip: 3.79.148.227, agent_index: '2', agent_port: '9000', ssh_options: -i
    key -o StrictHostKeyChecking=no -o ConnectTimeout=60, private_ip: 10.0.26.19,
  ssh_user: ubuntu}
" "maven=5.4-SNAPSHOT" "hazelcast5" ].
        at com.hazelcast.simulator.utils.BashCommand.execute(BashCommand.java:145)
        at com.hazelcast.simulator.hazelcast5.Hazelcast5Driver.install(Hazelcast5Driver.java:197)
        at com.hazelcast.simulator.coordinator.Coordinator.installDriver(Coordinator.java:246)
        at com.hazelcast.simulator.coordinator.Coordinator.start(Coordinator.java:106)
        at com.hazelcast.simulator.coordinator.CoordinatorCli.run(CoordinatorCli.java:238)
        at com.hazelcast.simulator.coordinator.CoordinatorCli.main(CoordinatorCli.java:420)

2024-```