Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the 'log' object private in ActionBase and BaseTransformMeta #4348 #4354

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

nadment
Copy link
Contributor

@nadment nadment commented Sep 24, 2024

No description provided.

@github-actions github-actions bot added the Neo4j label Sep 24, 2024
@nadment nadment added Transforms and removed Neo4j labels Sep 24, 2024
@github-actions github-actions bot added the Neo4j label Sep 25, 2024
@nadment nadment marked this pull request as ready for review September 25, 2024 21:23
@nadment nadment changed the title Make the 'log' object private in the BaseTransformMeta #4348 Make the 'log' object private in ActionBase and BaseTransformMeta #4348 Sep 25, 2024
@hansva hansva marked this pull request as draft October 2, 2024 09:58
@hansva
Copy link
Contributor

hansva commented Oct 2, 2024

In the Integration tests I am getting error lines but they are not stopping the execution (also not getting a full stacktrace):
at org.apache.hop.pipeline.transforms.tableoutput.TableOutput.isRowLevel(TableOutput.java:431)
Will have to see if we can find the cause and if there are more of these

@hansva
Copy link
Contributor

hansva commented Oct 2, 2024

Ah, the issue is very obvious....

@Override
public boolean isRowLevel() {
return log.isRowLevel();
}

@nadment
Copy link
Contributor Author

nadment commented Oct 2, 2024

This case should neither compile nor pass unit tests, and yet I'm sure I've tested a complete and clean installation. A mystery?

@hansva
Copy link
Contributor

hansva commented Oct 2, 2024

sorry the link is coming from the master branch which does not have your changes yet.
the actual code is.

  @Override
  public boolean isRowLevel() {
    return isRowLevel();
  }

Which is valid code and compiles but it's just a never-ending self reference

@nadment
Copy link
Contributor Author

nadment commented Oct 2, 2024

I'm going to temporarily put the methods in final to find these cases.

@nadment
Copy link
Contributor Author

nadment commented Oct 2, 2024

TableOutput is the only case I've found with an infinite loop. There is a special case with Janino that overrides the logXXX() methods, but it seems OK.

@nadment nadment marked this pull request as ready for review October 2, 2024 20:02
@hansva hansva merged commit 16d9d35 into apache:main Oct 4, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Make the 'log' object private in ActionBAse and BaseTransformMeta
2 participants