apache / apache/beam

Need a SerializableThrowable for PAssert to capture the point of an assertion

Open
#18,339 0 comments 0 reactions 0 assignees View on GitHub
bug core java P3
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

For the regular Error class in Java, its stack trace is a transient attribute, so it's not serialized by any framework. We need a class that allows us to serialize these AssertionErrors to have them in PCollections.

Imported from Jira [BEAM-1898](https://issues.apache.org/jira/browse/BEAM-1898). Original Jira may contain additional context.
Reported by: pabloem.

Contributor guide

Open the contributing guide

Research direction

Start by locating PAssert and the existing throwable or assertion handling, then inspect how failures are placed in PCollections. Confirm how Java Error stack traces behave during serialization; done means AssertionErrors can be serialized while retaining the assertion point in the resulting PCollections.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.