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

Fix session key resources closed unexpectedly #5300

Merged
merged 17 commits into from
Sep 7, 2023

Conversation

tnleeuw
Copy link
Contributor

@tnleeuw tnleeuw commented Aug 29, 2023

No description provided.

@tnleeuw tnleeuw added the Bug label Aug 29, 2023
@tnleeuw tnleeuw self-assigned this Aug 29, 2023
@tnleeuw tnleeuw force-pushed the issue/5287_ClosedSessionKeys branch from 1da27aa to 1404eb3 Compare September 5, 2023 08:29
@tnleeuw tnleeuw marked this pull request as ready for review September 6, 2023 11:02
@tnleeuw tnleeuw requested review from nielsm5 and jkosternl September 6, 2023 11:02
@jkosternl
Copy link
Contributor

It looks good, but I don't have all the knowledge yet to approve the whole change (yet).

Comment on lines 283 to 284
} else if (obj instanceof Message) {
return ((Message) obj).asString();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Voorheen werd hij gesloten, is dit niet meer de bedoeling? Misschien een commentaartje toevoegen?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Iets wat al als Message in de PipeLineSession zit, moet niet worden gesloten want wordt misschien opnieuw gelezen.
Ik zal er een comment bij toevoegen!

}

@Test
public void testCopyMessage3() throws IOException {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ik geloof wel dat dit goed gaat, maar eigenlijk zouden we dit ook met een grote file moeten testen.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ik geloof wel dat dit goed gaat, maar eigenlijk zouden we dit ook met een grote file moeten testen.

Iedere stream van onbekende size wordt als SerializableFileReference ge-preserved dus zelfde als een grote file, volgens mij?
Daarom heb ik niet geprobeerd om dat apart te testen.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

94.8% 94.8% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 7, 2023

Please retry analysis of this Pull-Request directly on SonarCloud.

Copy link
Contributor

@jkosternl jkosternl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard for me now to judge the details (still growing knowledge).

@nielsm5 nielsm5 merged commit d6522df into master Sep 7, 2023
@nielsm5 nielsm5 deleted the issue/5287_ClosedSessionKeys branch September 7, 2023 14:37
@nielsm5 nielsm5 linked an issue Sep 7, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants