Repository navigation
[SPARK-2228] change hard coded EVENT_QUEUE_CAPACITY to spark.liveListenerBus.eventQueueCapacity - #1257
Closed
bxshi wants to merge 1 commit into
Closed
[SPARK-2228] change hard coded EVENT_QUEUE_CAPACITY to spark.liveListenerBus.eventQueueCapacity#1257bxshi wants to merge 1 commit into
bxshi wants to merge 1 commit into
Conversation
change hard coded EVENT_QUEUE_CAPACITY to spark.liveListenerBus.eventQueueCapacity
|
Can one of the admins verify this patch? |
Contributor
|
I commented on the JIRA, but I don't think this should be configurable. If someone overflows this buffer it means there program is not in steady state (the buffer is already really large at 10,000 events). We should instead improve the efficiency of the listeners so that programs cannot get into this state. |
Contributor
|
Okay we fixed the underlying issue in #1579 - would you mind closing this for now? |
Contributor
Author
|
Sure, np. Baoxu Shi(Dash) On Aug 25, 2014, at 3:26 PM, andrewor14 notifications@github.com wrote:
|
wangyum
added a commit
that referenced
this pull request
May 26, 2023
* Push down topK through join * format * fix * fix * Add tag * Update Optimizer.scala
MaxGekk
added a commit
to MaxGekk/spark
that referenced
this pull request
Nov 2, 2026
apache#1257) ### What changes were proposed in this pull request? This PR adds the row-path baseline for the rounding functions Varka is about to fuse, timing Spark's own evaluation before any of them fuses. Under the repository's rule, a change that speeds something up first merges a benchmark of the unchanged code, so the later change can be paired against it. **What it times.** `VarkaRoundingBaselineBenchmark` has 40 sections, each with no nulls and with one row in ten null, on Spark's row path and with Varka on: - `rint(x)`, and `floor(x)` and `ceil(x)` in LEGACY and in ANSI, over a `DOUBLE` column that stays inside the range the fast AVX2 form is exact in; - `floor(i)`, `round(i, -2)`, `bround(i, -2)` and `truncate(l, -3)` in LEGACY and in ANSI, and `round(l, -3)` in ANSI; - `factorial(k)` over `[-2, 22]`, and `width_bucket(x, -2.0E8, 2.0E8, 10)` with literal bounds; - `floor` and `ceil` over two wide columns. `xw`, under LEGACY, mixes ordinary values with NaN, both infinities, both zeros, and values past 2^51, 2^52 and the `BIGINT` range. `xwf`, under ANSI, does the same without the infinities or anything past 2^63, so ANSI never raises. Spark compiles each of these functions differently under ANSI, so every section that depends on the mode pins it and names it in its title. **Why the wide columns.** The planned fast form for `floor` and `ceil` on AVX2 hosts adds and subtracts 2^52, which is exact only below 2^51, so a batch holding a wider value goes back to the row engine. In both wide columns one row in four is wide, so every 4,096-row batch holds about a thousand wide values. Next to the in-range column, they time the two ends of that choice before the fast form picks its default. **What checks it.** `VarkaRoundingBaselineQueriesSuite` checks: - that each column reaches every region the javadoc names; - each section's result type, carried on the section itself; - that both sessions answer alike and with exactly the nulls each section expects; - Spark's LEGACY answers at the edges: NaN gives 0, and +/-infinity or a value past the long range gives `Long.MAX_VALUE` or `Long.MIN_VALUE`; - that ANSI over `xwf` raises nothing. No section fuses today, and the shared fuse check confirms that before any timing. **Results.** The results come from `benchmark.yml` on an AMD EPYC 7763 runner at 256 and 128 bits. They are committed to this branch, with their provenance, as a follow-up commit before merge. ### Why are the changes needed? Varka is about to fuse `rint`, `floor`, `ceil`, the integral `round`, `bround` and `truncate`, `factorial` and `width_bucket`. Without a committed measurement of today's row path on the same runner, that work could not show what it speeds up, or what its fallback costs on wide data. ### Does this PR introduce _any_ user-facing change? No. It adds a test-only benchmark, its suite, and plan text. ### How was this patch tested? - `VarkaRoundingBaselineQueriesSuite` passes. The benchmark's dry run passes its fuse check on all 40 sections. - A `/code-review high`, then two medium rounds on the fixes, found and fixed: mode-dependent sections that ran in whatever mode the session defaulted to; a tie value past the stated bound; expectations tied to section order; wide data timed under LEGACY only; and two sections that measured nothing. - Error Prone, lint-java, lint-scala, the plan lint and the quote check are clean. The PR Build and the option matrix run on this head. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (Opus 5.5)
MaxGekk
pushed a commit
to MaxGekk/spark
that referenced
this pull request
Nov 2, 2026
VarkaRoundingBaselineBenchmark (apache#1257) passed its sections' boolean fuses flag to requireBaseline, whose last parameter became a Fusion class in apache#1240 and apache#1258 while apache#1257 was open. apache#1257's Build ran on its older base, so master has not compiled sql's tests since it merged. A row-path baseline lists no section as fusing, so each section expects NONE, and one a later row marks as fusing expects WHOLE. Generated-by: Claude Code (Opus 5.5) (cherry picked from commit cb56b26)
github-actions Bot
pushed a commit
to MaxGekk/spark
that referenced
this pull request
Nov 5, 2026
…e#1350) ### What changes were proposed in this pull request? `VarkaRoundingBaselineBenchmark` merged in apache#1257 without its runner results. This commit adds them: Spark's row path against Varka on an AMD EPYC 7763 GitHub runner, at the runner's own 256-bit vectors and at 128 bits (`-XX:MaxVectorSize=16`). The four files, in `sql/core/benchmarks/`, follow the layout of the other baselines: - `VarkaRoundingBaselineBenchmark-jdk25-runner-epyc7763-results.txt` and its `-provenance.txt` (benchmark run 41939401101, 256 bits); - `VarkaRoundingBaselineBenchmark-jdk25-runner-epyc7763-128bit-results.txt` and its `-provenance.txt` (run 41939588739, 128 bits). Both runs measured master at 50b4fe9. Each provenance file names the run, the commit, the JDK, the kernel, the CPU and the datapath probe. The two runs passed the benchmark's fuse check, so every section ran in the class its list expects. The results files are the workflow's artifacts, unedited. PLAN.md's row 344 no longer says the results are "not yet run". It names the two runs. ### Why are the changes needed? A baseline is the figure a kernel is measured against. Row 344 landed its baseline benchmark without the numbers, so nothing could yet say how much the rounding family gains or what the row engine costs on this host. ### Does this PR introduce _any_ user-facing change? No. It adds measurement files and one plan sentence. ### How was this patch tested? - Each file is the artifact of its run, moved to the committed name; I checked that both results files are plain ASCII and have 480 lines each. - The plan and quote checks and the pre-commit rules pass. - No code changes, so no suites ran. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (Sonnet 5.5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
change hard coded EVENT_QUEUE_CAPACITY to spark.liveListenerBus.eventQueueCapacity
https://issues.apache.org/jira/browse/SPARK-2228