shameersss1 commented on code in PR #6006:
URL: https://github.com/apache/hadoop/pull/6006#discussion_r1326773991
##########
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/commit/magic/ITestMagicCommitProtocol.java:
##########
@@ -94,11 +95,11 @@ public MagicS3GuardCommitter createFailingCommitter(
}
protected void validateTaskAttemptPathDuringWrite(Path p,
- final long expectedLength) throws IOException {
+ final long expectedLength, String jobId) throws IOException {
String pathStr = p.toString();
Assertions.assertThat(pathStr)
.describedAs("Magic path")
- .contains(MAGIC);
+ .contains(MAGIC_PATH_PREFIX + jobId);
Review Comment:
Ack. Ideally we should to avoid misinterpreting the file names or partition
names with same prefix
--
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]