Repository navigation
Conversation
|
Can one of the admins verify this patch? |
|
Jenkins, this is ok to test. |
There was a problem hiding this comment.
Can you also add reportError() so that this error gets reported to the driver? Its easier to debug when all the error gets reported to the driver.
|
QA tests have started for PR 1694. This patch merges cleanly. |
|
QA results for PR 1694: |
|
Thanks. |
|
@joyyoj I am just gonna merge this and deal with reportError later. |
…ad loop Author: joyyoj <sunshch@gmail.com> Closes #1694 from joyyoj/SPARK-2379 and squashes the following commits: d73790d [joyyoj] SPARK-2379 Fix the bug that streaming's receiver may fall into a dead loop 22e7821 [joyyoj] Merge remote-tracking branch 'apache/master' 3f4a602 [joyyoj] Merge remote-tracking branch 'remotes/apache/master' f4660c5 [joyyoj] [SPARK-1998] SparkFlumeEvent with body bigger than 1020 bytes are not read properly (cherry picked from commit b270309) Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
|
@tdas Thanks for reminding me to add reportError, i didn't notice your reply before. It's a good idea to add it in this patch. |
|
Well, I have merged this patch already, in an attempt to squeeze it in 1.1 release. If you open another patch to make the change, I can try squeezing that too. Thanks for detecting and fixing this bug! |
…ad loop Author: joyyoj <sunshch@gmail.com> Closes apache#1694 from joyyoj/SPARK-2379 and squashes the following commits: d73790d [joyyoj] SPARK-2379 Fix the bug that streaming's receiver may fall into a dead loop 22e7821 [joyyoj] Merge remote-tracking branch 'apache/master' 3f4a602 [joyyoj] Merge remote-tracking branch 'remotes/apache/master' f4660c5 [joyyoj] [SPARK-1998] SparkFlumeEvent with body bigger than 1020 bytes are not read properly
…e#1644 made stale (apache#1694) ### What changes were proposed in this pull request? This deletes one line of the option matrix's skip list, `sql/varka/matrix/skips.tsv`, and records the event in row 644 of the plan. The line says that the `VarkaGroupingBoundSuite` test "under the exact grouping no shape declines, and none falls back to the greedy grouping" fails under `driverOutputTable=false`. Since apache#1644 the test passes there, so the matrix fails the line as stale. ### Why are the changes needed? The option matrix fails on master. The skip list must name only tests that do fail: a listed test that passes fails its bin, so that the list does not hide a test. Every pull request's matrix that runs on master since apache#1644 fails this bin, as apache#1693's bin b135 did, and so does the next scheduled matrix of master. The local runs of the suite under `driverOutputTable=false` (`dev/varka_matrix.sh --module catalyst --config driverOutputTable=false --suites VarkaGroupingBoundSuite`): | Commit | Result | |---|---| | `a55f82c2427` (apache#1643) | the test passes; apache#1643 had deleted the line | | `26b24c75b1b` (apache#1644) | the test passes: stale line | | `6ec492b53cf` (master, apache#1692) | the test passes: stale line | | master with the line deleted | passes | apache#1643 deleted the line, because its coverage rows made the test pass. apache#1644 added the line back, because the test failed on its own base, which did not have apache#1643. Its refresh onto master merged without a conflict, and no matrix ran on the result. This is a stopgap. Row 644 of `sql/varka/plans/m8/PLAN.md` tracks this line: the test draws 60 compositions from the coverage table with a fixed seed, so each new coverage row draws them again, and the verdict under `driverOutputTable=false` follows whichever draw falls back. The next pull request that adds a coverage row can make the test fail again under this option. Row 644's fix makes the verdict not depend on the draw. This pull request adds the day's data point to the row. `skips.tsv` merges with git's union driver (`sql/varka/.gitattributes`). A branch that appends a line after this one in the `driverOutputTable=false` block can bring the deleted line back in a local merge with master, so check the block after such a merge. ### Does this PR introduce _any_ user-facing change? No. It changes only the test configuration of the option matrix. ### How was this patch tested? - The suite under `driverOutputTable=false`, with the line deleted, on the laptop: passes. - The local gate (`pre-pr.sh`): the regeneration of generated files, lint-java, Error Prone, lint-scala, the invariant and proof suites, and the push check. - `/code-review high` of the change: no bugs, 3 findings. Fixed: the pull request cites row 644 and adds the data point to it. Recorded here: the line can flip again (row 644), and the union merge driver can bring it back. - The option matrix of this pull request. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 5.5)
… draw (apache#1695) ### What changes were proposed in this pull request? This makes the verdict of one `VarkaGroupingBoundSuite` test under `driverOutputTable=false` not depend on the draw. The test is "under the exact grouping no shape declines, and none falls back to the greedy grouping". It is renamed to "... except once for a composition under the unrolled driver", because that is now what it holds. - The test excuses one fallback, and only for a coverage composition under the unrolled driver. Every other shape, and every other configuration, keeps the exact claim. - The draw's seed can be set with `-Dvarka.groupingBound.seed`. The default stays 20261001. - `sql/varka/matrix/skips.tsv`: the `methodByteBudget=0` line follows the rename. (The stale `driverOutputTable=false` line of the old name is already gone from master, with apache#1694.) - Row 644 of `sql/varka/plans/m8/PLAN.md` is closed with the cause. `sql/varka/plans/m9/SCOPE.md` item 139 files the emitter change that would remove the fallback. ### Why are the changes needed? The test draws 60 compositions from the coverage table with a fixed seed. So each new coverage row draws them again. Under `driverOutputTable=false` some draws fall back and some do not, so the option matrix failed the test or failed its skip line as stale. The cause is this. The suite compiles each composition with the greedy grouping. When a class is over a limit for the whole class, the compiler cuts the projection to the largest prefix whose class fits. The unrolled driver grows with every output, so after the cut a wide composition's masked driver is a few bytes under the 8000-byte method budget. The exact grouping can take one group more than the greedy grouping to save ops. Each group adds a loop call and an epilogue call to the driver, 52 bytes. The unrolled driver cannot split into stages (`VarkaLoopEmitter` returns early from `resizeStages` when the driver is not a table). So the size loop's `fallBack` drops the exact grouping, and the greedy class fits. Measured examples of the masked driver: | Seed, composition | Outputs | Greedy: groups, bytes | Exact: groups, bytes | |---|---|---|---| | 4, 43 | 95 | 49, 7954 | 50, 8006 | | 10, 55 | 100 | 46, 7991 | 47, 8043 | | 12, 4 | 91 | 44, 7951 | 45, 8003 | Seeds 23, 24 and 28 fall back in the same way: one group more, one fallback. Over 30 seeds (1,800 compositions), the defaults and `splitDriver=false` had no fallback. The driver from a table is about 20 bytes and 44 bytes a group, and it splits into stages, so there the driver never stops the exact grouping. The excuse is safe at one. After the exact grouping is dropped, the size loop starts again on the greedy grouping's options, so it then takes the greedy grouping's path. The corpus shapes are not cut to the greedy driver, so they get no excuse. The excuse names the family, not a composition by its index, as row 644 asks. ### Does this PR introduce _any_ user-facing change? No. It changes a test, the option matrix's skip list and the plans. The emitted classes do not change. ### How was this patch tested? - `dev/varka_matrix.sh --module catalyst --config driverOutputTable=false --config splitDriver=false --suites VarkaGroupingBoundSuite`, which runs the defaults too: passes on the default seed and on seeds 4 and 10. Seeds 12, 23, 24 and 28: pass under `driverOutputTable=false`. Before the change, all six seeds failed under `driverOutputTable=false`. - The same suite under `driverOutputTable=false` at `785367a44aa`, a head where composition 16 had fallen back: passes. - The local gate (`pre-pr.sh`): the regeneration of generated files (nothing changed), lint-java, Error Prone, lint-scala, the invariant and proof suites, the push check and the arm sweep. - `/code-review high`: 5 findings, all fixed in one round. The excuse was narrowed from every shape under both drivers that cannot split to one fallback for a composition under the unrolled driver. The seed became a property, and the row and item 139 name only what was observed. Row 644's text conflicts with apache#1694's edit of the same row. Whichever merges second keeps both notes. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 5.5)
No description provided.