[PATCH] Refactor InsertUpdate.processRow (first) - REVIEW NEEDED

15 views
Skip to first unread message

Max Hofer

unread,
Aug 10, 2011, 3:39:53 PM8/10/11
to kettle-d...@googlegroups.com
Split functionality in simpler, smaller methods. Move those methods to
InsertUpdateMeta (code smell: InsertUpdate called a lot of methods loacted in
InsertUpdateMeta class). The InsertUpdateMeta class is used to fill
InsertUpdateData.

NOTE: review needed - some logging statements were disabled since we have no
access to the logging object in InsertUpdateMeta. Is there a way to log from the
InsertUpdateMeta class?


refactor-processRow.patch

Max

unread,
Aug 10, 2011, 3:52:54 PM8/10/11
to kettle-d...@googlegroups.com
I'm currently working on PDI-6522 (or at least I read into the existing code).

The patch above is my first try to refactor the existing code. Since I'm new I have
some general questions.

Is such code cleaning wanted?

Who is going to review the patches? Is there a kind of mentor for project newbies to whom we
can address general questions?

Now some specific questions to the patch:
* is there a kind of documentation for the threading model used in PDI? It is kind of hard to write
multi-threading code if the big-picture for it is missing.
* Logging: the patch disabled some logging information because the InsertUpdateMeta class
has no access to the logging object of InsertUpdate. Can the "MetaData" class also log?

kinds regards,
Max

Will Gorman

unread,
Aug 12, 2011, 2:13:46 PM8/12/11
to kettle-d...@googlegroups.com
Hi Max,

Thanks for this and the other patches as well! Please create JIRA
cases for each patch that you'd like to see incorporated into the
product, we'll make sure to review the code changes.

Will

> --
> You received this message because you are subscribed to the Google Groups
> "kettle-developers" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/kettle-developers/-/WNCwZIXmQlIJ.
> To post to this group, send email to kettle-d...@googlegroups.com.
> To unsubscribe from this group, send email to
> kettle-develop...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/kettle-developers?hl=en.
>

marc.ma...@fredhopper.com

unread,
Aug 12, 2011, 2:07:20 PM8/12/11
to kettle-d...@googlegroups.com
Thank you for your email. Unfortunately, I will be out of the office until 31/08/2011 and have limited access to email and telephone.

Please use one of the following contact options to get assistance:

- Contact Fredhopper Support at +31 20 530 111

- Visit https://www.fredhopper.com/learningcenter

You can always call me on my mobile phone, although I might not be able to answer it directly.

Kind regards,

Marc Marschner

Reply all
Reply to author
Forward
0 new messages