mattcasters opened a new pull request, #7897:
URL: https://github.com/apache/hop/pull/7897

   ## What
   
   Stop console spam from `SWTException: Invalid thread access` when 
`GetFieldsExtension` runs on a pipeline worker thread (lineage design-graph 
fallback on transform finish).
   
   ## How
   
   - `TestingGuiPlugin.getStateMap` / `getCurrentUnitTest`: return `null` when 
not on the UI thread (`Display.getCurrent() == null`); catch `SWTException` as 
a last resort.
   - `LineageTransformSchemaEmitter`: catch `Exception` on design-graph field 
resolution (best-effort only).
   
   Design-time Get Fields / unit-test dataset overrides on the UI thread are 
unchanged.
   
   ## Test plan
   
   - [x] `TestingGuiPluginTweakTest` (includes off-UI-thread null check)
   - [x] `LineageTransformSchemaEmitterTest`
   - [ ] Manual: run a pipeline in Hop GUI → no GetFieldsExtension / Invalid 
thread access in Console
   
   Fixes #7896


-- 
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