| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -544,6 +544,7 @@ final void updateStateFromResponse(BidiWriteObjectResponse response) { | |||
| 544 | 544 | if (state == State.INITIALIZING || state == State.RETRYING) { | |
| 545 | 545 | transitionTo( | |
| 546 | 546 | stateToReturnToAfterRetry != null ? stateToReturnToAfterRetry : State.RUNNING); | |
| 547 | + stateToReturnToAfterRetry = null; | ||
| 547 | 548 | } | |
| 548 | 549 | ||
| 549 | 550 | boolean signalTerminalSuccess = false; | |
@@ -679,7 +680,9 @@ final void pendingRetry() { | |||
| 679 | 680 | lock.lock(); | |
| 680 | 681 | try { | |
| 681 | 682 | validateCurrentStateIsOneOf(State.allNonTerminal); | |
| 682 | - stateToReturnToAfterRetry = state; | ||
| 683 | + if (state != State.RETRYING && state != State.PENDING_RETRY) { | ||
| 684 | + stateToReturnToAfterRetry = state; | ||
| 685 | + } | ||
| 683 | 686 | transitionTo(State.PENDING_RETRY); | |
| 684 | 687 | } finally { | |
| 685 | 688 | lock.unlock(); | |
@@ -887,10 +890,11 @@ void awaitState(State... anyOf) throws InterruptedException { | |||
| 887 | 890 | lock.lock(); | |
| 888 | 891 | try { | |
| 889 | 892 | ImmutableSet<State> states = ImmutableSet.copyOf(anyOf); | |
| 890 | - while (!states.contains(this.state) && !stateUpdated.await(5, TimeUnit.MILLISECONDS)) { | ||
| 893 | + while (!states.contains(this.state)) { | ||
| 891 | 894 | if (resultFuture.isDone()) { | |
| 892 | 895 | return; | |
| 893 | 896 | } | |
| 897 | + stateUpdated.await(5, TimeUnit.MILLISECONDS); | ||
| 894 | 898 | } | |
| 895 | 899 | } finally { | |
| 896 | 900 | lock.unlock(); | |
@@ -913,11 +917,11 @@ public void awaitTakeoverStateReconciliation(Runnable restart) { | |||
| 913 | 917 | public void awaitAck(long writeOffset) throws InterruptedException { | |
| 914 | 918 | lock.lock(); | |
| 915 | 919 | try { | |
| 916 | - while (confirmedBytes < writeOffset | ||
| 917 | - && !confirmedBytesUpdated.await(5, TimeUnit.MILLISECONDS)) { | ||
| 920 | + while (confirmedBytes < writeOffset) { | ||
| 918 | 921 | if (resultFuture.isDone()) { | |
| 919 | 922 | return; | |
| 920 | 923 | } | |
| 924 | + confirmedBytesUpdated.await(5, TimeUnit.MILLISECONDS); | ||
| 921 | 925 | } | |
| 922 | 926 | } finally { | |
| 923 | 927 | lock.unlock(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,7 +58,7 @@ | |||
| 58 | 58 | ||
| 59 | 59 | @RunWith(StorageITRunner.class) | |
| 60 | 60 | @CrossRun( | |
| 61 | - backends = {Backend.TEST_BENCH}, | ||
| 61 | + backends = {Backend.TEST_BENCH, Backend.PROD}, | ||
| 62 | 62 | transports = Transport.GRPC) | |
| 63 | 63 | @Parameterized(UploadConfigParameters.class) | |
| 64 | 64 | public final class ITAppendableUploadTest { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -259,10 +259,10 @@ static BackendResources of( | |||
| 259 | 259 | protectedBucketNames.add(bucketName); | |
| 260 | 260 | return new BucketInfoShim( | |
| 261 | 261 | BucketInfo.newBuilder(bucketName) | |
| 262 | - .setLocation(zone.get().get().getRegion()) | ||
| 262 | + .setLocation("us-central1") | ||
| 263 | 263 | .setCustomPlacementConfig( | |
| 264 | 264 | CustomPlacementConfig.newBuilder() | |
| 265 | - .setDataLocations(ImmutableList.of(zone.get().get().getZone())) | ||
| 265 | + .setDataLocations(ImmutableList.of("us-central1-c")) | ||
| 266 | 266 | .build()) | |
| 267 | 267 | .setStorageClass(StorageClass.valueOf("RAPID")) | |
| 268 | 268 | .setHierarchicalNamespace( | |
| Back | FazBrowse Home | New Git URL |
0 commit comments