smcmullan-ncirl commented on PR #37206:
URL: https://github.com/apache/spark/pull/37206#issuecomment-1195637664

   Thanks for all the analysis and effort. I think what @JoshRosen is 
describing in the last paragraph of his analysis is exactly what my application 
is doing.
   
   I have a custom ForeachWriter implementation class acting as a data sink on 
the write stream and I'm passing an instance of a statistics gathering class as 
an argument to the ForeachWriterImpl constructor. This statistics class has 
several Maps which have keys as statistic name and the value is a Spark 
accumulator.
   
   I think I have some defects in my application where the de-serialization of 
this statistics class instance on the executor is re-registering the 
accumulator in the Spark context as described in the analysis above.
   
   I will try to reorganize my code and see if I can stop the issue happening. 
If you need to see more details I can probably code up a sample application to 
show the construction of my production application


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to