Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
This is the current code
/** * retrieve the next path to use for writing. Increments the internal filenum. */ private Path getNewPath() throws IOException { this.filenum.set(EnvironmentEdgeManager.currentTime()); Path newPath = getCurrentFileName(); while (fs.exists(newPath)) { this.filenum.incrementAndGet(); newPath = getCurrentFileName(); } return newPath; }
In some tests, we inject our own EnvironmentEdge, it may return the same ts always or even go backwards, the logic here is not rnough to keep the filenum monotone increasing, as we may have already archive the old file.
Attachments
Issue Links
- breaks
-
HBASE-27087 TestQuotaThrottle times out
- Resolved
-
HBASE-27243 Fix TestQuotaThrottle after HBASE-27046
- Open
- is related to
-
HBASE-27243 Fix TestQuotaThrottle after HBASE-27046
- Open
- links to