Repository navigation
Log first k lines on unexpected snapshot getFiles actions - #1003
Merged
Merged
Conversation
added 3 commits
August 27, 2026 14:39
The CDF getFiles path already calls logFirstKLines before throwing; snapshot getFiles now does the same so unexpected NDJSON actions are easier to diagnose.
added 4 commits
August 27, 2026 16:12
chakankardb
reviewed
Aug 28, 2026
chakankardb
approved these changes
Aug 28, 2026
littlegrasscao
enabled auto-merge (squash)
August 28, 2026 19:53
2 tasks
littlegrasscao
added a commit
that referenced
this pull request
Sep 1, 2026
) * Log first k response lines on unexpected snapshot getFiles actions. The CDF getFiles path already calls logFirstKLines before throwing; snapshot getFiles now does the same so unexpected NDJSON actions are easier to diagnose. * Distinguish snapshot vs streaming getFiles in logFirstKLines labels. * Log first k lines on unexpected getCDFFiles actions. * Include expected parquet snapshot line types in getFiles error. * Include expected parquet line types in streaming getFiles and getCDFFiles errors. * Include request target URL and expected action types in unexpected-line errors. * Clarify unexpected-line errors start expecting actions from the 3rd line. * Simplify unexpected-line errors to expecting-but-got wording. --------- Co-authored-by: Sun Cao <sun.cao+data@databricks.com>
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.
Summary
getFilesnow callslogFirstKLinesbefore throwing on an unexpected NDJSON action, matching CDFgetFilesandgetMetadata.Test plan
getFilesstill succeeds on a normal parquet query response (protocol + metadata + add files).logFirstKLinesthen throwsIllegalStateException.