Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for compactors (0.19 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3.go

    	}
    
    	compactors[key].refs++
    
    	return func() {
    		compactorsMu.Lock()
    		defer compactorsMu.Unlock()
    
    		compactor := compactors[key]
    		compactor.refs--
    		if compactor.refs == 0 {
    			compactor.cancel()
    			compactor.client.Close()
    			delete(compactors, key)
    		}
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 07:56:39 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/etcd3/compact_test.go

    	if err != etcdrpc.ErrCompacted {
    		t.Errorf("Expecting ErrCompacted, but get=%v err=%v", obj, err)
    	}
    }
    
    // TestCompactConflict tests that two compactors (Let's use C1, C2) are trying to compact etcd cluster with the same
    // logical time.
    // - C1 compacts first. It will succeed.
    // - C2 compacts after. It will fail. But it will get latest logical time, which should be larger by one.
    func TestCompactConflict(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 23 14:22:57 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Comparators.java

     * the JDK.
     *
     * @since 21.0
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class Comparators {
      private Comparators() {}
    
      /**
       * Returns a new comparator which sorts iterables by comparing corresponding elements pairwise
       * until a nonzero result is found; imposes "dictionary order." If the end of one iterable is
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Comparators.java

     * the JDK.
     *
     * @since 21.0
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class Comparators {
      private Comparators() {}
    
      /**
       * Returns a new comparator which sorts iterables by comparing corresponding elements pairwise
       * until a nonzero result is found; imposes "dictionary order." If the end of one iterable is
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 11 08:42:51 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/etcd3/compact.go

    	// Technical details/insights:
    	//
    	// The protocol here is lease based. If one compactor CAS successfully, the others would know it when they fail in
    	// CAS later and would try again in 5 minutes. If an APIServer crashed, another one would "take over" the lease.
    	//
    	// For example, in the following diagram, we have a compactor C1 doing compaction in t1, t2. Another compactor C2
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 17 02:54:36 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

        assertTrue(Comparators.isInOrder(asList(0, 0, 3, 3), Ordering.natural()));
        assertTrue(Comparators.isInOrder(asList(0, 3), Ordering.natural()));
        assertTrue(Comparators.isInOrder(Collections.singleton(1), Ordering.natural()));
        assertTrue(Comparators.isInOrder(Collections.<Integer>emptyList(), Ordering.natural()));
      }
    
      public void testIsInStrictOrder() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 11 08:42:51 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/CompoundOrdering.java

        this.comparators = (Comparator<? super T>[]) new Comparator<?>[] {primary, secondary};
      }
    
      @SuppressWarnings("unchecked") // Generic array creation
      CompoundOrdering(Iterable<? extends Comparator<? super T>> comparators) {
        this.comparators =
            Iterables.toArray(comparators, (Comparator<? super T>[]) new Comparator<?>[0]);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/CompoundOrdering.java

        this.comparators = (Comparator<? super T>[]) new Comparator<?>[] {primary, secondary};
      }
    
      @SuppressWarnings("unchecked") // Generic array creation
      CompoundOrdering(Iterable<? extends Comparator<? super T>> comparators) {
        this.comparators =
            Iterables.toArray(comparators, (Comparator<? super T>[]) new Comparator<?>[0]);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Ordering.java

       * to {@code reduce}).
       *
       * @param comparators the comparators to try in order
       */
      @GwtCompatible(serializable = true)
      public static <T extends @Nullable Object> Ordering<T> compound(
          Iterable<? extends Comparator<? super T>> comparators) {
        return new CompoundOrdering<>(comparators);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TreeMultimap.java

    /**
     * Implementation of {@code Multimap} whose keys and values are ordered by their natural ordering or
     * by supplied comparators. In all cases, this implementation uses {@link Comparable#compareTo} or
     * {@link Comparator#compare} instead of {@link Object#equals} to determine equivalence of
     * instances.
     *
     * <p><b>Warning:</b> The comparators or comparables used must be <i>consistent with equals</i> as
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Mar 09 00:21:17 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top