File tree 1 file changed +1
-1
lines changed
sdks/java/core/src/main/java/org/apache/beam/sdk/coders
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,6 @@ static void clearRowCoderCache() {
199
199
200
200
@ SuppressWarnings ("unchecked" )
201
201
public static Coder <Row > generate (Schema schema ) {
202
- String stackTrace = getStackTrace ();
203
202
UUID uuid = Preconditions .checkNotNull (schema .getUUID ());
204
203
// Avoid using computeIfAbsent which may cause issues with nested schemas.
205
204
synchronized (cacheLock ) {
@@ -268,6 +267,7 @@ public static Coder<Row> generate(Schema schema) {
268
267
| InvocationTargetException e ) {
269
268
throw new RuntimeException ("Unable to generate coder for schema " + schema , e );
270
269
}
270
+ String stackTrace = getStackTrace ();
271
271
GENERATED_CODERS .put (uuid , new WithStackTrace <>(rowCoder , stackTrace ));
272
272
LOG .debug (
273
273
"Created row coder for uuid {} with encoding positions {} at {}" ,
You can’t perform that action at this time.
0 commit comments