dragonknightk commented on PR #14975:
URL: https://github.com/apache/gravitino/pull/14975#issuecomment-6937459927

   @mchades Thanks, both are fixed.
   
   1. The new tests now build their configuration with `new 
Configuration(false)`, copy the shared test settings into it, and leave 
`fs.gravitino.current.location.name` unset until an explicit-location case sets 
it. The env variable name still points at one that is never set. I reproduced 
your case with a temporary `core-site.xml` on the test classpath 
(`custom-site`): 25 of the new cases failed with `Location name: custom-site is 
not found in fileset`. With the fix they all pass, also with 
`CURRENT_LOCATION_NAME=location2` set.
   2. The `getFileLocation` stub in `CacheOverrideOperations` now clears 
`CallerContext.CallerContextHolder`, like the real client's `finally`. Starting 
each test with an empty holder and checking it after the last `@AfterEach`, 
`testMetadataCacheFilesetCatalogOverride` used to leave 
`FilesetDataOperation=OPEN`. Now the holder is empty after every new test in 
`TestGvfsBase` and `TestBaseGVFSOperationsSecrets`.
   
   I also checked the other new tests for the same kind of leak and found none: 
the secrets tests pass the location name explicitly, and their caller context 
is cleared by the real code.
   
   ʕ•ᴥ•ʔ
   


-- 
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]

Reply via email to