Skip to content

SPARK-1806 (addendum) Use non-deprecated methods in Mesos 0.18 - #920

Closed
srowen wants to merge 1 commit into
apache:masterfrom
srowen:SPARK-1806
Closed

srowen wants to merge 1 commit into
apache:masterfrom
srowen:SPARK-1806

Conversation

@srowen

@srowen srowen commented May 30, 2014

Copy link
Copy Markdown
Member

The update to Mesos 0.18 caused some deprecation warnings in the build. The change to the non-deprecated version is straightforward as it emulates what the Mesos driver does with the deprecated method anyway (https://github.com/apache/mesos/blob/c5aa1dd22155d79c5a7c33076319299a40fd63b3/src/sched/sched.cpp#L1354)

@AmplabJenkins

Copy link
Copy Markdown

Merged build triggered.

@AmplabJenkins

Copy link
Copy Markdown

Merged build started.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished.

@AmplabJenkins

Copy link
Copy Markdown

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15305/

@rxin

rxin commented May 31, 2014

Copy link
Copy Markdown
Contributor

Sean - do you mind fixing the style violation (100 char wide lines)? Thanks.

@AmplabJenkins

Copy link
Copy Markdown

Merged build triggered.

@srowen

srowen commented May 31, 2014

Copy link
Copy Markdown
Member Author

Oops, yes, coming up now.

@AmplabJenkins

Copy link
Copy Markdown

Merged build started.

@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/15319/

@pwendell

Copy link
Copy Markdown
Contributor

Hey Sean - do you know if this will break Spark for Mesos 15/16/17? When did the introduce the newer API? We should definitely update this... I'm a bit concerned about bumping users to the bleeding edge of Mesos to run Spark 1.1... so the question is just regarding timing.

@srowen

srowen commented May 31, 2014

Copy link
Copy Markdown
Member Author

Yes looks like it was introduced in 0.17.0: apache/mesos@b609c85

I see, I thought the intent was to require 0.18+ since Spark requires it in HEAD. If not yeah I'll close it but wouldn't there be other compatibility issues of this form?

@pwendell

Copy link
Copy Markdown
Contributor

So I've actually been assuming that users running older versions of Mesos just change mesos.version in the build and package Spark, so in my head I've sort of coupled "whether we compile against mesos X" and "whether users can run on mesos X" as the same thing.

But as long as mesos keeps the IPC messages compatible (which I think they do) then it really shouldn't matter whether we require compiling against the newest client. Let me just check with them about this.

@pwendell

pwendell commented Jun 4, 2014

Copy link
Copy Markdown
Contributor

Hey - I still haven't heard back from the Mesos folks, by I'm fairly sure they are wire-compatible across client library versions. If not, this patch can be trivially reverted. So let's not hold this up. I'll go ahead and merge it now.

@asfgit asfgit closed this in 4ca0625 Jun 4, 2014
@srowen
srowen deleted the SPARK-1806 branch June 5, 2014 09:56
pdeyhim pushed a commit to pdeyhim/spark-1 that referenced this pull request Jun 25, 2014
The update to Mesos 0.18 caused some deprecation warnings in the build. The change to the non-deprecated version is straightforward as it emulates what the Mesos driver does with the deprecated method anyway (https://github.com/apache/mesos/blob/c5aa1dd22155d79c5a7c33076319299a40fd63b3/src/sched/sched.cpp#L1354)

Author: Sean Owen <sowen@cloudera.com>

Closes apache#920 from srowen/SPARK-1806 and squashes the following commits:

8d76b6a [Sean Owen] Use non-deprecated methods in Mesos 0.18
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
The update to Mesos 0.18 caused some deprecation warnings in the build. The change to the non-deprecated version is straightforward as it emulates what the Mesos driver does with the deprecated method anyway (https://github.com/apache/mesos/blob/c5aa1dd22155d79c5a7c33076319299a40fd63b3/src/sched/sched.cpp#L1354)

Author: Sean Owen <sowen@cloudera.com>

Closes apache#920 from srowen/SPARK-1806 and squashes the following commits:

8d76b6a [Sean Owen] Use non-deprecated methods in Mesos 0.18
wangyum pushed a commit that referenced this pull request May 26, 2023
* [CARMEL-5939]Delete the temp local block file after reading it

* [CARMEL-5939]Delete the temp local block file after reading it

* [CARMEL-5939]Delete the temp local block file after reading it

* Bug fix

* Add another configuration to control this feature

* Fix UT

* Fix UT
MaxGekk added a commit to MaxGekk/spark that referenced this pull request Oct 18, 2026
…kernel (apache#920)

### What changes were proposed in this pull request?

A new row of milestone 7, 389, with its record `sql/varka/plans/m7/VARKA-389.md` and its line in the plan's table. No code changes.

The milestone's close regenerated `VarkaColdStartBenchmark` on the milestone 7 build and found the kernel warm-up's verdict RELEASED, the 60-second deadline reached with no verdict, on every projection shape of the benchmark (16 to 100 entries of `greatest(add_months(d, k), date_add(d, k), last_day(d))`), on the development laptop and on two GitHub-hosted runners alike, 51 of 71 verdicts each, where the file of 28 September on the same laptop had all 71 COMPILED. The kernels the warm-up gave up on run 1.3x to 2x slower per query at 100K rows and 2.5x to 4x slower at 2M rows than on 28 September, with averages that spike to seconds. The record states those numbers against the committed files, what the verdict measures (an allocation probe over the kernel's calls, not a compile check), the first reads (every method under HugeMethodLimit; each of the sixteen group methods at about 400 Vector API call sites against a call-site budget of 93, left there by the heavy-group exemption; C2 asked for all sixteen within seconds of the warm-up's start and out of nodes on one; VARKA-379's `guardedRange` on every output, which the first bisection step has already cleared), the investigation in order and six predictions registered before it runs.

**Update, 18 October, 14:40.** The row's record now names the cause and measures every fix option (`VARKA-389.md` 8.3 to 8.6). The cause is VARKA-295's Vector API template warm-up (apache#827, `aa457c3797b`, 15 October): the kernel's bytecode is identical before and after the regression, and in a JVM where vector code ran before the first warmed shape the warm-up's rounds deoptimise the already-compiled shared templates with `unstable_if` traps, leaving one decompile on each; a four-output group method inlines `IntVector.lanewise` six hundred times, C2 sums that decompile once per copy, crosses its cutoff of 201 and keeps 367 virtual calls, under which the vectors box. Measured on the 16-entry rung: the warm-up run at the shape cache's first build compiles the shape in 1.5 s; the warm-up off, 1.6 s; the JVM's recompilation cutoff and trap limit raised, 1.4 to 1.9 s; 100 rounds, still released; groups of one output, 2.4 to 3.3 s. The owner chooses the direction; the fix follows in its own pull request.

### Why are the changes needed?

A milestone's rows are what its issue mirror tracks, so a regression found by the close becomes a row before anything else is done about it. Milestone 7 does not close while this stands: its close pull request (apache#919) is held in draft and its tag moves to the commit that resolves this row.

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

No. A plan row and a task record.

### How was this patch tested?

The repository's pre-commit check on both files finds nothing, and the issue mirror's dry run (`python3 dev/varka_issues.py --plan sql/varka/plans/m7/PLAN.md`) lists the new row as the one issue to open.

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

Generated-by: Claude Code (Claude Opus 5.5)
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