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

Use new LeaseRecoverable interface added in HADOOP-18671 #5241

Open
wants to merge 1 commit into
base: 3.1
Choose a base branch
from

Conversation

dlmarion
Copy link
Contributor

@dlmarion dlmarion commented Jan 9, 2025

This change uses FileSystem.hasPathCapability to determine if the FileSystem implementation has the ability to recover leases.

Closes #3494

This change uses FileSystem.hasPathCapability to determine if the
FileSystem implementation has the ability to recover leases.

Closes apache#3494
@dlmarion dlmarion added this to the 3.1.0 milestone Jan 9, 2025
@dlmarion dlmarion self-assigned this Jan 9, 2025
@dlmarion dlmarion linked an issue Jan 9, 2025 that may be closed by this pull request
@dlmarion
Copy link
Contributor Author

dlmarion commented Jan 9, 2025

https://issues.apache.org/jira/browse/HADOOP-18671 was backported to Hadoop version 3.2.5. If we want to include this change, then we will need to bump the minimum supported version.

Copy link
Contributor

@keith-turner keith-turner left a comment

Choose a reason for hiding this comment

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

https://issues.apache.org/jira/browse/HADOOP-18671 was backported to Hadoop version 3.2.5. If we want to include this change, then we will need to bump the minimum supported version.

One of the github action builds failed with the following, assuming is this failure related to this comment?

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project accumulo-server-base: Compilation failure: Compilation failure: 
[ERROR] /home/runner/work/accumulo/accumulo/server/base/src/main/java/org/apache/accumulo/server/manager/recovery/HadoopLogCloser.java:[28,28] cannot find symbol
[ERROR]   symbol:   class CommonPathCapabilities
[ERROR]   location: package org.apache.hadoop.fs
[ERROR] /home/runner/work/accumulo/accumulo/server/base/src/main/java/org/apache/accumulo/server/manager/recovery/HadoopLogCloser.java:[30,28] cannot find symbol
[ERROR]   symbol:   class LeaseRecoverable
[ERROR]   location: package org.apache.hadoop.fs
[ERROR] -> [Help 1]

@@ -67,8 +67,6 @@ public long close(AccumuloConfiguration conf, Configuration hadoopConf, VolumeMa
ns.append(source).close();
log.info("Recovered lease on {} using append", source);
}
} else if (ns instanceof LocalFileSystem || ns instanceof RawLocalFileSystem) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you happen to know if the local filessystem impls will have the CommonPathCapabilities.LEASE_RECOVERABLE capability?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks like only DistributedFileSystem and ViewDistributedFileSystem implement the LeaseRecoverable interface.

@dlmarion
Copy link
Contributor Author

https://issues.apache.org/jira/browse/HADOOP-18671 was backported to Hadoop version 3.2.5. If we want to include this change, then we will need to bump the minimum supported version.

One of the github action builds failed with the following, assuming is this failure related to this comment?

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project accumulo-server-base: Compilation failure: Compilation failure: 
[ERROR] /home/runner/work/accumulo/accumulo/server/base/src/main/java/org/apache/accumulo/server/manager/recovery/HadoopLogCloser.java:[28,28] cannot find symbol
[ERROR]   symbol:   class CommonPathCapabilities
[ERROR]   location: package org.apache.hadoop.fs
[ERROR] /home/runner/work/accumulo/accumulo/server/base/src/main/java/org/apache/accumulo/server/manager/recovery/HadoopLogCloser.java:[30,28] cannot find symbol
[ERROR]   symbol:   class LeaseRecoverable
[ERROR]   location: package org.apache.hadoop.fs
[ERROR] -> [Help 1]

Yes, exactly. The GH action builds with Hadoop 3.0.3, so if we want to merge this, then we need to bump the minimum supported version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement HADOOP-18671 changes
2 participants