Skip to content

SPARK-2166 - Listing of instances to be terminated before the prompt - #270

Closed
j-martin wants to merge 2 commits into
apache:masterfrom
j-martin:master
Closed

j-martin wants to merge 2 commits into
apache:masterfrom
j-martin:master

Conversation

@j-martin

Copy link
Copy Markdown

Will list the EC2 instances before detroying the cluster.
This was added because it can be scary to destroy EC2
instances without knowing which one will be impacted.

Will list the EC2 instances before detroying the cluster.
This was added because it can be scary to destroy EC2
instances without knowing which one will be impacted.
@AmplabJenkins

Copy link
Copy Markdown

Can one of the admins verify this patch?

@mateiz

mateiz commented Mar 30, 2014

Copy link
Copy Markdown
Contributor

Jenkins, test this please

@AmplabJenkins

Copy link
Copy Markdown

Merged build triggered. Build is starting -or- tests failed to complete.

@AmplabJenkins

Copy link
Copy Markdown

Merged build started. Build is starting -or- tests failed to complete.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. All automated tests passed.

@AmplabJenkins

Copy link
Copy Markdown

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13582/

Comment thread ec2/spark_ec2.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very minor - but it might be slightly nicer to write this using string interpolation and also just using two different print statements instead of putting a newline directly in there (since you'll get python's system-dependent line delimiter).

print "Are you sure you want to destroy the cluster %s?" % cluster_name
print "The following instances will be terminated:"

@pwendell

Copy link
Copy Markdown
Contributor

Made some minor comments. Overall, this seems like a great thing to have.

@pwendell

Copy link
Copy Markdown
Contributor

@j-martin one other thing. Would you mind creating a brief JIRA to describe this feature? You can just create an account on the site. Many people follow our issue tracker so we try to have JIRA's for new things:

https://issues.apache.org/jira/browse/SPARK

@j-martin

Copy link
Copy Markdown
Author

I created the issue. https://issues.apache.org/jira/browse/SPARK-2166

I will also apply the recommendations to the PR shortly.

@j-martin j-martin changed the title Listing of instances to be terminated before the prompt SPARK-2166 - Listing of instances to be terminated before the prompt Jun 17, 2014
@pwendell

Copy link
Copy Markdown
Contributor

@j-martin Seems like this doesn't merge cleanly. Do you mind up-merging it?

@pwendell

Copy link
Copy Markdown
Contributor

This was actually a pretty tough merge since we changed the spacing around a lot in spark_ec2 recently. I went ahead and manually dealt with the merge. I also made two minor changes on merge.

@asfgit asfgit closed this in 9cb64b2 Jun 23, 2014
pdeyhim pushed a commit to pdeyhim/spark-1 that referenced this pull request Jun 25, 2014
Will list the EC2 instances before detroying the cluster.
This was added because it can be scary to destroy EC2
instances without knowing which one will be impacted.

Author: Jean-Martin Archer <jeanmartin.archer@pulseenergy.com>

This patch had conflicts when merged, resolved by
Committer: Patrick Wendell <pwendell@gmail.com>

Closes apache#270 from j-martin/master and squashes the following commits:

826455f [Jean-Martin Archer] [SPARK-2611] Implementing recommendations
27b0a36 [Jean-Martin Archer] Listing of instances to be terminated before the prompt Will list the EC2 instances before detroying the cluster. This was added because it can be scary to destroy EC2 instances without knowing which one will be impacted.
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
Will list the EC2 instances before detroying the cluster.
This was added because it can be scary to destroy EC2
instances without knowing which one will be impacted.

Author: Jean-Martin Archer <jeanmartin.archer@pulseenergy.com>

This patch had conflicts when merged, resolved by
Committer: Patrick Wendell <pwendell@gmail.com>

Closes apache#270 from j-martin/master and squashes the following commits:

826455f [Jean-Martin Archer] [SPARK-2611] Implementing recommendations
27b0a36 [Jean-Martin Archer] Listing of instances to be terminated before the prompt Will list the EC2 instances before detroying the cluster. This was added because it can be scary to destroy EC2 instances without knowing which one will be impacted.
Igosuki pushed a commit to Adikteev/spark that referenced this pull request Jul 31, 2018
bzhaoopenstack pushed a commit to bzhaoopenstack/spark that referenced this pull request Sep 11, 2019
arjunshroff pushed a commit to arjunshroff/spark that referenced this pull request Nov 24, 2020
dongjoon-hyun added a commit that referenced this pull request Nov 4, 2026
### What changes were proposed in this pull request?

This PR aims to upgrade MariaDB Connector/J (`mariadb-java-client`) from 3.5.10 to 3.5.11.

- [3.5.10](https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.10) (2026-07-29) -> [3.5.11](https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.11) (2026-10-21)
- Full changelog: mariadb-corporation/mariadb-connector-j@3.5.10...3.5.11

### Why are the changes needed?

To fix the following open [Dependabot alerts](https://github.com/apache/spark/security/dependabot) against `org.mariadb.jdbc:mariadb-java-client` (affected: `>= 3.5.0, < 3.5.11`, patched: `3.5.11`):

- [#267](https://github.com/apache/spark/security/dependabot/267) (medium): [CVE-2026-119281](GHSA-grfq-r75j-rw9x) Server could switch `character_set_results` away from UTF-8 without the client noticing
- [#268](https://github.com/apache/spark/security/dependabot/268) (medium): [CVE-2026-119210](GHSA-fhx5-2xqw-2cgm) `LOAD DATA LOCAL INFILE` file check could be satisfied by text inside quoted identifiers, letting a malicious server read client files
- [#269](https://github.com/apache/spark/security/dependabot/269) (low): [CVE-2026-119280](GHSA-4jq2-8v3c-97w8) XA `recover()` trusted server-supplied gtrid and bqual lengths
- [#270](https://github.com/apache/spark/security/dependabot/270) (medium): [CVE-2026-119276](GHSA-h599-m3w5-9m7x) Rogue server can drive large heap allocations from server-declared lengths in OK packets

This release also contains other bug fixes, for example CONJ-1374 (redirect URL password partially logged when containing ``) and CONJ-1345 (`DatabaseMetaData#getURL()` exposes the database password since 3.5.10).

This is a patch upgrade within 3.5.x. The 4.0.0 release, which was published on the same day, is a major release that changes defaults (for example, `sslMode` defaults to `verify-full`), so it is not included here.

### Does this PR introduce _any_ user-facing change?

No. The dependency is used only in the `test` scope (`sql/core` and `connector/docker-integration-tests`), and the 3.5.11 POM declares no new runtime dependencies (all of them are optional, provided, or test).

### How was this patch tested?

Pass the CIs, and manually tested on JDK 21 as follows.

```
build/sbt -Pdocker-integration-tests \
  'sql/testOnly *MariaDBConnectionProviderSuite *ConnectionProviderSuite' \
  'docker-integration-tests/Test/compile'
```

- 17 tests passed, and the Docker integration test module compiles with the new version.
- Confirmed that `mariadb-java-client-3.5.11.jar` is on the `sql` test classpath via `show sql/Test/dependencyClasspath`.
- The Docker integration tests were not run locally.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Sonnet 5.5

Closes #60104 from dongjoon-hyun/SPARK-60889.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants