Uh oh!
There was an error while loading. Please reload this page.
HBASE-26783 ScannerCallable doubly clears meta cache on retries - #4147
Conversation
Apache-HBase
commented
Mar 2, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 2, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 2, 2022
💔 -1 overall
This message was automatically generated. |
bbeaudreault
commented
Mar 2, 2022
I hit an unrelated bug and some extra complexity for reverse scans. I filed HBASE-26790 to track the bug, since that really only affected a test but should be fixed separately. I just pushed some changes to fix reverse scans. The crux of the reverse scan issue is that it does some special magic to find the appropriate region location when using an empty start row. When a throwable is handled, we'd pass the empty row into updateRegionLocations and end up not updating anything. So we really need to update the row key for the found location, so I stashed that in the object member variable. |
Apache-HBase
commented
Mar 2, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 3, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 3, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 3, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 3, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 3, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 3, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 4, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 4, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 4, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 4, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 4, 2022
🎊 +1 overall
This message was automatically generated. |
bbeaudreault
commented
Mar 4, 2022
I have 3 +1's from the build jobs here. Looking at the details of the check failure, it shows 1 test failure -- |
bbeaudreault
commented
Mar 4, 2022
Actually I realized I missed some tests, so will be adding those shortly |
Apache-HBase
commented
Mar 4, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 5, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 5, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 5, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 5, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 5, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 5, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 5, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 5, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 6, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 6, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 7, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 8, 2022
🎊 +1 overall
This message was automatically generated. |
Just force pushed a no-op to try to kick off the build again... Last failure was due to space issues on CI host |
Signed-off-by: Andrew Purtell <apurtell@apache.org>
Signed-off-by: Andrew Purtell <apurtell@apache.org>
…e on retries (apache#4147) Signed-off-by: Andrew Purtell <apurtell@apache.org>
…e on retries (apache#4147) Signed-off-by: Andrew Purtell <apurtell@apache.org>
I renamed the protected
getRegionLocationsmethod so that it's clear that it is meant to be used in the prepare method, as mentioned in the new javadoc as well.I had to handle some complexity in the ReverseScannerCallable due to how it searches for the correct region location. Previously, the default RegionServerCallable.throwable call would not actually clear the cache, because the passed in
getRow()value would be an empty row key in some cases which doesn't actually match anything in the cache. With my changes now, we keep track of the "locationSearchKey" which is the key used to find the actual region location in prepare. This waythrowable()will be sure to clear the cache for the location we were reading from.I've added some tests here: