uranusjr commented on code in PR #77249:
URL: https://github.com/apache/airflow/pull/77249#discussion_r4688512231


##########
java-sdk/sdk/src/main/kotlin/org/apache/airflow/sdk/execution/Frame.kt:
##########
@@ -64,6 +76,34 @@ object Frame {
       REQUIRED_NULLABLE_REQUESTS.forEach { addMixIn(it, 
KeepNullFields::class.java) }
     }
 
+  /**
+   * Encodes values that task code hands to Airflow, using every Jackson module
+   * on the classpath and rejecting objects that have no properties to encode.
+   */
+  private val userValueMapper: ObjectMapper by lazy {
+    mapper.copy().apply {
+      registerModule(SimpleModule().setSerializerModifier(RejectEmptyBeans))
+      findAndRegisterModules()

Review Comment:
   This fails atomically on any bad module. Use `findModules()` + per-module 
try instead.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to