Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for 1st (0.01 sec)

  1. internal/dsync/dsync_test.go

    	go func() {
    		time.Sleep(5 * testDrwMutexAcquireTimeout)
    		// fmt.Println("Unlocking dm1")
    
    		dm1st.Unlock(t.Context())
    	}()
    
    	dm2nd.Lock(id, source)
    
    	// fmt.Printf("2nd lock obtained after 1st lock is released\n")
    	time.Sleep(testDrwMutexRefreshCallTimeout * 2)
    
    	dm2nd.Unlock(t.Context())
    }
    
    // Test three locks for same resource, one succeeds, one fails (after timeout)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  2. internal/dsync/drwmutex_test.go

    	ctx1, cancel1 := context.WithCancel(t.Context())
    	if !drwm1.GetRLock(ctx1, cancel1, id, source, Options{Timeout: time.Second}) {
    		panic("Failed to acquire read lock")
    	}
    	// fmt.Println("1st read lock acquired, waiting...")
    
    	drwm2 := NewDRWMutex(ds, "simplelock")
    	ctx2, cancel2 := context.WithCancel(t.Context())
    	if !drwm2.GetRLock(ctx2, cancel2, id, source, Options{Timeout: time.Second}) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  3. internal/lsync/lrwmutex_test.go

    		panic("Failed to acquire read lock")
    	}
    	// fmt.Println("1st read lock acquired, waiting...")
    
    	if !lrwm.GetRLock(ctx, "", "object1", time.Second) {
    		panic("Failed to acquire read lock")
    	}
    	// fmt.Println("2nd read lock acquired, waiting...")
    
    	go func() {
    		time.Sleep(2 * time.Second)
    		lrwm.RUnlock()
    		// fmt.Println("1st read lock released, waiting...")
    	}()
    
    	go func() {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  4. internal/s3select/jstream/decoder_test.go

    	}
    }
    
    func TestDecoderFlat(t *testing.T) {
    	var (
    		counter int
    		mv      *MetaValue
    		body    = `[
      "1st test string",
      "Roberto*Maestro", "Charles",
      0, null, false,
      1, 2.5
    ]`
    		expected = []struct {
    			Value     any
    			ValueType ValueType
    		}{
    			{
    				"1st test string",
    				String,
    			},
    			{
    				"Roberto*Maestro",
    				String,
    			},
    			{
    				"Charles",
    				String,
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  5. cmd/namespace-lock_test.go

    		go func() {
    			defer close(lk2ch)
    			nsLk.lock(ctx, "volume", "path", "source", "opsID", false, 1*time.Millisecond)
    		}()
    		time.Sleep(1 * time.Millisecond) // wait for goroutine to advance; ref=2
    
    		// Unlock the 1st lock; ref=1 after this line
    		nsLk.unlock("volume", "path", false)
    
    		// Taking another lockMapMutex here allows queuing up additional lockers. This should
    		// not be required but makes reproduction much easier.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. cmd/erasure-metadata-utils_test.go

    	distribution := []int{16, 14, 12, 10, 8, 6, 4, 2, 1, 3, 5, 7, 9, 11, 13, 15}
    	shuffledDisks := shuffleDisks(disks, distribution)
    	// From the "distribution" above you can notice that:
    	// 1st data block is in the 9th disk (i.e distribution index 8)
    	// 2nd data block is in the 8th disk (i.e distribution index 7) and so on.
    	if shuffledDisks[0] != disks[8] ||
    		shuffledDisks[1] != disks[7] ||
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

          for (TwoArg.Action second : TwoArg.Action.values()) {
            TwoArg bar = new TwoArg(first, second);
            if (first.equals(TwoArg.Action.THROW_A_NPE)) {
              verifyBarPass(method, bar); // only pass if 1st param throws NPE
            } else {
              verifyBarFail(method, bar);
            }
          }
        }
      }
    
      public void testTwoArgNullableNormal() throws Exception {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/Quantiles.java

       *     instance of {@link Quantiles}.
       */
      @Deprecated
      public Quantiles() {}
    
      /** Specifies the computation of a median (i.e. the 1st 2-quantile). */
      public static ScaleAndIndex median() {
        return scale(2).index(1);
      }
    
      /** Specifies the computation of quartiles (i.e. 4-quantiles). */
      public static Scale quartiles() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 30.1K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                        project.getGroupId(), project.getArtifactId(), project.getVersion(), null, project.getPackaging());
                project.setArtifact(projectArtifact);
    
                // only set those on 2nd phase, ignore on 1st pass
                if (project.getFile() != null) {
                    Build build = project.getBuild().getDelegate();
                    List<org.apache.maven.api.model.Source> sources = build.getSources();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 17:20:31 UTC 2025
    - 51.8K bytes
    - Viewed (0)
  10. cmd/erasure-multipart.go

    			// Delete the missing part files. e.g,
    			// Request 1: NewMultipart
    			// Request 2: PutObjectPart 1
    			// Request 3: PutObjectPart 2
    			// Request 4: CompleteMultipartUpload --part 2
    			// N.B. 1st part is not present. This part should be removed from the storage.
    			paths = append(paths, pathJoin(uploadIDPath, currentFI.DataDir, fmt.Sprintf("part.%d", curpart.Number)))
    		}
    	}
    
    	if !opts.NoLock {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:05:31 UTC 2025
    - 47.1K bytes
    - Viewed (0)
Back to top